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.<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">salah.elharit200@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div dir="ltr">
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hello</span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> </span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"><span lang="EN-GB" style="FONT-SIZE: 10pt; LINE-HEIGHT: 150%; FONT-FAMILY: Arial">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 class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"><span lang="EN-GB" style="FONT-SIZE: 10pt; LINE-HEIGHT: 150%; FONT-FAMILY: Arial"> </span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"><span lang="EN-GB" style="FONT-SIZE: 10pt; LINE-HEIGHT: 150%; FONT-FAMILY: Arial">When I press 1 in order to go to the [call] I can hear the call message </span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"><span lang="EN-GB" style="FONT-SIZE: 10pt; LINE-HEIGHT: 150%; FONT-FAMILY: Arial"> </span></p>
<div class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"><span lang="EN-GB" style="FONT-SIZE: 10pt; LINE-HEIGHT: 150%; FONT-FAMILY: Arial">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 class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"><span lang="EN-GB" style="FONT-SIZE: 10pt; LINE-HEIGHT: 150%; FONT-FAMILY: Arial"></span> </div>
<div class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"><span lang="EN-GB" style="FONT-SIZE: 10pt; LINE-HEIGHT: 150%; FONT-FAMILY: Arial">thanks and best regards</span></div>
<div class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"><span lang="EN-GB" style="FONT-SIZE: 10pt; LINE-HEIGHT: 150%; FONT-FAMILY: Arial"></span> </div>
<div class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"><span lang="EN-GB" style="FONT-SIZE: 10pt; LINE-HEIGHT: 150%; FONT-FAMILY: Arial"></span> </div>
<div class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"><span lang="EN-GB" style="FONT-SIZE: 10pt; LINE-HEIGHT: 150%; FONT-FAMILY: Arial">exten => 520460XXX,1,Ringing()<br>exten => 520460XXX,2,Wait(4)<br>
exten => 520460XXX,3,Goto(home,s,1)</span></div><span lang="EN-GB" style="FONT-SIZE: 10pt; LINE-HEIGHT: 150%; FONT-FAMILY: Arial">
<div class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%">
<div class="im"><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 class="im"><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 class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"><br>[menu] <br>exten => s,1,Background(${sounds_path}menu)
<div class="im"><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 class="im"><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 class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%">[call] <br>exten => s,1,Background(${sounds_path}call)
<div class="im"><br>exten => 0,1,Goto(menu,s,1)<br></div>exten => 223,1,Dial(SIP/${EXTEN},20,tr)
<div class="im"><br>exten => i,1,Playback(${sounds_path}error-key)<br></div>exten => t,1,Goto(appel,s,1)</div>
<div class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"> </div>
<div class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"><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 class="im">2011/6/20 Warren Selby <span dir="ltr"><<a href="mailto:wcselby@selbytech.com" target="_blank">wcselby@selbytech.com</a>></span><br></div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div></div>
<div class="h5">
<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 class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<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 class="im">--<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>-- <br>Abdullah<br>