[Asterisk-Dev] extensions with random length ended with a #
Alfred R. Nurnberger
alfred at flosys.com
Thu Apr 1 09:21:19 MST 2004
Try this:
[patient]
EXT3=patient
exten => _X.,1,GetWave(${EXTEN})
exten => _X.,2,Dial(ZAP/2,20,tr)
-Alfred
-----Original Message-----
From: asterisk-dev-admin at lists.digium.com
[mailto:asterisk-dev-admin at lists.digium.com]On Behalf Of Christian Beaulieu
Sent: Thursday, April 01, 2004 7:28 AM
To: asterisk-dev at lists.digium.com
Subject: Re: [Asterisk-Dev] extensions with random length ended with a #
Just to make sure I'm clear in this.
[home]
include => sip
[sub1]
EXT2=sub1
exten => s,1,Playback(demo-congrats)
[sub2]
include => patient
exten => s,1,DigitTimeout,7
exten => s,2,ResponseTimeout,10
exten => s,3,BackGround(demo-congrats)
exten => 0,1,Dial(SIP/2001,20,tr)
[patient]
EXT3=patient
exten => _.,1,GetWave(${EXTEN})
exten => _.,2,Dial(ZAP/2,20,tr)
This is the dial plan. When I use this, Get wave then prints out the content
of EXTEN into a file. In the file itself however, I never get the extact
same extension that i've dialed. When I dial lets say 123, I sometimes get
1, sometimes 12, sometimes 123 all depending on how I dial. That is why I' d
like to have a widlcard ending with a # to simplify all of this. Is it
possible?
----- Original Message -----
From: Christian Beaulieu
To: asterisk-dev at lists.digium.com
Sent: Thursday, April 01, 2004 10:12 AM
Subject: [Asterisk-Dev] extensions with random length ended with a #
I am trying to make a call to my application with an extension with a ramdom
number of digits. Unfortunately with the _. extension I get a random number
of digits in my app.
Is there a way to do this simply?
Thanks in advance.
Christian
More information about the asterisk-dev
mailing list