[asterisk-users] How to modify incoming DNIS?
Leo Ann Boon
leo at datvoiz.com
Tue Aug 22 05:05:47 MST 2006
Chris,
See my comments in line
Chris Ziomkowski wrote:
> Hello everyone,
>
> (CALLERID(num) is updated correctly, but EXTEN never gets changed.)
${EXTEN} will always return the current executing extension. I don't
think it's possible to reassign it via a Set (someone please correct me
if I'm wrong). The only way is via a Goto.
>
> [from-sip-trunk-A]
> exten => _1234XXXX,1,Set(EXTEN=44${EXTEN})
> exten => _1234XXXX,2,Set(CALLERID(num)=44${CALLERID(num)})
> exten => _1234XXXX,3,Goto(s,1)
> exten => s,1,Goto(incoming-call,${EXTEN},1)
Isn't this the same as?
[from-sip-trunk-A]
exten => _1234XXXX,1,Set(CALLERID(num)=44${CALLERID(num)})
exten => _1234XXXX,n,Goto(incoming-calls, 44${EXTEN},1)
Now, if you have
[incoming-calls]
exten => _X.,1,Set(MYDNIS=${EXTEN}_)
You should see that MYDNIS will be 441234XXXX.
Cheers.
Leo
More information about the asterisk-users
mailing list