[Asterisk-Users] How to strip a digit

Erick Perez eaperezh at gmail.com
Tue May 30 13:37:40 MST 2006


me dumb, a quick question slipped my mail.
should google more next time.

Thanks to all.

On 5/30/06, C F <shmaltz at gmail.com> wrote:
> It's all in README.variables or here:
> http://voip-info.org/wiki/view/Asterisk+variables
> use ${EXTEN:1}
>
> On 5/30/06, Erick Perez <eaperezh at gmail.com> wrote:
> > I have the following extension to dial outside via SIP
> > it's like this:
> > phone----asterisk-----internet-----SIP provider----USA
> >
> > exten => _91NXXNXXXXXX,1,AGI(call_log.agi,${EXTEN})
> > exten => _91NXXNXXXXXX,2,Dial(${SIPtrunk}/${EXTEN},55,o)
> > exten => _91NXXNXXXXXX,3,Hangup
> >
> > I want to strip the digit 9 before sending it to the SIP provider.
> > Also, any suggestions for the above definition?
> > Thanks,
> >
> > Erick.
> >
> > --
> > _______________________________________________
> > --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
> >
> _______________________________________________
> --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
>


-- 

-------------------------------------------
Erick Perez
Linux User 376588
http://counter.li.org/  (Get counted!!!)
Panama, Republic of Panama



More information about the asterisk-users mailing list