[Asterisk-Users] How to strip a digit

Time Bandit timebandit001 at gmail.com
Tue May 30 13:18:51 MST 2006


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.

exten => _91NXXNXXXXXX,2,Dial(${SIPtrunk}/${EXTEN:1},55,o)

hth



More information about the asterisk-users mailing list