[asterisk-users] dialed number notify at invalid dial situation
Mojo with Horan & Company, LLC
mojo at horanappraisals.com
Wed Apr 16 11:33:32 CDT 2008
Anonymous wrote:
> Originally posted by: mailto:
>
> Hi all
>
> Now I'm making IVR sequance that is customised [mainmanu].
>
> I wish to notify invaid command like a following
>
> exten => i,1,playback('your command is ...')
> exten => i,2,playback(${EXTEN}) ; <---- Say 'i' oops! ;-(
> exten => i,3,playback(' is incorrect! please again ')
>
> # This exten lines are figure for instruction.
> # I know to use with gsm filename.
>
> but ${EXTEN} meaning 'i' that isn't dialed number.
>
> Does anyone have good idea?
>
> please help
>
> ---
> Masakazu Nakano.
> Dairiten.com - an open source VoIP and Ubiquitus Portal site in Japan.
> http://www.dairiten.com:81/modules/news/
> powered by xoops at http://www.xoops.org
>
> _______________________________________________
> Asterisk-Users mailing list
> mailto:Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
If you were to use Read to in your IVR instead of Background or
WaitExten, you could then reuse later the variable you read. I haven't
tested this to see if Goto *sends* you to the i extension when you try
to go to a non-existent extension... but *you* could :)
[mainmanu]
exten => s,1,Answer()
exten => s,n,Playback(Press 1, 2, or 3)
exten => s,n,Read(pressedbutton|Press one,two,or three|1)
exten => s,n,Goto(mainmanu,${pressedbutton},1)
exten => 1,1,blah
exten => 2,1,blah
exten => 3,1,blah
exten => i,1,NoOP(${pressedbutton})
--
*Mojo Wentworth*
HORAN & COMPANY, LLC
403 Lincoln Street, Suite 210
Sitka, AK 99835
(907) 747-6666
(907) 747-7417 - Fax
mojo at horanappraisals.com
More information about the asterisk-users
mailing list