Changeset 4041
- Timestamp:
- 06/09/07 11:00:38 (1 year ago)
- Files:
-
- modules/branches/2.3/callforward/functions.inc.php (modified) (9 diffs)
- modules/branches/2.3/callforward/module.xml (modified) (1 diff)
- modules/branches/2.3/callwaiting/functions.inc.php (modified) (2 diffs)
- modules/branches/2.3/callwaiting/module.xml (modified) (1 diff)
- modules/branches/2.3/dictate/functions.inc.php (modified) (2 diffs)
- modules/branches/2.3/dictate/module.xml (modified) (1 diff)
- modules/branches/2.3/donotdisturb/functions.inc.php (modified) (2 diffs)
- modules/branches/2.3/donotdisturb/module.xml (modified) (1 diff)
- modules/branches/2.3/gabcast/functions.inc.php (modified) (1 diff)
- modules/branches/2.3/gabcast/module.xml (modified) (2 diffs)
- modules/branches/2.3/infoservices/functions.inc.php (modified) (2 diffs)
- modules/branches/2.3/infoservices/module.xml (modified) (1 diff)
- modules/branches/2.3/paging/functions.inc.php (modified) (4 diffs)
- modules/branches/2.3/paging/module.xml (modified) (1 diff)
- modules/branches/2.3/speeddial/functions.inc.php (modified) (3 diffs)
- modules/branches/2.3/speeddial/module.xml (modified) (1 diff)
- modules/branches/2.3/voicemail/functions.inc.php (modified) (1 diff)
- modules/branches/2.3/voicemail/module.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.3/callforward/functions.inc.php
r1615 r4041 39 39 $ext->add($id, $c, '', new ext_answer('')); // $cmd,1,Answer 40 40 $ext->add($id, $c, '', new ext_wait('1')); // $cmd,n,Wait(1) 41 $ext->add($id, $c, '', new ext_macro('user-callerid')); // $cmd,n,Macro(user-callerid) 41 42 $ext->add($id, $c, '', new ext_playback('call-fwd-unconditional')); 42 43 $ext->add($id, $c, '', new ext_playback('please-enter-your&extension')); 43 44 $ext->add($id, $c, '', new ext_read('fromext', 'then-press-pound')); 44 $ext->add($id, $c, '', new ext_setvar('fromext', '${IF($["foo${fromext}"="foo"]?${ CALLERID(number)}:${fromext})}'));45 $ext->add($id, $c, '', new ext_setvar('fromext', '${IF($["foo${fromext}"="foo"]?${AMPUSER}:${fromext})}')); 45 46 $ext->add($id, $c, '', new ext_wait('1')); // $cmd,n,Wait(1) 46 47 $ext->add($id, $c, 'startread', new ext_playback('ent-target-attendant')); … … 60 61 $ext->add($id, $c, '', new ext_wait('1')); // $cmd,n,Wait(1) 61 62 $ext->add($id, $c, '', new ext_macro('user-callerid')); // $cmd,n,Macro(user-callerid) 62 $ext->add($id, $c, '', new ext_setvar('DB(CF/${ CALLERID(number)})', '${EXTEN:'.$clen.'}'));63 $ext->add($id, $c, '', new ext_playback('call-fwd-unconditional&for&extension')); 64 $ext->add($id, $c, '', new ext_saydigits('${ CALLERID(number)}'));63 $ext->add($id, $c, '', new ext_setvar('DB(CF/${AMPUSER(number)})', '${EXTEN:'.$clen.'}')); 64 $ext->add($id, $c, '', new ext_playback('call-fwd-unconditional&for&extension')); 65 $ext->add($id, $c, '', new ext_saydigits('${AMPUSER}')); 65 66 $ext->add($id, $c, '', new ext_playback('is-set-to')); 66 67 $ext->add($id, $c, '', new ext_saydigits('${EXTEN:'.$clen.'}')); … … 98 99 $ext->add($id, $c, '', new ext_wait('1')); // $cmd,n,Wait(1) 99 100 $ext->add($id, $c, '', new ext_macro('user-callerid')); // $cmd,n,Macro(user-callerid) 100 $ext->add($id, $c, '', new ext_dbdel('CF/${ CALLERID(number)}'));101 $ext->add($id, $c, '', new ext_dbdel('CF/${AMPUSER}')); 101 102 $ext->add($id, $c, '', new ext_playback('call-fwd-unconditional&de-activated')); // $cmd,n,Playback(...) 102 103 $ext->add($id, $c, '', new ext_macro('hangupcall')); // $cmd,n,Macro(user-callerid) … … 126 127 $ext->add($id, $c, '', new ext_answer('')); // $cmd,1,Answer 127 128 $ext->add($id, $c, '', new ext_wait('1')); // $cmd,n,Wait(1) 129 $ext->add($id, $c, '', new ext_macro('user-callerid')); // $cmd,n,Macro(user-callerid) 128 130 $ext->add($id, $c, '', new ext_playback('call-fwd-on-busy')); 129 131 $ext->add($id, $c, '', new ext_playback('please-enter-your&extension')); 130 132 $ext->add($id, $c, '', new ext_read('fromext', 'then-press-pound')); 131 $ext->add($id, $c, '', new ext_setvar('fromext', '${IF($["foo${fromext}"="foo"]?${ CALLERID(number)}:${fromext})}'));133 $ext->add($id, $c, '', new ext_setvar('fromext', '${IF($["foo${fromext}"="foo"]?${AMPUSER}:${fromext})}')); 132 134 $ext->add($id, $c, '', new ext_wait('1')); // $cmd,n,Wait(1) 133 135 $ext->add($id, $c, 'startread', new ext_playback('ent-target-attendant')); … … 147 149 $ext->add($id, $c, '', new ext_wait('1')); // $cmd,n,Wait(1) 148 150 $ext->add($id, $c, '', new ext_macro('user-callerid')); // $cmd,n,Macro(user-callerid) 149 $ext->add($id, $c, '', new ext_setvar('DB(CFB/${ CALLERID(number)})', '${EXTEN:'.$clen.'}'));150 $ext->add($id, $c, '', new ext_playback('call-fwd-on-busy&for&extension')); 151 $ext->add($id, $c, '', new ext_saydigits('${ CALLERID(number)}'));151 $ext->add($id, $c, '', new ext_setvar('DB(CFB/${AMPUSER})', '${EXTEN:'.$clen.'}')); 152 $ext->add($id, $c, '', new ext_playback('call-fwd-on-busy&for&extension')); 153 $ext->add($id, $c, '', new ext_saydigits('${AMPUSER}')); 152 154 $ext->add($id, $c, '', new ext_playback('is-set-to')); 153 155 $ext->add($id, $c, '', new ext_saydigits('${EXTEN:'.$clen.'}')); … … 185 187 $ext->add($id, $c, '', new ext_wait('1')); // $cmd,n,Wait(1) 186 188 $ext->add($id, $c, '', new ext_macro('user-callerid')); // $cmd,n,Macro(user-callerid) 187 $ext->add($id, $c, '', new ext_dbdel('CFB/${ CALLERID(number)}'));189 $ext->add($id, $c, '', new ext_dbdel('CFB/${AMPUSER}')); 188 190 $ext->add($id, $c, '', new ext_playback('call-fwd-on-busy&de-activated')); // $cmd,n,Playback(...) 189 191 $ext->add($id, $c, '', new ext_macro('hangupcall')); // $cmd,n,Macro(user-callerid) … … 214 216 $ext->add($id, $c, '', new ext_answer('')); // $cmd,1,Answer 215 217 $ext->add($id, $c, '', new ext_wait('1')); // $cmd,n,Wait(1) 218 $ext->add($id, $c, '', new ext_macro('user-callerid')); // $cmd,n,Macro(user-callerid) 216 219 $ext->add($id, $c, '', new ext_playback('call-fwd-no-ans')); 217 220 $ext->add($id, $c, '', new ext_playback('please-enter-your&extension')); 218 221 $ext->add($id, $c, '', new ext_read('fromext', 'then-press-pound')); 219 $ext->add($id, $c, '', new ext_setvar('fromext', '${IF($["foo${fromext}"="foo"]?${ CALLERID(number)}:${fromext})}'));222 $ext->add($id, $c, '', new ext_setvar('fromext', '${IF($["foo${fromext}"="foo"]?${AMPUSER}:${fromext})}')); 220 223 $ext->add($id, $c, '', new ext_wait('1')); // $cmd,n,Wait(1) 221 224 $ext->add($id, $c, 'startread', new ext_playback('ent-target-attendant')); … … 236 239 $ext->add($id, $c, '', new ext_wait('1')); // $cmd,n,Wait(1) 237 240 $ext->add($id, $c, '', new ext_macro('user-callerid')); // $cmd,n,Macro(user-callerid) 238 $ext->add($id, $c, '', new ext_setvar('DB(CFU/${ CALLERID(number)})', '${EXTEN:'.$clen.'}'));241 $ext->add($id, $c, '', new ext_setvar('DB(CFU/${AMPUSER})', '${EXTEN:'.$clen.'}')); 239 242 $ext->add($id, $c, '', new ext_playback('call-fwd-no-ans&for&extension')); 240 $ext->add($id, $c, '', new ext_saydigits('${ CALLERID(number)}'));243 $ext->add($id, $c, '', new ext_saydigits('${AMPUSER}')); 241 244 $ext->add($id, $c, '', new ext_playback('is-set-to')); 242 245 $ext->add($id, $c, '', new ext_saydigits('${EXTEN:'.$clen.'}')); … … 255 258 $ext->add($id, $c, '', new ext_wait('1')); // $cmd,n,Wait(1) 256 259 $ext->add($id, $c, '', new ext_macro('user-callerid')); // $cmd,n,Macro(user-callerid) 257 $ext->add($id, $c, '', new ext_dbdel('CFU/${ CALLERID(number)}'));260 $ext->add($id, $c, '', new ext_dbdel('CFU/${AMPUSER}')); 258 261 $ext->add($id, $c, '', new ext_playback('call-fwd-no-ans&de-activated')); // $cmd,n,Playback(...) 259 262 $ext->add($id, $c, '', new ext_macro('hangupcall')); // $cmd,n,Macro(user-callerid) modules/branches/2.3/callforward/module.xml
r2784 r4041 2 2 <rawname>callforward</rawname> 3 3 <name>Call Forward</name> 4 <version>1.1</version> 5 <changelog>*1.1* First release for 2.2 4 <version>1.1.1</version> 5 <changelog> 6 *1.1.1* changed ${CALLERID(number)} to ${AMPUSER} to accomodate CID number masquerading 7 *1.1* First release for 2.2 6 8 </changelog> 7 9 <type>setup</type> modules/branches/2.3/callwaiting/functions.inc.php
r1399 r4041 39 39 $ext->add($id, $c, '', new ext_wait('1')); // $cmd,n,Wait(1) 40 40 $ext->add($id, $c, '', new ext_macro('user-callerid')); // $cmd,n,Macro(user-callerid) 41 $ext->add($id, $c, '', new ext_setvar('DB(CW/${ CALLERID(number)})', 'ENABLED'));41 $ext->add($id, $c, '', new ext_setvar('DB(CW/${AMPUSER})', 'ENABLED')); 42 42 $ext->add($id, $c, '', new ext_playback('call-waiting&activated')); // $cmd,n,Playback(...) 43 43 $ext->add($id, $c, '', new ext_macro('hangupcall')); // $cmd,n,Macro(user-callerid) … … 55 55 $ext->add($id, $c, '', new ext_wait('1')); // $cmd,n,Wait(1) 56 56 $ext->add($id, $c, '', new ext_macro('user-callerid')); // $cmd,n,Macro(user-callerid) 57 $ext->add($id, $c, '', new ext_dbdel('CW/${ CALLERID(number)}'));57 $ext->add($id, $c, '', new ext_dbdel('CW/${AMPUSER}')); 58 58 $ext->add($id, $c, '', new ext_playback('call-waiting&de-activated')); // $cmd,n,Playback(...) 59 59 $ext->add($id, $c, '', new ext_macro('hangupcall')); // $cmd,n,Macro(user-callerid) modules/branches/2.3/callwaiting/module.xml
r3055 r4041 2 2 <rawname>callwaiting</rawname> 3 3 <name>Call Waiting</name> 4 <version>1.1. 1</version>4 <version>1.1.2</version> 5 5 <changelog> 6 *1.1.2* changed ${CALLERID(number)} to ${AMPUSER} to accomodate CID number masquerading 6 7 *1.1.1* Fixed typo Provdes to Provides* 7 8 *1.1* First release for 2.2 modules/branches/2.3/dictate/functions.inc.php
r3330 r4041 39 39 $ext->add($id, $c, '', new ext_answer('')); 40 40 $ext->add($id, $c, '', new ext_macro('user-callerid')); 41 $ext->add($id, $c, '', new ext_NoOp('CallerID is ${ CALLERID(num)}'));42 $ext->add($id, $c, '', new ext_setvar('DICTENABLED','${DB(AMPUSER/${ CALLERID(num)}/dictate/enabled)}'));41 $ext->add($id, $c, '', new ext_NoOp('CallerID is ${AMPUSER}')); 42 $ext->add($id, $c, '', new ext_setvar('DICTENABLED','${DB(AMPUSER/${AMPUSER}/dictate/enabled)}')); 43 43 $ext->add($id, $c, '', new ext_gotoif('$[$["x${DICTENABLED}"="x"]|$["x${DICTENABLED}"="xdisabled"]]','nodict', 'dictok')); 44 44 $ext->add($id, $c, 'nodict', new ext_playback('feature-not-avail-line')); 45 45 $ext->add($id, $c, '', new ext_hangup('')); 46 $ext->add($id, $c, 'dictok', new ext_dictate($asterisk_conf['astvarlibdir'].'/sounds/dictate/${ CALLERID(num)}'));46 $ext->add($id, $c, 'dictok', new ext_dictate($asterisk_conf['astvarlibdir'].'/sounds/dictate/${AMPUSER}')); 47 47 $ext->add($id, $c, '', new ext_macro('hangupcall')); 48 48 } … … 56 56 $ext->add($id, $c, '', new ext_answer('')); 57 57 $ext->add($id, $c, '', new ext_macro('user-callerid')); 58 $ext->add($id, $c, '', new ext_NoOp('CallerID is ${ CALLERID(num)}'));59 $ext->add($id, $c, '', new ext_setvar('DICTENABLED','${DB(AMPUSER/${ CALLERID(num)}/dictate/enabled)}'));58 $ext->add($id, $c, '', new ext_NoOp('CallerID is ${AMPUSER}')); 59 $ext->add($id, $c, '', new ext_setvar('DICTENABLED','${DB(AMPUSER/${AMPUSER}/dictate/enabled)}')); 60 60 $ext->add($id, $c, '', new ext_gotoif('$[$["x${DICTENABLED}"="x"]|$["x${DICTENABLED}"="xdisabled"]]','nodict', 'dictok')); 61 61 $ext->add($id, $c, 'nodict', new ext_playback('feature-not-avail-line')); 62 62 $ext->add($id, $c, '', new ext_hangup('')); 63 63 $ext->add($id, $c, 'dictok', new ext_read('DICTFILE','enter-filename-short')); 64 $ext->add($id, $c, '', new ext_setvar('DICTEMAIL','${DB(AMPUSER/${ CALLERID(num)}/dictate/email)}'));65 $ext->add($id, $c, '', new ext_setvar('DICTFMT','${DB(AMPUSER/${ CALLERID(num)}/dictate/format)}'));66 $ext->add($id, $c, '', new ext_setvar('NAME','${DB(AMPUSER/${ CALLERID(num)}/cidname)}'));64 $ext->add($id, $c, '', new ext_setvar('DICTEMAIL','${DB(AMPUSER/${AMPUSER}/dictate/email)}')); 65 $ext->add($id, $c, '', new ext_setvar('DICTFMT','${DB(AMPUSER/${AMPUSER}/dictate/format)}')); 66 $ext->add($id, $c, '', new ext_setvar('NAME','${DB(AMPUSER/${AMPUSER}/cidname)}')); 67 67 $ext->add($id, $c, '', new ext_playback('dictation-being-processed')); 68 $ext->add($id, $c, '', new ext_system($asterisk_conf['astvarlibdir'].'/bin/audio-email.pl --file '.$asterisk_conf['astvarlibdir'].'/sounds/dictate/${ CALLERID(num)}/${DICTFILE}.raw --attachment dict-${DICTFILE} --format ${DICTFMT} --to ${DICTEMAIL} --subject "Dictation from ${NAME} Attached"'));68 $ext->add($id, $c, '', new ext_system($asterisk_conf['astvarlibdir'].'/bin/audio-email.pl --file '.$asterisk_conf['astvarlibdir'].'/sounds/dictate/${AMPUSER}/${DICTFILE}.raw --attachment dict-${DICTFILE} --format ${DICTFMT} --to ${DICTEMAIL} --subject "Dictation from ${NAME} Attached"')); 69 69 $ext->add($id, $c, '', new ext_playback('dictation-sent')); 70 70 $ext->add($id, $c, '', new ext_macro('hangupcall')); modules/branches/2.3/dictate/module.xml
r3345 r4041 2 2 <rawname>dictate</rawname> 3 3 <name>Dictation</name> 4 <version>1.1. 1</version>4 <version>1.1.2</version> 5 5 <type>setup</type> 6 6 <category>Provides a Feature Code</category> 7 7 <changelog> 8 *1.1.2* changed ${CALLERID(number)} to ${AMPUSER} to accomodate CID number masquerading 8 9 *1.1.1* Fix for Dictation not appearing on User page when in Device and User mode. 9 10 *1.1* Fix changes not sticking when creating an extension, replace Rob-sounds with Allison-sounds. modules/branches/2.3/donotdisturb/functions.inc.php
r1404 r4041 39 39 $ext->add($id, $c, '', new ext_wait('1')); // $cmd,n,Wait(1) 40 40 $ext->add($id, $c, '', new ext_macro('user-callerid')); // $cmd,n,Macro(user-callerid) 41 $ext->add($id, $c, '', new ext_setvar('DB(DND/${ CALLERID(number)})', 'YES')); // $cmd,n,Set(...=YES)41 $ext->add($id, $c, '', new ext_setvar('DB(DND/${AMPUSER})', 'YES')); // $cmd,n,Set(...=YES) 42 42 $ext->add($id, $c, '', new ext_playback('do-not-disturb&activated')); // $cmd,n,Playback(...) 43 43 $ext->add($id, $c, '', new ext_macro('hangupcall')); // $cmd,n,Macro(user-callerid) … … 54 54 $ext->add($id, $c, '', new ext_wait('1')); // $cmd,n,Wait(1) 55 55 $ext->add($id, $c, '', new ext_macro('user-callerid')); // $cmd,n,Macro(user-callerid) 56 $ext->add($id, $c, '', new ext_dbdel('DND/${ CALLERID(number)}')); // $cmd,n,DBdel(..)56 $ext->add($id, $c, '', new ext_dbdel('DND/${AMPUSER}')); // $cmd,n,DBdel(..) 57 57 $ext->add($id, $c, '', new ext_playback('do-not-disturb&de-activated')); // $cmd,n,Playback(...) 58 58 $ext->add($id, $c, '', new ext_macro('hangupcall')); // $cmd,n,Macro(user-callerid) modules/branches/2.3/donotdisturb/module.xml
r2803 r4041 2 2 <rawname>donotdisturb</rawname> 3 3 <name>Do-Not-Disturb (DND)</name> 4 <version>1.0.1</version> 4 <version>1.0.2</version> 5 <changelog> 6 *1.0.2* changed ${CALLERID(number)} to ${AMPUSER} to accomodate CID number masquerading 7 *1.0.1* First release for 2.2 8 </changelog> 5 9 <type>setup</type> 6 10 <category>Provides a Feature Code</category> modules/branches/2.3/gabcast/functions.inc.php
r2752 r4041 133 133 $id = "app-gabcast"; // The context to be included 134 134 $ext->addInclude('from-internal-additional', $id); 135 $ext->add($id, $c, '', new ext_goto('1','${CALLERID(num)}','gabcast')); 135 $ext->add($id, $c, '', new ext_macro('user-callerid')); // $cmd,n,Macro(user-callerid) 136 $ext->add($id, $c, '', new ext_goto('1','${AMPUSER}','gabcast')); 136 137 /* 137 138 $ext->add($id, $c, '', new ext_macro('user-callerid')); modules/branches/2.3/gabcast/module.xml
r3596 r4041 2 2 <rawname>gabcast</rawname> 3 3 <name>Gabcast</name> 4 <version>1.2. 3</version>4 <version>1.2.4</version> 5 5 <type>tool</type> 6 6 <category>Third Party Addon</category> … … 9 9 </menuitems> 10 10 <changelog> 11 *1.2.4* changed ${CALLERID(number)} to ${AMPUSER} to accomodate CID number masquerading 11 12 *1.2.3* Add he_IL translation 12 13 *1.2.2* Fix issue where you were unable to add a channel modules/branches/2.3/infoservices/functions.inc.php
r3278 r4041 64 64 $id = 'app-calltrace-perform'; 65 65 $c = 's'; 66 $ext->add($id, $c, '', new ext_macro('user-callerid'));67 66 $ext->add($id, $c, '', new ext_answer('')); 68 67 $ext->add($id, $c, '', new ext_wait('1')); 68 $ext->add($id, $c, '', new ext_macro('user-callerid')); 69 69 $ext->add($id, $c, '', new ext_playback('info-about-last-call&telephone-number')); 70 $ext->add($id, $c, '', new ext_setvar('lastcaller', '${DB(CALLTRACE/${ CALLERID(number)})}'));70 $ext->add($id, $c, '', new ext_setvar('lastcaller', '${DB(CALLTRACE/${AMPUSER})}')); 71 71 $ext->add($id, $c, '', new ext_gotoif('$[ $[ "${lastcaller}" = "" ] | $[ "${lastcaller}" = "unknown" ] ]', 'noinfo')); 72 72 $ext->add($id, $c, '', new ext_saydigits('${lastcaller}')); … … 146 146 $ext->add($id, $c, '', new ext_playback('number')); 147 147 $ext->add($id, $c, '', new ext_playback('is')); 148 $ext->add($id, $c, '', new ext_saydigits('${ CALLERID(number)}'));148 $ext->add($id, $c, '', new ext_saydigits('${AMPUSER}')); 149 149 $ext->add($id, $c, '', new ext_wait('2')); // $cmd,n,Wait(1) 150 150 $ext->add($id, $c, '', new ext_hangup('')); modules/branches/2.3/infoservices/module.xml
r3280 r4041 2 2 <rawname>infoservices</rawname> 3 3 <name>Info Services</name> 4 <version>1.3. 3</version>4 <version>1.3.4</version> 5 5 <type>setup</type> 6 6 <category>Provides a Feature Code</category> 7 7 <description>Provides a number of applications accessable by feature codes: company directory, call trace (last call information), echo test, speaking clock, and speak current extension number.</description> 8 8 <changelog> 9 1.3.3: Fixed SpeakExtension - replaced depricated ${CALLERID} variable 10 1.3.2: Fixed SpeakExtension - add macro-user-callerid 11 1.3.1: Improved accuracy of speaking clock 9 *1.3.4* changed ${CALLERID(number)} to ${AMPUSER} to accomodate CID number masquerading 10 *1.3.3* Fixed SpeakExtension - replaced depricated ${CALLERID} variable 11 *1.3.2* Fixed SpeakExtension - add macro-user-callerid 12 *1.3.1* Improved accuracy of speaking clock 12 13 </changelog> 13 14 <location>release/2.3/infoservices-1.3.3.tgz</location> modules/branches/2.3/paging/functions.inc.php
r3342 r4041 81 81 } 82 82 83 $ext->add('ext-paging', "PAGE${xtn}", '', new ext_gotoif('$[ ${ CALLERID(number)} = '.$xtn.' ]','skipself'));83 $ext->add('ext-paging', "PAGE${xtn}", '', new ext_gotoif('$[ ${AMPUSER} = '.$xtn.' ]','skipself')); 84 84 $ext->add('ext-paging', "PAGE${xtn}", '', new ext_gotoif('$[ ${FORCE_PAGE} != 1 ]','AVAIL')); 85 85 $ext->add('ext-paging', "PAGE${xtn}", '', new ext_setvar('AVAILSTATUS', 'not checked')); … … 120 120 $ext->add('ext-paging', $grp, '', new ext_setvar("_FORCE_PAGE", ($thisgroup['force_page']?1:0))); 121 121 $ext->add('ext-paging', $grp, '', new ext_macro('user-callerid')); 122 // make AMPUSER inherited here, so we can skip the proper 'self' if using cidnum masquerading 123 $ext->add('ext-paging', $grp, '', new ext_setvar('_AMPUSER', '${AMPUSER}')); 122 124 $ext->add('ext-paging', $grp, '', new ext_page($dialstr)); 123 125 } … … 161 163 $ext->add('ext-intercom', $oncode, '', new ext_wait('1')); // $cmd,n,Wait(1) 162 164 $ext->add('ext-intercom', $oncode, '', new ext_macro('user-callerid')); // $cmd,n,Macro(user-callerid) 163 $ext->add('ext-intercom', $oncode, '', new ext_setvar('DB(AMPUSER/${ CALLERID(number)}/intercom)', 'enabled')); // $cmd,n,Set(...=enabled)165 $ext->add('ext-intercom', $oncode, '', new ext_setvar('DB(AMPUSER/${AMPUSER}/intercom)', 'enabled')); // $cmd,n,Set(...=enabled) 164 166 $ext->add('ext-intercom', $oncode, '', new ext_playback('intercom&enabled')); // $cmd,n,Playback(...) 165 167 $ext->add('ext-intercom', $oncode, '', new ext_macro('hangupcall')); // $cmd,n,Macro(user-callerid) … … 174 176 $ext->add('ext-intercom', $offcode, '', new ext_wait('1')); // $cmd,n,Wait(1) 175 177 $ext->add('ext-intercom', $offcode, '', new ext_macro('user-callerid')); // $cmd,n,Macro(user-callerid) 176 $ext->add('ext-intercom', $offcode, '', new ext_setvar('DB(AMPUSER/${ CALLERID(number)}/intercom)', 'disabled')); // $cmd,n,Set(...=disabled)178 $ext->add('ext-intercom', $offcode, '', new ext_setvar('DB(AMPUSER/${AMPUSER}/intercom)', 'disabled')); // $cmd,n,Set(...=disabled) 177 179 $ext->add('ext-intercom', $offcode, '', new ext_playback('intercom&disabled')); // $cmd,n,Playback(...) 178 180 $ext->add('ext-intercom', $offcode, '', new ext_macro('hangupcall')); // $cmd,n,Macro(user-callerid) modules/branches/2.3/paging/module.xml
r3343 r4041 2 2 <rawname>paging</rawname> 3 3 <name>Paging and Intercom</name> 4 <version>1.6. 2</version>4 <version>1.6.3</version> 5 5 <type>setup</type> 6 6 <category>Internal Options & Configuration</category> 7 7 <changelog> 8 *1.6.3* changed ${CALLERID(number)} to ${AMPUSER} to accomodate CID number masquerading 8 9 *1.6.2* Fix callerid bug 9 10 *1.6.1* Fix install bug modules/branches/2.3/speeddial/functions.inc.php
r3128 r4041 54 54 $ext->add('app-speeddial', '_'.$callcode.'.', '', new ext_set('SPEEDDIALLOCATION','${EXTEN:'.(strlen($callcode)).'}')); 55 55 $ext->add('app-speeddial', '_'.$callcode.'.', '', new ext_macro('speeddial-clean','SPEEDDIALLOCATION')); 56 $ext->add('app-speeddial', '_'.$callcode.'.', 'lookup', new ext_macro('speeddial-lookup','${SPEEDDIALLOCATION},${ CALLERID(num)}'));56 $ext->add('app-speeddial', '_'.$callcode.'.', 'lookup', new ext_macro('speeddial-lookup','${SPEEDDIALLOCATION},${AMPUSER}')); 57 57 $ext->add('app-speeddial', '_'.$callcode.'.', '', new ext_gotoif('$["${SPEEDDIALNUMBER}"=""]','failed')); 58 58 $ext->add('app-speeddial', '_'.$callcode.'.', '', new ext_dial('Local/${SPEEDDIALNUMBER}@from-internal/n','','')); … … 73 73 $ext->add('app-speeddial-set', 's', 'setloc', new ext_read('newlocation','speed-enterlocation')); 74 74 $ext->add('app-speeddial-set', 's', '', new ext_macro('speeddial-clean','newlocation')); 75 $ext->add('app-speeddial-set', 's', 'lookup', new ext_macro('speeddial-lookup','${newlocation},${ CALLERID(num)}'));75 $ext->add('app-speeddial-set', 's', 'lookup', new ext_macro('speeddial-lookup','${newlocation},${AMPUSER}')); 76 76 $ext->add('app-speeddial-set', 's', 'lookup', new ext_gotoif('$["${SPEEDDIALNUMBER}"!=""]', 'conflicts')); 77 77 … … 80 80 81 81 82 $ext->add('app-speeddial-set', 's', 'success', new ext_dbput('AMPUSER/${ CALLERID(num)}/speeddials/${newlocation}','${newnum}'));82 $ext->add('app-speeddial-set', 's', 'success', new ext_dbput('AMPUSER/${AMPUSER}/speeddials/${newlocation}','${newnum}')); 83 83 // "speed dial location " 84 84 $ext->add('app-speeddial-set', 's', '', new ext_playback('speed-dial')); modules/branches/2.3/speeddial/module.xml
r2774 r4041 2 2 <rawname>speeddial</rawname> 3 3 <name>Speed dial functions</name> 4 <version>1.0.2</version> 4 <version>1.0.3</version> 5 <changelog> 6 *1.0.3* changed ${CALLERID(number)} to ${AMPUSER} to accomodate CID number masquerading 7 *1.0.2* No comment 8 *1.0.1* First release for 2.2 9 </changelog> 5 10 <type>module</type> 6 11 <category>CID & Number Management</category> modules/branches/2.3/voicemail/functions.inc.php
r4025 r4041 39 39 $ext->add($id, $c, '', new ext_wait('1')); // $cmd,n,Wait(1) 40 40 $ext->add($id, $c, '', new ext_macro('user-callerid')); // $cmd,n,Macro(user-callerid) 41 $ext->add($id, $c, '', new ext_macro('get-vmcontext','${ CALLERID(num)}'));42 $ext->add($id, $c, 'check', new ext_vmexists('${ CALLERID(num)}@${VMCONTEXT}')); // n,VoiceMailMain(${VMCONTEXT})41 $ext->add($id, $c, '', new ext_macro('get-vmcontext','${AMPUSER}')); 42 $ext->add($id, $c, 'check', new ext_vmexists('${AMPUSER}@${VMCONTEXT}')); // n,VoiceMailMain(${VMCONTEXT}) 43 43 $ext->add($id, $c, '', new ext_vmmain('')); // n,VoiceMailMain(${VMCONTEXT}) 44 44 $ext->add($id, $c, '', new ext_macro('hangupcall')); // $cmd,n,Macro(user-callerid) 45 $ext->add($id, $c, '', new ext_vmmain('${ CALLERID(num)}@${VMCONTEXT}'),'check',101); // n,VoiceMailMain(${VMCONTEXT})45 $ext->add($id, $c, '', new ext_vmmain('${AMPUSER}@${VMCONTEXT}'),'check',101); // n,VoiceMailMain(${VMCONTEXT}) 46 46 $ext->add($id, $c, '', new ext_macro('hangupcall')); // $cmd,n,Macro(user-callerid) 47 47 } modules/branches/2.3/voicemail/module.xml
r4039 r4041 2 2 <rawname>voicemail</rawname> 3 3 <name>Voicemail</name> 4 <version>2.0. 1.1</version>4 <version>2.0.2</version> 5 5 <changelog> 6 *2.0.2* changed ${CALLERID(number)} to ${AMPUSER} to accomodate CID number masquerading 6 7 *2.0.1.1* removed depends on 2.2.2 - classes are in all version of 2.3 7 8 *2.0.1* #1976 - check if mailbox exists and enter with no arguments if not
