[asterisk-users] original & reformat extension

Administrator TOOTAI admin at tootai.net
Wed Aug 5 04:53:57 CDT 2009


Karl Fife a écrit :
> [...] there are times when I want to send the call to another context in its original un-reformatted state.  Naturally the ${EXTEN} variable has been changed.  It occurred to me to use CALLERID(DNID) as such:
>
> exten => _1NXXNXXXXXX,n(fail),Goto(other-context,${CALLERID(DNID)},1) 
>   
Before goto

exten => _NXXNXXXXXX,1,Set(__DIALEDNUMBER=${EXTEN}) 
exten => _NXXNXXXXXX,n,Goto(1${EXTEN},1) 

and then you always have the original unformated state in ${DIALEDNUMBER}


-- 
Daniel



More information about the asterisk-users mailing list