Changeset 3317
- Timestamp:
- 12/13/06 23:58:21 (5 years ago)
- Files:
-
- modules/branches/2.3/findmefollow/functions.inc.php (modified) (3 diffs)
- modules/branches/2.3/findmefollow/module.xml (modified) (1 diff)
- modules/branches/2.3/queues/functions.inc.php (modified) (2 diffs)
- modules/branches/2.3/queues/module.xml (modified) (2 diffs)
- modules/branches/2.3/ringgroups/functions.inc.php (modified) (3 diffs)
- modules/branches/2.3/ringgroups/module.xml (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.3/findmefollow/functions.inc.php
r3308 r3317 59 59 $ext->add($contextname, $grpnum, '', new ext_macro('user-callerid')); 60 60 61 // block voicemail until phone is answered at which point a macro should be called on the answering 62 // line to clear this flag so that subsequent transfers can occur, if already set by a the caller 63 // then don't change. 64 // 65 $ext->add($contextname, $grpnum, '', new ext_gotoif('$["foo${BLKVM_OVERRIDE}" = "foo"]', 'skipdb')); 66 $ext->add($contextname, $grpnum, '', new ext_gotoif('$["${DB(${BLKVM_OVERRIDE})}" = "TRUE"]', 'skipov')); 67 68 $ext->add($contextname, $grpnum, 'skipdb', new ext_setvar('__NODEST', '')); 69 $ext->add($contextname, $grpnum, '', new ext_setvar('__BLKVM_OVERRIDE', 'BLKVM/${EXTEN}/${CHANNEL}')); 70 $ext->add($contextname, $grpnum, '', new ext_setvar('__BLKVM_BASE', '${EXTEN}')); 71 $ext->add($contextname, $grpnum, '', new ext_setvar('DB(${BLKVM_OVERRIDE})', 'TRUE')); 72 61 73 // Remember if NODEST was set later, but clear it in case the call is answered so that subsequent 62 74 // transfers work. 63 75 // 64 $ext->add($contextname, $grpnum, '', new ext_setvar('RRNODEST', '${NODEST}')); 65 $ext->add($contextname, $grpnum, '', new ext_gotoif('$["foo${RRNODEST}" != "foo"]', 'skipvmblk')); 66 $ext->add($contextname, $grpnum, '', new ext_setvar('RRNODEST', '${BLKVM}')); 76 $ext->add($contextname, $grpnum, 'skipov', new ext_setvar('RRNODEST', '${NODEST}')); 67 77 $ext->add($contextname, $grpnum, 'skipvmblk', new ext_setvar('__NODEST', '${EXTEN}')); 68 78 … … 112 122 113 123 // Normal call 114 $ext->add($contextname, $grpnum, '', new ext_setvar('RECALL', '${NODEST}'));115 $ext->add($contextname, $grpnum, '', new ext_setvar('__BLKVM', '${EXTEN}'));116 $ext->add($contextname, $grpnum, '', new ext_setvar('__NODEST', ''));117 124 $ext->add($contextname, $grpnum, '', new 118 125 ext_macro('dial','${DB(AMPUSER/'."$grpnum/followme/grptime)},$dialopts,".'${DB(AMPUSER/'."$grpnum/followme/grplist)}")); 119 $ext->add($contextname, $grpnum, '', new ext_setvar('__NODEST', '${RECALL}'));120 $ext->add($contextname, $grpnum, '', new ext_setvar('__BLKVM', ''));121 126 $ext->add($contextname, $grpnum, '', new ext_goto('nextstep')); 122 127 … … 132 137 $ext->add($contextname, $grpnum, '', new ext_gotoif('$["foo${RRNODEST}" != "foo"]', 'nodest')); 133 138 $ext->add($contextname, $grpnum, '', new ext_setvar('__NODEST', '')); 139 140 $ext->add($contextname, $grpnum, '', new ext_dbdel('${BLKVM_OVERRIDE}')); 134 141 135 142 // where next? modules/branches/2.3/findmefollow/module.xml
r3310 r3317 2 2 <rawname>findmefollow</rawname> 3 3 <name>Follow Me</name> 4 <version>2.4. 5</version>4 <version>2.4.6</version> 5 5 <changelog> 6 *2.2.6* Added BLKVM DB tree to fix inability to transfer a received call to another user, and make NODEST stuff work overall 6 7 *2.4.5* Modified NODEST stuff to improve some cases where it was still failing, and improve '#' transfer scenarios 7 8 *2.4.4* Add NODEST so that destination (often vm) is not taken if called from queue or ringgroup modules/branches/2.3/queues/functions.inc.php
r3308 r3317 36 36 37 37 $ext->add('ext-queues', $exten, '', new ext_answer('')); 38 39 // block voicemail until phone is answered at which point a macro should be called on the answering 40 // line to clear this flag so that subsequent transfers can occur. 41 // 42 $ext->add('ext-queues', $exten, '', new ext_setvar('__BLKVM_OVERRIDE', 'BLKVM/${EXTEN}/${CHANNEL}')); 43 $ext->add('ext-queues', $exten, '', new ext_setvar('__BLKVM_BASE', '${EXTEN}')); 44 $ext->add('ext-queues', $exten, '', new ext_setvar('DB(${BLKVM_OVERRIDE})', 'TRUE')); 45 $ext->add('ext-queues', $exten, '', new ext_setvar('_DIAL_OPTIONS', '${DIAL_OPTIONS}M(auto-blkvm)')); 38 46 39 47 // Inform all the children NOT to send calls to destinations or voicemail … … 55 63 $ext->add('ext-queues', $exten, '', new ext_queue($exten,$options,'',$agentannounce,$q['maxwait'])); 56 64 65 $ext->add('ext-queues', $exten, '', new ext_dbdel('${BLKVM_OVERRIDE}')); 57 66 // If we are here, disable the NODEST as we want things to resume as normal 58 67 // modules/branches/2.3/queues/module.xml
r3311 r3317 2 2 <rawname>queues</rawname> 3 3 <name>Queues</name> 4 <version>2.2. 3</version>4 <version>2.2.4</version> 5 5 <type>setup</type> 6 6 <category>Inbound Call Control</category> … … 9 9 </description> 10 10 <changelog> 11 *2.2.4* Added BLKVM DB tree to fix inability to transfer a received call to another user, and make NODEST stuff work overall 11 12 *2.2.3* Change _NODEST to __NODEST for some scenarios that require infinite inheritance 12 13 *2.2.2* Disallow Queue 0 (#1487) modules/branches/2.3/ringgroups/functions.inc.php
r3308 r3317 60 60 $ext->add($contextname, $grpnum, '', new ext_macro('user-callerid')); 61 61 62 // Remember if we should go to our own destination (in case we are a child) and then tell all our 63 // children not to go to their destinations 62 // block voicemail until phone is answered at which point a macro should be called on the answering 63 // line to clear this flag so that subsequent transfers can occur, if already set by a the caller 64 // then don't change. 64 65 // 65 $ext->add($contextname, $grpnum, '', new ext_setvar('RRNODEST', '${NODEST}')); 66 $ext->add($contextname, $grpnum, '', new ext_gotoif('$["foo${RRNODEST}" != "foo"]', 'skipvmblk')); 67 $ext->add($contextname, $grpnum, '', new ext_setvar('RRNODEST', '${BLKVM}')); 66 $ext->add($contextname, $grpnum, '', new ext_gotoif('$["foo${BLKVM_OVERRIDE}" = "foo"]', 'skipdb')); 67 $ext->add($contextname, $grpnum, '', new ext_gotoif('$["${DB(${BLKVM_OVERRIDE})}" = "TRUE"]', 'skipov')); 68 69 $ext->add($contextname, $grpnum, 'skipdb', new ext_setvar('__NODEST', '')); 70 $ext->add($contextname, $grpnum, '', new ext_setvar('__BLKVM_OVERRIDE', 'BLKVM/${EXTEN}/${CHANNEL}')); 71 $ext->add($contextname, $grpnum, '', new ext_setvar('__BLKVM_BASE', '${EXTEN}')); 72 $ext->add($contextname, $grpnum, '', new ext_setvar('DB(${BLKVM_OVERRIDE})', 'TRUE')); 73 74 // Remember if NODEST was set later, but clear it in case the call is answered so that subsequent 75 // transfers work. 76 // 77 $ext->add($contextname, $grpnum, 'skipov', new ext_setvar('RRNODEST', '${NODEST}')); 68 78 $ext->add($contextname, $grpnum, 'skipvmblk', new ext_setvar('__NODEST', '${EXTEN}')); 69 79 … … 102 112 $ext->add($contextname, $grpnum, 'DIALGRP', new ext_macro('dial-confirm',"$grptime,$dialopts,$grplist,$grpnum")); 103 113 } else { 104 $ext->add($contextname, $grpnum, '', new ext_setvar('RECALL', '${NODEST}'));105 $ext->add($contextname, $grpnum, '', new ext_setvar('__BLKVM', '${EXTEN}'));106 $ext->add($contextname, $grpnum, '', new ext_setvar('__NODEST', ''));107 114 $ext->add($contextname, $grpnum, 'DIALGRP', new ext_macro('dial',$grptime.",$dialopts,".$grplist)); 108 $ext->add($contextname, $grpnum, '', new ext_setvar('__NODEST', '${RECALL}'));109 $ext->add($contextname, $grpnum, '', new ext_setvar('__BLKVM', ''));110 115 } 111 116 $ext->add($contextname, $grpnum, '', new ext_setvar('RingGroupMethod','')); … … 116 121 $ext->add($contextname, $grpnum, '', new ext_gotoif('$["foo${RRNODEST}" != "foo"]', 'nodest')); 117 122 $ext->add($contextname, $grpnum, '', new ext_setvar('__NODEST', '')); 123 124 $ext->add($contextname, $grpnum, '', new ext_dbdel('${BLKVM_OVERRIDE}')); 118 125 119 126 // where next? modules/branches/2.3/ringgroups/module.xml
r3309 r3317 2 2 <rawname>ringgroups</rawname> 3 3 <name>Ring Groups</name> 4 <version>2.2. 9</version>4 <version>2.2.10</version> 5 5 <type>setup</type> 6 6 <category>Inbound Call Control</category> … … 9 9 </description> 10 10 <changelog> 11 *2.2.10* Added BLKVM DB tree to fix inability to transfer a received call to another user, and make NODEST stuff work overall 11 12 *2.2.9* Modified NODEST stuff to improve some cases where it was still failing, and improve '#' transfer scenarios 12 13 *2.2.8* Allow ringall-prim as well as ringall for strategies with confirmation (#1408)
