[Asterisk-Users] IVR - newbie question

Paul Hewlett hewlett at netactive.co.za
Thu Apr 7 07:35:23 MST 2005


This is such a simple question but I cannot see what is wrong.

Is there anything wrong with the following IVR dial plan ?
I am using extension 222 to test it...

[default]
extens => 222,1,Macro(ivr)

[macro-ivr]
exten => s,1,Wait(1)
exten => s,2,Background(welcome-and-menu)
exten => s,3,Wait(4)
exten => s,4,Goto(2)
exten => 1,1,Macro(int_extens,${SALES},20,${SALES})
exten => 1,2,Hangup
exten => 2,1,Macro(int_extens,${RECEPT},20,${RECEPT})
exten => 2,2,Hangup
exten => i,1,Playback(invalid)
exten => i,2,Goto(s|2)

If I test this and enter '3' (i.e. an invalid extension) an error is generated 
that '3' is an invalid extension and there is no 'i' rule in the 'default' 
context. * then hangs up instead of replaying the welcome-and-menu message.

PaulHe

-- 
Paul Hewlett (Linux #359543) 
Tel: +27 21 852 8812      Cel: +27 72 719 2725      Fax: +27 86 672 0563
-- 



More information about the asterisk-users mailing list