Changeset 3168
- Timestamp:
- 11/22/06 22:04:17 (7 years ago)
- Files:
-
- modules/branches/2.2/findmefollow/functions.inc.php (modified) (3 diffs)
- modules/branches/2.2/findmefollow/module.xml (modified) (1 diff)
- modules/branches/2.2/queues/functions.inc.php (modified) (2 diffs)
- modules/branches/2.2/queues/module.xml (modified) (1 diff)
- modules/branches/2.2/ringgroups/functions.inc.php (modified) (3 diffs)
- modules/branches/2.2/ringgroups/module.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.2/findmefollow/functions.inc.php
r3156 r3168 58 58 $ext->add($contextname, $grpnum, '', new ext_macro('user-callerid')); 59 59 60 // Remember if NODEST was set later, but clear it in case the call is answered so that subsequent 61 // transfers work. 62 // 63 $ext->add($contextname, $grpnum, '', new ext_setvar('RRNODEST', '${NODEST}')); 64 $ext->add($contextname, $grpnum, '', new ext_setvar('NODEST', '')); 65 60 66 // deal with group CID prefix 61 67 $ext->add($contextname, $grpnum, '', new ext_gotoif('$["foo${RGPREFIX}" = "foo"]', 'REPCID')); … … 113 119 $ext->add($contextname, $grpnum, 'nextstep', new ext_setvar('RingGroupMethod','')); 114 120 121 // Did the call come from a queue or ringgroup, if so, don't go to the destination, just end and let 122 // the queue or ringgroup decide what to do next 123 // 124 $ext->add($contextname, $grpnum, '', new ext_gotoif('$["foo${RRNODEST}" != "foo"]', 'nodest')); 125 115 126 // where next? 116 127 if ((isset($postdest) ? $postdest : '') != '') { … … 119 130 $ext->add($contextname, $grpnum, '', new ext_hangup('')); 120 131 } 132 $ext->add($contextname, $grpnum, 'nodest', new ext_noop('SKIPPING DEST, CALL CAME FROM Q/RG: ${RRNODEST}')); 121 133 } 122 134 } modules/branches/2.2/findmefollow/module.xml
r3158 r3168 4 4 <version>2.4.3</version> 5 5 <changelog> 6 *2.4.4* Add NODEST so that destination (often vm) is not taken if called from queue or ringgroup 6 7 *2.4.3* Sanity check for prefing that if not set or there, it won't ring the extension forever (should not happen) 7 8 *2.4.2* Modified flyover help - since moh works with confirmation now modules/branches/2.2/queues/functions.inc.php
r2508 r3168 36 36 37 37 $ext->add('ext-queues', $exten, '', new ext_answer('')); 38 39 // Inform all the children NOT to send calls to destinations or voicemail 40 // 41 $ext->add('ext-queues', $exten, '', new ext_setvar('_NODEST', '${EXTEN}')); 42 38 43 $ext->add('ext-queues', $exten, '', new ext_gotoif('$["${CONTEXT}"="from-internal"]','USERCID','SETCID')); 39 44 $ext->add('ext-queues', $exten, 'USERCID', new ext_macro('user-callerid')); … … 49 54 $agentannounce = (isset($q['agentannounce'])?$q['agentannounce']:''); 50 55 $ext->add('ext-queues', $exten, '', new ext_queue($exten,$options,'',$agentannounce,$q['maxwait'])); 56 57 // If we are here, disable the NODEST as we want things to resume as normal 58 // 59 $ext->add('ext-queues', $exten, '', new ext_setvar('_NODEST', '')); 51 60 52 61 // destination field in 'incoming' database is backwards from what ext_goto expects modules/branches/2.2/queues/module.xml
r2944 r3168 8 8 Creates a queue where calls are placed on hold and answered on a first-in, first-out basis. Many options are available, including ring strategy for agents, caller announcements, max wait times, etc. 9 9 </description> 10 <changelog>*2.2* First release for FreePBX 2.2 - Fixed compatibility issue with new UI</changelog> 10 <changelog> 11 *2.2.1* Add NODEST to tell children NOT to go to destinations (like voicemail or other) - helps with followme in a queue 12 *2.2* First release for FreePBX 2.2 - Fixed compatibility issue with new UI</changelog> 11 13 <menuitems> 12 14 <queues>Queues</queues> modules/branches/2.2/ringgroups/functions.inc.php
r2596 r3168 58 58 59 59 $ext->add($contextname, $grpnum, '', new ext_macro('user-callerid')); 60 61 // Remember if we should go to our own destination (in case we are a child) and then tell all our 62 // children not to go to their destinations 63 // 64 $ext->add($contextname, $grpnum, '', new ext_setvar('RRNODEST', '${NODEST}')); 65 $ext->add($contextname, $grpnum, '', new ext_setvar('NODEST', '${EXTEN}')); 60 66 61 67 // deal with group CID prefix … … 96 102 $ext->add($contextname, $grpnum, '', new ext_setvar('RingGroupMethod','')); 97 103 104 105 // Now if we were told to skip the destination, do so now. Otherwise reset NODEST and proceed to our destination. 106 // 107 $ext->add($contextname, $grpnum, '', new ext_gotoif('$["foo${RRNODEST}" != "foo"]', 'nodest')); 108 $ext->add($contextname, $grpnum, '', new ext_setvar('_NODEST', '')); 109 98 110 // where next? 99 111 if ((isset($postdest) ? $postdest : '') != '') { … … 102 114 $ext->add($contextname, $grpnum, '', new ext_hangup('')); 103 115 } 116 $ext->add($contextname, $grpnum, 'nodest', new ext_noop('SKIPPING DEST, CALL CAME FROM Q/RG: ${RRNODEST}')); 104 117 } 105 118 } modules/branches/2.2/ringgroups/module.xml
r3105 r3168 9 9 </description> 10 10 <changelog> 11 *2.2.5* Modified flyover help - since moh works with confirmation now 12 *2.2.4* Added sound files for default confirmation messages 13 *2.2.3* Clarification on help message if you want to ring follow-me and other non-extension numbers 14 *2.2.2* Forgot to add default starting RG number as 600 15 *2.2.1* Cleanup of the UI, remove workaround of formatting bugs with previous UI 16 *2.2* First release for FreePBX 2.2 - Fixed compatibility issue with new UI</changelog> 11 *2.2.6* Add NODEST so that destination (often vm) is not taken if called from queue or ringgroup and such is honored for childeren 12 *2.2.5* Modified flyover help - since moh works with confirmation now 13 *2.2.4* Added sound files for default confirmation messages 14 *2.2.3* Clarification on help message if you want to ring follow-me and other non-extension numbers 15 *2.2.2* Forgot to add default starting RG number as 600 16 *2.2.1* Cleanup of the UI, remove workaround of formatting bugs with previous UI 17 *2.2* First release for FreePBX 2.2 - Fixed compatibility issue with new UI</changelog> 17 18 <menuitems> 18 19 <ringgroups>Ring Groups</ringgroups>
