On Mon, Jun 20, 2011 at 12:17 PM, salaheddine elharit <
salah.elharit...@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>
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to