[asterisk-users] How to modify incoming DNIS?

C F shmaltz at gmail.com
Tue Aug 22 05:50:08 MST 2006


NEVER set exten just use a goto. What ever happned to contexts?

On 8/22/06, Leo Ann Boon <leo at datvoiz.com> wrote:
> 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
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>



More information about the asterisk-users mailing list