RES: [asterisk-users] select menu

Moacir O. de Souza Junior - Personalsoft Sistemas Ltda. moacir at personalsoft.inf.br
Wed May 9 08:35:45 MST 2007


Hi,

My suggestion:

extensios.conf


exten => s,1,Answer()
exten => s,n,Wait(1)
exten => s,n,Read(MyVariable,TheNameOfSoudFile,1, , ,10)
exten => s,n,GotoIf($["${MyVariable}"="1"]?11)
exten => s,n,GotoIf($["${MyVariable}"="2"]?12)
exten => s,n,GotoIf($["${MyVariable}"="3"]?13)
exten => s,11,Dial(SIP/101,30,Ttm)
exten => s,12,Dial(SIP/102,30,Ttm)
exten => s,13,Dial(SIP/103,30,Ttm)

					    --> Timeout
					    |
Read(MyVariable,MySoudFile,1, , ,10)
				   |
				   | 	
				   -> Number of characters that user has to
digit

Asterisk cmd READ
http://www.voip-info.org/wiki/view/Asterisk+cmd+Read


[]'s

Moacir O. de Souza Junior
Belo Horizonte - Minas Gerais - Brasil

________________________________________
De: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] Em nome de Josu Lazkano
Lete
Enviada em: quarta-feira, 9 de maio de 2007 11:49
Para: asterisk-users at lists.digium.com
Assunto: [asterisk-users] select menu

Hello everybody.
 
I want to make a menu with the incoming calls, I want that when someone
calls the Asterisk play a record (in gsm) and them the caller must choose a
option (1,2 or 3).
 
if he choose 1 it will redirect to 101 extension
if he choose 2 it will redirect to 102 extension
if he choose 3 it will redirect to 103 extension
 
my extensions.conf is this one:
 
[default]
exten => s,1,Answer()
exten => s,2,Wait(1)
exten => s,3,Dial(SIP/101,30,Ttm)
 
sorry about my english,
 
thanks to all
 
beyyyyyyyy



More information about the asterisk-users mailing list