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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070509/23e349c4/attachment.htm
i suggest that you place it on a queue.. On 5/9/07, Josu Lazkano Lete <jlazkano@somesi.com> wrote:> > 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 > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070509/84b9e238/attachment.htm
Moacir O. de Souza Junior - Personalsoft Sistemas Ltda.
2007-May-09 08:35 UTC
RES: [asterisk-users] select menu
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@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] Em nome de Josu Lazkano Lete Enviada em: quarta-feira, 9 de maio de 2007 11:49 Para: asterisk-users@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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> My suggestion:<br> <br> [your incoming context]<br> #answer the phone<br> exten => s,1,Answer()<br> #playback recording but also accept extensions<br> exten => s,2,Background(your_gsm_recording)<br> #wait for caller to dial extension<br> exten => s,3,WaitExten(10)<br> #if they haven't hit an extension yet, play the message again<br> exten => s,4,Background(your_gsm_recording)<br> #give them one more chance<br> exten => s,5,WaitExten(10)<br> #send them to a default extension...maybe they have rotary phone<br> exten => s,6,Dial(SIP/101|30|tm)<br> #if all else fails, hangup<br> exten => s,7,Hangup()<br> <br> <br> # dynamic extension which makes 1=101, 2=102, etc.<br> exten => _X,1,Dial(SIP/10${EXTEN}|30|tm)<br> <br> <br> <br> <pre class="moz-signature" cols="72">********************************* Adam Moffett Plexicomm, LLC <a class="moz-txt-link-abbreviated" href="mailto:adam@plexicomm.net">adam@plexicomm.net</a> ph: 866-759-4678x104 ********************************* </pre> <br> <br> Josu Lazkano Lete wrote: <blockquote cite="mid001401c79249$36b13700$1d00000a@Lazkano" type="cite"> <pre wrap="">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 </pre> <pre wrap=""> <hr size="4" width="90%"> _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: <a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a> </pre> </blockquote> </body> </html>