<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; mso-ansi-language: EN-GB" 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; mso-ansi-language: EN-GB" 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; mso-ansi-language: EN-GB" 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; mso-ansi-language: EN-GB" 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; mso-ansi-language: EN-GB" 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; mso-ansi-language: EN-GB" 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; mso-ansi-language: EN-GB" 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; mso-ansi-language: EN-GB" 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; mso-ansi-language: EN-GB" 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; mso-ansi-language: EN-GB" lang="EN-GB">exten =&gt; 520460XXX,1,Ringing()<br>exten =&gt; 520460XXX,2,Wait(4)<br>
exten =&gt; 520460XXX,3,Goto(home,s,1)</span></div><span style="LINE-HEIGHT: 150%; FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-ansi-language: EN-GB" lang="EN-GB">
<div style="LINE-HEIGHT: 150%; MARGIN: 0cm 0cm 0pt" class="MsoNormal"><br>[home]<br>exten =&gt; s,1,SetGlobalVar(sounds_path=/var/lib/asterisk/sounds/)<br>exten =&gt; s,2,Background(${sounds_path}welcome)<br>exten =&gt; s,3,WaitExten(10)<br>
exten =&gt; #,1,Goto(menu,s,1)<br>exten =&gt; i,1,Playback(${sounds_path}error-key)<br>exten =&gt; t,1,Goto(home,s,1)</div>
<div style="LINE-HEIGHT: 150%; MARGIN: 0cm 0cm 0pt" class="MsoNormal"><br>[menu] <br>exten =&gt; s,1,Background(${sounds_path}menu)<br>exten =&gt; 0,1,Goto(menu,s,1)<br>exten =&gt; 1,1,Goto(call,s,1)<br>exten =&gt; 2,1,Goto(support,s,1)<br>
exten =&gt; i,1,Playback(${sounds_path}error-key)<br>exten =&gt; i,2,Goto(call,s,1)<br>exten =&gt; t,1,Goto(call,s,1)</div>
<div style="LINE-HEIGHT: 150%; MARGIN: 0cm 0cm 0pt" class="MsoNormal">[call] <br>exten =&gt; s,1,Background(${sounds_path}call)<br>exten =&gt; 0,1,Goto(menu,s,1)<br>exten =&gt; 223,1,Dial(SIP/${EXTEN},20,tr)<br>exten =&gt; i,1,Playback(${sounds_path}error-key)<br>
exten =&gt; 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 =&gt; s,1,GoToIfTime(09:00-17:00|mon-fri|*|*?s,4)<br>exten =&gt; s,2,Playback(${sounds_path}no-relation-support)<br>exten =&gt; s,3,Goto(menu,s,1)<br>
exten =&gt; s,4,Playback(${sounds_path}relation-support)<br>exten =&gt; s,5,Queue(default)<br>exten =&gt; t,1,Hangup()</div></span></div><br><br>
<div class="gmail_quote">2011/6/20 Warren Selby <span dir="ltr">&lt;<a href="mailto:wcselby@selbytech.com">wcselby@selbytech.com</a>&gt;</span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im">
<div class="gmail_quote">On Mon, Jun 20, 2011 at 12:17 PM, salaheddine elharit <span dir="ltr">&lt;<a href="mailto:salah.elharit200@gmail.com" target="_blank">salah.elharit200@gmail.com</a>&gt;</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 =&gt; s,1,SetGlobalVar(sounds_path=/var/lib/asterisk/sounds/)<br>exten =&gt; s,2,Background(${sounds_path}welcome)<br>exten =&gt; #,1,Goto(menu,s,1)<br>exten =&gt; i,1,Playback(${sounds_path}error-key)<br>exten =&gt; 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 =&gt; 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 &#39;t&#39; 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 &#39;t&#39; extension.<br>
<br>Also, consider switching your dialplan priorities away from &quot;1,2,3...&quot; and go to &quot;1,n,n,n...&quot; 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>--<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>