<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>I believe someone already answered that. Use &quot;loopback/NUMBER&quot; as  the dial-out string. This will create a loopback call that whits the dialplan and then follows the usual stuff in there.<br>
<br>/Peter</div><div><br>9 sep 2013 kl. 20:06 skrev D D &lt;<a href="mailto:tru083@yahoo.com">tru083@yahoo.com</a>&gt;:<br><br></div><blockquote type="cite"><div><div style="color:#000;background-color:#fff;font-family:times new roman,new york,times,serif;font-size:12pt">
<div>On the &#39;dial&#39; command, I want to specify only the destination number, not the gateway.</div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:16px;color:rgb(0,0,0);background-color:transparent;font-style:normal">
<span><br></span></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:16px;color:rgb(0,0,0);background-color:transparent;font-style:normal"><span>I reviewed the documentation at <a href="https://wiki.freeswitch.org/wiki/Sofia-SIP#Dial_out_of_a_gateway">https://wiki.freeswitch.org/wiki/Sofia-SIP#Dial_out_of_a_gateway</a>,</span></div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:16px;color:rgb(0,0,0);background-color:transparent;font-style:normal"><span>but I want the Dialplan configuration to choose the gateway.  </span></div>
<div style><span><br></span></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:16px;color:rgb(0,0,0);background-color:transparent;font-style:normal"><span>How can I do that?</span></div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:16px;color:rgb(0,0,0);background-color:transparent;font-style:normal"><span><br></span></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:12pt">
<br></div>  <div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:12pt"> <div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:12pt"> <div dir="ltr">
 <hr size="1">  <font face="Arial"> <b><span style="font-weight:bold">From:</span></b> Michael Jerris &lt;<a href="mailto:mike@jerris.com">mike@jerris.com</a>&gt;<br>
 <b><span style="font-weight:bold">To:</span></b> FreeSWITCH Users Help &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>&gt; <br> <b><span style="font-weight:bold">Sent:</span></b> Monday, September 9, 2013 11:19 AM<br>
 <b><span style="font-weight:bold">Subject:</span></b> Re: [Freeswitch-users] How can I have the DIalplan choose the        gateway for conference dialout?<br> </font> </div> <div class="y_msg_container"><br><div id="yiv8867202406">
<div><a rel="nofollow" target="_blank" href="https://wiki.freeswitch.org/wiki/Sofia-SIP#Dial_out_of_a_gateway">https://wiki.freeswitch.org/wiki/Sofia-SIP#Dial_out_of_a_gateway</a><div><br><div><div>On Sep 9, 2013, at 12:02 PM, D D &lt;<a rel="nofollow" target="_blank" href="mailto:tru083@yahoo.com">tru083@yahoo.com</a>&gt; wrote:</div>
<br class="yiv8867202406Apple-interchange-newline"><blockquote type="cite"><div style><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:12pt">Hi,</div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:12pt">
<br></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:16px;background-color:transparent;font-style:normal">I would like to use the Dialplan configuration to control which gateway is used</div>
<div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:16px;background-color:transparent;font-style:normal">on a conference dialout.</div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:16px;background-color:transparent;font-style:normal">
<br></div><div style>I have a gateway configured in the Dialplan, to match any number.</div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:16px;background-color:transparent;font-style:normal">
<br></div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:16px;background-color:transparent;font-style:normal">I have tried this on the dialout:</div><div style="font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:16px;background-color:transparent;font-style:normal">
<br></div><div style="background-color:transparent">   conference &lt;name&gt; dial {originate_timeout=30}sofia/external/8005551212 12345 CallerName<br></div><div style="background-color:transparent;font-size:16px;font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-style:normal">
<br></div><div style="background-color:transparent;font-size:16px;font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-style:normal">but I get the errors</div><div style="background-color:transparent">
   Cannot locate registered user 8005551212@external<br></div><div style="background-color:transparent">   mod_conference.c:6775 Cannot create outgoing channel, cause: USER_NOT_REGISTERED<br></div><div style="background-color:transparent;font-size:16px;font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-style:normal">
<br></div><div style="background-color:transparent;font-size:16px;font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-style:normal">I don&#39;t want to specify the gateway in the dial request. I want the Dialplan to
 choose it.</div><div style="background-color:transparent;font-size:16px;font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-style:normal">What am I doing wrong?</div>  </div></blockquote></div><br>
</div></div></div><br>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com</a><br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br><a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com</a><br>
<br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br><a href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a><br><a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><br>
<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
<br><br></div> </div> </div>  </div></div></blockquote><blockquote type="cite"><div><span>_________________________________________________________________________</span><br><span>Professional FreeSWITCH Consulting Services:</span><br>
<span><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a></span><br><span><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a></span><br><span></span><br><span>FreeSWITCH-powered IP PBX: The CudaTel Communication Server</span><br>
<span><a href="http://www.cudatel.com">http://www.cudatel.com</a></span><br><span></span><br><span>Official FreeSWITCH Sites</span><br><span><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></span><br><span><a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a></span><br>
<span><a href="http://www.cluecon.com">http://www.cluecon.com</a></span><br><span></span><br><span>FreeSWITCH-users mailing list</span><br><span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></span><br>
<span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:http://<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">lists.freeswitch.org/mailman/options/freeswitch-users</a></span><br>
<span><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></span><br></div></blockquote></body></html>