[asterisk-users] menu issue

Warren Selby wcselby at selbytech.com
Mon Jun 20 14:07:28 CDT 2011


On Mon, Jun 20, 2011 at 12:17 PM, salaheddine elharit <
salah.elharit200 at gmail.com> wrote:

> [home]
> exten => s,1,SetGlobalVar(sounds_path=/var/lib/asterisk/sounds/)
> exten => s,2,Background(${sounds_path}welcome)
> exten => #,1,Goto(menu,s,1)
> exten => i,1,Playback(${sounds_path}error-key)
> exten => t,1,Goto(home,s,1)
>
>
You need to add the following to the [home] context:

exten => s,3,WaitExten(10)

which will cause the call to wait 10 seconds for input, otherwise it will
timeout and go to the 't' extension.  The way you currently have it, the
call will end after the Background() app finishes playing because it has no
additional steps and nothing that will tell it to go to the 't' extension.

Also, consider switching your dialplan priorities away from "1,2,3..." and
go to "1,n,n,n..." as this reduces headaches in the longrun.

-- 
Thanks,
--Warren Selby, dCAP
http://www.SelbyTech.com <http://www.selbytech.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110620/621e1cd1/attachment.htm>


More information about the asterisk-users mailing list