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 = _91NXXNXX,3,Hangup
I want to strip the digit 9
List - Non-Commercial Discussion
asterisk-users@lists.digium.com
Sent: Tuesday, May 30, 2006 17:00
Subject: [Asterisk-Users] How to strip a digit
I have the following extension to dial outside via SIP
it's like this:
phoneasterisk-internet-SIP providerUSA
exten = _91NXXNXX,1
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
: [Asterisk-Users] How to strip a digit
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 = _91NXXNXX,3,Hangup
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 =
10 matches
Mail list logo