Displaying 2 results from an estimated 2 matches for "pstn_global".
2007 Sep 05
1
Dialplan regexp
...led
numbers for 01793520158, and jump to "local",priority1
If I change it to :
exten => 01793520158,1,Goto(local,${EXTEN:-3},1)
....
then it works fine (but that's too specific)...
exten => _017935201[56][0-9],1,Goto(local,${EXTEN:-3},1)
exten => _0.,1,Set(CALLERID(num)=${PSTN_GLOBAL}${CALLERID(num):-3})
exten => _0.,2,Dial(${TRUNK}/${EXTEN},,W)
Adrian Marsh
2007 Aug 30
4
How to handle "+" prefix
...national]
exten => _+.,1,Set(EXTEN=00${EXTEN:+1})
exten => _+.,2,NoOp(test line: ${EXTEN})
[outgoing-pstn]
exten =>
_0.,1,ExecIF($["${RECORDOUTBOUND}"="TRUE"],Monitor,wav|${TIMESTAMP}-${CA
LLERID(num)}-${EXTEN}-${UNIQUEID}.WAV)
;exten => _0.,2,Set(CALLERID(number)=${PSTN_GLOBAL}${CALLERID(num):-2})
exten =>
_0.,2,ExecIF($[${LEN(${CALLERID(num)})}=4],Set,CALLERID(number)=${PSTN_G
LOBAL}${CALLERID(num):-2})
exten => _0.,3,Dial(${TRUNK}/${EXTEN},,W)
exten => _0.,4,Congestion
exten => _0.,5,Goto(outgoing-zen-out-0,${EXTEN},1)
exten => _0.,103,Busy
exten => _...