<div dir="ltr"><div>Hi khalid</div>
<div> </div>
<div>thank you for your response i have verify the chapter that talks about contexts and also menu in asterisk book </div>
<div>and now i can create my menu without issue,if i have any question i will send an email to this perfect list </div>
<div> </div>
<div>thanks evrey one for the help and support</div>
<div> </div>
<div>Kind Regards</div>
<div> </div>
<div><br> </div>
<div class="gmail_quote">2011/6/21 khalid touati <span dir="ltr"><<a href="mailto:khalidtouati@gmail.com">khalidtouati@gmail.com</a>></span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hi I wanted to help out with dial plan, but it's not obvious what you want to achieve, also I do recommend to read the chapter that talks about contexts and dialplan from future of asterisk book. but if you're in rush just try to make clear how you want your system to behave and i'll be glad to help.
<div>
<div></div>
<div class="h5"><br><br>
<div class="gmail_quote">On Tue, Jun 21, 2011 at 9:22 AM, salaheddine elharit <span dir="ltr"><<a href="mailto:salah.elharit200@gmail.com" target="_blank">salah.elharit200@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div dir="ltr">
<p style="MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">Hello</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span style="FONT-FAMILY: Arial; FONT-SIZE: 10pt"> </span></p>
<p style="LINE-HEIGHT: 150%; MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span style="LINE-HEIGHT: 150%; FONT-FAMILY: Arial; FONT-SIZE: 10pt" lang="EN-GB">I have created the menu below, with this menu when I call 520460XXX I can hear the welcome message [home] context and when I press the # I can go to the [menu] context and hear the menu message</span></p>
<p style="LINE-HEIGHT: 150%; MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span style="LINE-HEIGHT: 150%; FONT-FAMILY: Arial; FONT-SIZE: 10pt" lang="EN-GB"> </span></p>
<p style="LINE-HEIGHT: 150%; MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span style="LINE-HEIGHT: 150%; FONT-FAMILY: Arial; FONT-SIZE: 10pt" lang="EN-GB">When I press 1 in order to go to the [call] I can hear the call message </span></p>
<p style="LINE-HEIGHT: 150%; MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span style="LINE-HEIGHT: 150%; FONT-FAMILY: Arial; FONT-SIZE: 10pt" lang="EN-GB"> </span></p>
<div style="LINE-HEIGHT: 150%; MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span style="LINE-HEIGHT: 150%; FONT-FAMILY: Arial; FONT-SIZE: 10pt" lang="EN-GB">Now I have 2 client sip 222 and 223 with x-lite, how can I do in order to receive the call in 223 with [call] and receive a call in 222 with [support]</span></div>
<div style="LINE-HEIGHT: 150%; MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span style="LINE-HEIGHT: 150%; FONT-FAMILY: Arial; FONT-SIZE: 10pt" lang="EN-GB"></span> </div>
<div style="LINE-HEIGHT: 150%; MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span style="LINE-HEIGHT: 150%; FONT-FAMILY: Arial; FONT-SIZE: 10pt" lang="EN-GB">thanks and best regards</span></div>
<div style="LINE-HEIGHT: 150%; MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span style="LINE-HEIGHT: 150%; FONT-FAMILY: Arial; FONT-SIZE: 10pt" lang="EN-GB"></span> </div>
<div style="LINE-HEIGHT: 150%; MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span style="LINE-HEIGHT: 150%; FONT-FAMILY: Arial; FONT-SIZE: 10pt" lang="EN-GB"></span> </div>
<div style="LINE-HEIGHT: 150%; MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span style="LINE-HEIGHT: 150%; FONT-FAMILY: Arial; FONT-SIZE: 10pt" lang="EN-GB">exten => 520460XXX,1,Ringing()<br>exten => 520460XXX,2,Wait(4)<br>
exten => 520460XXX,3,Goto(home,s,1)</span></div><span style="LINE-HEIGHT: 150%; FONT-FAMILY: Arial; FONT-SIZE: 10pt" lang="EN-GB">
<div style="LINE-HEIGHT: 150%; MARGIN: 0cm 0cm 0pt" class="MsoNormal">
<div><br>[home]<br>exten => s,1,SetGlobalVar(sounds_path=/var/lib/asterisk/sounds/)<br>exten => s,2,Background(${sounds_path}welcome)<br></div>exten => s,3,WaitExten(10)
<div><br>exten => #,1,Goto(menu,s,1)<br>exten => i,1,Playback(${sounds_path}error-key)<br>exten => t,1,Goto(home,s,1)</div></div>
<div style="LINE-HEIGHT: 150%; MARGIN: 0cm 0cm 0pt" class="MsoNormal"><br>[menu] <br>exten => s,1,Background(${sounds_path}menu)
<div><br>exten => 0,1,Goto(menu,s,1)<br></div>exten => 1,1,Goto(call,s,1)<br>exten => 2,1,Goto(support,s,1)
<div><br>exten => i,1,Playback(${sounds_path}error-key)<br></div>exten => i,2,Goto(call,s,1)<br>exten => t,1,Goto(call,s,1)</div>
<div style="LINE-HEIGHT: 150%; MARGIN: 0cm 0cm 0pt" class="MsoNormal">[call] <br>exten => s,1,Background(${sounds_path}call)
<div><br>exten => 0,1,Goto(menu,s,1)<br></div>exten => 223,1,Dial(SIP/${EXTEN},20,tr)
<div><br>exten => i,1,Playback(${sounds_path}error-key)<br></div>exten => t,1,Goto(appel,s,1)</div>
<div style="LINE-HEIGHT: 150%; MARGIN: 0cm 0cm 0pt" class="MsoNormal"> </div>
<div style="LINE-HEIGHT: 150%; MARGIN: 0cm 0cm 0pt" class="MsoNormal"><br>[support]<br>exten => s,1,GoToIfTime(09:00-17:00|mon-fri|*|*?s,4)<br>exten => s,2,Playback(${sounds_path}no-relation-support)<br>exten => s,3,Goto(menu,s,1)<br>
exten => s,4,Playback(${sounds_path}relation-support)<br>exten => s,5,Queue(default)<br>exten => t,1,Hangup()</div></span></div><br><br>
<div class="gmail_quote">
<div>2011/6/20 Warren Selby <span dir="ltr"><<a href="mailto:wcselby@selbytech.com" target="_blank">wcselby@selbytech.com</a>></span><br></div>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>
<div></div>
<div>
<div>
<div class="gmail_quote">On Mon, Jun 20, 2011 at 12:17 PM, salaheddine elharit <span dir="ltr"><<a href="mailto:salah.elharit200@gmail.com" target="_blank">salah.elharit200@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div dir="ltr">[home] <br>
<div>exten => s,1,SetGlobalVar(sounds_path=/var/lib/asterisk/sounds/)<br>exten => s,2,Background(${sounds_path}welcome)<br>exten => #,1,Goto(menu,s,1)<br>exten => i,1,Playback(${sounds_path}error-key)<br>exten => t,1,Goto(home,s,1)</div>
<br clear="all"></div></blockquote></div><br></div>You need to add the following to the [home] context:<br><br>exten => s,3,WaitExten(10)<br><br>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.<br>
<br>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.<br><font color="#888888"><br>-- <br>Thanks,<br>--Warren Selby, dCAP<br>
<a href="http://www.selbytech.com/" target="_blank">http://www.SelbyTech.com</a><br><br></font><br></div></div>
<div>--<br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com/" target="_blank">http://www.api-digital.com</a> --<br>New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></blockquote></div><br><br>--<br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com/" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br> <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><br clear="all"><br></div></div><font color="#888888">-- <br>
Abdullah<br></font><br>--<br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com/" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br> <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br></div>