[asterisk-users] WaitExten only reading 1 digit.

Simon Tennant simon at imaginator.com
Sun Nov 19 10:05:21 MST 2006


I am trying to setup an interactive menu where a caller hits the main
menu and can then dial an extension.  As far as I can tell the
"Waitexten" app is failing to read 3 digits and just reading the first
and then announcing that it is invalid since all extensions are 3 digits.

How do I make Waitexten wait for 3 digits?

I have setup the extension "100" for users to reach the switchboard as
they would from outside:

[internal-extensions]
exten => 100,1,Goto(mainmenu,s,10)
exten => 101,1,Dial(SIP/101,30)
exten => 101,2,Voicemail(u101)
exten => 101,3,Hangup()
exten => 102,1,Dial(SIP/102,30)
exten => 102,2,Voicemail(u102)
exten => 102,3,Hangup()


dialing 100 then hits "mainmenu"

[mainmenu]
exten => s,10,Answer
exten => s,11,Wait(1)
exten => s,12,Background(buddy-cloud/welcome2)
exten => s,13,WaitExten(15)
exten => s,14,NoOp(Number dialed ${EXTEN})
include => internal-extensions
exten => t,1,Playback(vm-goodbye)
exten => t,2,Hangup
exten => i,1,Playback(invalid) ; "That's not valid, try again"


This is the output from me (x101) dialing the switchboard (x100)


    -- Executing Goto("SIP/101-08186e70", "mainmenu|s|10") in new stack
    -- Goto (mainmenu,s,10)
    -- Executing Answer("SIP/101-08186e70", "") in new stack
    -- Executing Wait("SIP/101-08186e70", "1") in new stack
    -- Executing BackGround("SIP/101-08186e70", "buddy-cloud/welcome2")
in new stack
    -- Playing 'buddy-cloud/welcome2' (language 'en')
    -- Sent into invalid extension 's' in context 'mainmenu' on
SIP/101-08186e70
    -- Executing Playback("SIP/101-08186e70", "invalid") in new stack
    -- Playing 'invalid' (language 'en')
    -- Timeout on SIP/101-08186e70
  == CDR updated on SIP/101-08186e70
    -- Executing Playback("SIP/101-08186e70", "vm-goodbye") in new stack
    -- Playing 'vm-goodbye' (language 'en')
    -- Executing Hangup("SIP/101-08186e70", "") in new stack
  == Spawn extension (mainmenu, t, 2) exited non-zero on 'SIP/101-08186e70'

Where am I going wrong and do I need to worry about "Sent into invalid
extension 's' in context 'mainmenu' on SIP/101-08186e70" warnings?

S.
-- 
Simon Tennant ________________ http://imaginator.com/~simon/contact

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20061119/f664be37/signature.pgp


More information about the asterisk-users mailing list