Cassius Smith
2011-Jul-06 08:37 UTC
[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&digit s/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&digits/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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110706/3a53c448/attachment.htm>
Faisal Hanif
2011-Jul-06 09:11 UTC
[asterisk-users] single keypress short-circuits to invalid extension handler
You can't use WaitExten to receive two digits. Use Read() command. 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 1:37 PM 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&digit s/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&digits/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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110706/6818b479/attachment-0001.htm>
Eric Wieling
2011-Jul-06 13:20 UTC
[asterisk-users] single keypress short-circuits to invalid extension handler
> -----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&digits/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.