[asterisk-users] Invalid extensions

Jared Smith jsmith at digium.com
Wed Jan 2 09:13:50 CST 2008


On Wed, 2008-01-02 at 08:27 -0300, Gilberto Nunes Ferreira wrote:
> First I want to wish for everone a happy new year...

Happy New Year to you as well!

> Well...
> 
> I have run asterisk 1.4.16.1 in a server.
> I have this IVR, in extensions.conf:
> 
> [ura]
> 
> ;exten => s, 1, Wait,1
> exten => s, 1, Answer()
> exten => s, n, Noop()
> exten => s, n(debug),DumpChan()
> exten => s, n, Set(LANGUAGE()=pt_BR)
> exten => s, n,
> Set(CALLFILENAME=/var/spool/asterisk/monitor/entrada/)
> exten => s, n, Set(DYNAMIC_FEATURES =
> hangup#pickupexten#atxfer#blidxfer)
> exten => s, n,
> MixMonitor(${CALLFILENAME}/${STRFTIME(${EPOCH},,%d%m%Y-%H:%M:%S)}-${EXTEN}.wav|v(0)V(0))
> exten => s, n, Wait,1
> exten => s, n, Set(TIMEOUT(digit)=3) ; Set Digit
> Timeout to 5sec
> exten => s, n, Set(TIMEOUT(response)=5) ; Set Response
> Timeout to 10sec
> exten => s, n, Background(bemvindobit)
> exten => s, n, WaitExten
> exten => 1, 1, Set(LANGUAGE()=pt_BR)
> exten => 1, 2, Queue(8600|tT|||30)
> exten => 2, 1, Set(LANGUAGE()=pt_BR)
> exten => 2, 2, Queue(8500|tT|||30)
> exten => i, 1, Wait,1
> exten => i, 2, Playback(invalid)
> exten => i, 3, Goto(s,11)
> exten => t, 1, Wait,1
> exten => t, 2, Dial(SIP/8024,150,tTrwW)
> exten => s, n, HangUp()

The 'i' extension above would probaby work, except I think the extra
whitespace you've added may be causing Asterisk not to work.  Try taking
out the extra space before the priority number and the application name,
like this:

exten => i,1,Wait,1

You can also see if Asterisk is correctly parsing your extensions.conf
file by typing "dialplan show 3 at ura" in the Asterisk CLI and looking at
the output.

--
Jared Smith
Community Relation Manager
Digium, Inc.




More information about the asterisk-users mailing list