QueueMetrics > General Asterisk configuration
Subqueues - Setting URL on a Queue() in FreePBX - Patch
barryf:
--- Quote from: nellyb on October 12, 2011, 15:29:05 ---Hi Barry, many thanks for the reply.
I wasn't able to use patch to apply the your diff files as the versions of my php files were newer. I applied it manually so it could be a case of fat fingers. I'll double-check it.
So the php files write to mysql and the conf files?
Neil
--- End quote ---
The patches do three things:
1. change the page.queues.php file which creates the input box in the GUI
2. changes the queues_config.sql to add the optionalurl field into the queues_config database table
3. changes the function.inc.php so that it reads the optionalurl value from the database, and writes it out to the config file along with the rest of the queue settings.
-Barry
nellyb:
ah-hah! that's what i'm missing - i can't find the file that relates to queues_config.sql
in version 2.6, was the filename queues_config.sql?
Neio
barryf:
--- Quote from: nellyb on October 12, 2011, 15:46:55 ---ah-hah! that's what i'm missing - i can't find the file that relates to queues_config.sql
in version 2.6, was the filename queues_config.sql?
Neio
--- End quote ---
That is just the name of the file used to initially create the queues module's database on installation. all you need to do is to add a new field names optionalurl to the queues_config table in your database.
The SQL to do this directly would be
ALTER TABLE `queues_config` ADD `optionalurl` VARCHAR( 32 ) NULL DEFAULT NULL
-Barry
nellyb:
OK, thanks for that Barry.
In the functions.include.php file I have more fields than this earlier version. For example:
function queues_add($account,$name,$password,$prefix,$goto,$agentannounce_id,$members,$joinannounce_id,$maxwait,$alertinfo='',$cwignore='0',$qregex='',$queuewait='0', $use_queue_context='0', $dynmembers = '', $dynmemberonly = 'no', $togglehint = '0') {
I'd inserted the new bit of code after $use_queue_context='0' - is this right? Or should it be at the end?
function queues_add($account,$name,$password,$prefix,$goto,$agentannounce_id,$members,$joinannounce_id,$maxwait,$alertinfo='',$cwignore='0',$qregex='',$queuewait='0', $use_queue_context='0', $optionalurl=' ', $dynmembers = '', $dynmemberonly = 'no', $togglehint = '0') {
Neil
barryf:
Give it a go and see!
As I said, I am still on 2.6 so have not seen the new version's files, nor looked at porting the changes across.
-Barry
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version