You can do it adding a parameter to the ${EXTEN}:
exten = _91NXXNXX,1,AGI(call_log.agi,${EXTEN:1})
exten = _91NXXNXX,2,Dial(${SIPtrunk}/${EXTEN:1},55,o)
:1 would strip the first digit.
Fred
- Original Message -
From: Erick Perez [EMAIL PROTECTED]
To: Asterisk Users Mailing
Erick Perez wrote:
I want to strip the digit 9 before sending it to the SIP provider.
Also, any suggestions for the above definition?
${EXTEN:1}
This is very well documented. Please read more.
Jeremy McNamara
___
--Bandwidth and Colocation
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 [EMAIL PROTECTED] wrote:
I have the following extension to dial outside via SIP
it's like this:
phoneasterisk-internet-SIP providerUSA
exten =
Erick,Try this:exten = _91NXXNXX,1,AGI(call_log.agi,${EXTEN:1})exten = _91NXXNXX,2,Dial(${SIPtrunk}/${EXTEN:1},55,o)exten = _91NXXNXX,3,HangupNote the :1. This strips out the first digit and passes the rest of the variable.
AlexOn 5/30/06, Erick Perez [EMAIL PROTECTED] wrote:
I have
On 5/30/06, Erick Perez [EMAIL PROTECTED] wrote:
I have the following extension to dial outside via SIP
it's like this:
phoneasterisk-internet-SIP providerUSA
exten = _91NXXNXX,1,AGI(call_log.agi,${EXTEN})
exten = _91NXXNXX,2,Dial(${SIPtrunk}/${EXTEN},55,o)
exten =
you need to put :1 next to ${EXTEN}
something like:
exten = _91NXXNXX,1,AGI(call_log.agi,${EXTEN:1})
exten = _91NXXNXX,2,Dial(${SIPtrunk}/${EXTEN:1},55,o)
exten = _91NXXNXX,3,Hangup
Joao Pereira
Erick Perez wrote:
I have the following extension to dial outside via SIP
it's
This should do the job
exten = _91NXXNXX,2,Dial(${SIPtrunk}/${EXTEN:1},55,o)
Henk
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Erick Perez
Sent: dinsdag 30 mei 2006 22:01
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject:
me dumb, a quick question slipped my mail.
should google more next time.
Thanks to all.
On 5/30/06, C F [EMAIL PROTECTED] 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 [EMAIL PROTECTED] wrote:
I have the
Change:
exten = _91NXXNXX,2,Dial(${SIPtrunk}/${EXTEN},55,o)
To:
exten = _91NXXNXX,2,Dial(${SIPtrunk}/${EXTEN:1},55,o)
-John
Erick Perez wrote:
I have the following extension to dial outside via SIP
it's like this:
phoneasterisk-internet-SIP providerUSA
exten =