[asterisk-users] single keypress short-circuits to invalid extension handler

Cassius Smith cassius at cassius.org
Wed Jul 6 08:30:24 CDT 2011


On 7/6/11 3:20 PM, "Eric Wieling" <EWieling at nyigc.com> wrote:


>
>
>> -----Original Message-----
>> From: asterisk-users-bounces at lists.digium.com
>> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of
>> Cassius Smith
>> Sent: Wednesday, July 06, 2011 4:37 AM
>> To: Asterisk Users Mailing List - Non-Commercial Discussion
>> Subject: [asterisk-users] single keypress short-circuits to
>> invalid extension handler
>>
>> Hello all
>> I'm running Asterisk 1.8.4.4 in a new installation. I'm
>> seeing peculiar behaviour in a context where I dispatch to
>> different MeetMe conference rooms. It seems the first digit
>> is being given to Asterisk and it ALWAYS jumps to the "i"
>> extension. I originally had single digits for the MeetMe
>> rooms, I tried double digits to no avail. As soon as I press
>> the 0 key it plays  the invalid message. Here is my meet-me
>> context from my dialplan. Any ideas? Other sections of my
>> dialplan work fine in permitting multiple digit keypresses. I
>> have used this same dialplan in many other installations, so
>> I'm pretty flummoxed by this...
>>
>> Cassius Smith
>>
>> [meet-me]
>> exten => s,1(top),NoOp()
>>  same => n,Answer()
>>  same => n,Wait(1.0)
>>  same =>
>> n,Background(enter-conf-call-number&digits/0&digits/0&through&
>digits/0&digits/9)
>>  same => n,WaitExten(5)
>>
>> exten => 00,n,MeetMe(SouthAfrica0,dMs)
>> exten => 01,n,MeetMe(Swaziland1,dMs)
>> exten => 02,n,MeetMe(Botswana2,dMs)
>> exten => 03,n,MeetMe(Zimbabwe3,dMs)
>> exten => 04,n,MeetMe(Lesotho4,dMs)
>> exten => 05,n,MeetMe(Mozambique5,dMs)
>> exten => 06,n,MeetMe(Zimbabwe6,dMs)
>> exten => 07,n,MeetMe(Namibia7,dMs)
>> exten => 08,n,MeetMe(Angola8,dMs)
>> exten => 09,n,MeetMe(Congo9,dMs)
>>
>> exten => t,1,Goto(s,top)
>>
>> exten => i,1,Playback(invalid)
>>  same => n,Goto(s,top)
>> ============================
>> And here is the console output...
>>     -- Executing [4098 at users:1] Goto("SIP/4099-00000026",
>> "meet-me,s,1") in new stack
>>     -- Goto (meet-me,s,1)
>>     -- Executing [s at meet-me:1] NoOp("SIP/4099-00000026", "")
>> in new stack
>>     -- Executing [s at meet-me:2] Answer("SIP/4099-00000026",
>> "") in new stack
>>     -- Executing [s at meet-me:3] Wait("SIP/4099-00000026",
>> "1.0") in new stack
>>     -- Executing [s at meet-me:4]
>> BackGround("SIP/4099-00000026",
>> "enter-conf-call-number&digits/0&digits/0&through&digits/0&dig
>its/9") in new stack
>>     -- <SIP/4099-00000026> Playing
>> 'enter-conf-call-number.ulaw' (language 'en_ZA')
>>     -- Invalid extension '0' in context 'meet-me' on SIP/4099-00000026
>>   == CDR updated on SIP/4099-00000026
>>     -- Executing [i at meet-me:1] Playback("SIP/4099-00000026",
>> "invalid") in new stack
>>     -- <SIP/4099-00000026> Playing 'invalid.slin' (language 'en_ZA')
>>     -- Executing [i at meet-me:2] Goto("SIP/4099-00000026",
>> "s,top") in new stack
>>     -- Goto (meet-me,s,1)
>>     -- Executing [s at meet-me:1] NoOp("SIP/4099-00000026", "")
>> in new stack
>>
>>
>>
>
>You don't have a priority 1
>
>exten => 00,1,MeetMe(SouthAfrica0,dMs)
>exten => 01,1,MeetMe(Swaziland1,dMs)
>exten => 02,1,MeetMe(Botswana2,dMs)
>Etc.
>
>WaitExten can accept more than one digit.
>
Thanks Eric - this was it. I knew WaitExten() would read more than 1
digit. I guess I'd been staring at it so long I couldn't see the error. I
appreciate the extra eyes!

Cassius

>





More information about the asterisk-users mailing list