You can create usual user in directory, it will register with FS, and then you can dial it with arbitrary number, getting its host/port using sofia_contact and constructing request URI you need.<br><br><div class="gmail_quote">
2011/4/1 Juan Wajnerman <span dir="ltr">&lt;<a href="mailto:juan.wajnerman@gmail.com">juan.wajnerman@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#FFFFFF"><div>That&#39;s exactly what I don&#39;t want to set: a static IP address for the gateway. In other words I&#39;d like to use a &quot;user&quot; as if it were a gateway. Is that even possible in FreeSwitch?<div>
<div class="h5"><br><br>On Apr 1, 2011, at 1:41 AM, Michael Collins &lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>&gt; wrote:<br><br></div></div></div><div><div class="h5"><blockquote type="cite">
<div><br><br><div class="gmail_quote">On Thu, Mar 31, 2011 at 6:25 AM, Juan Wajnerman <span dir="ltr">&lt;<a href="mailto:juan.wajnerman@gmail.com" target="_blank">juan.wajnerman@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

I asked this question yesterday in the IRC but I couldn&#39;t get a solution.<br>
I&#39;d like to have a gateway configured in FreeSwitch without specifying the static IP address.<br>
I have this configuration:<br>
<br>
&lt;user id=&quot;gw&quot;&gt;<br>
   &lt;gateways&gt;<br>
     &lt;gateway name=&quot;gw&quot;&gt;<br>
       &lt;param name=&quot;username&quot; value=&quot;gw&quot;/&gt;<br>
       &lt;param name=&quot;password&quot; value=&quot;password&quot;/&gt;<br>
       &lt;param name=&quot;register&quot; value=&quot;false&quot;/&gt;<br>
       &lt;param name=&quot;extension&quot; value=&quot;2&quot;/&gt;<br>
     &lt;/gateway&gt;<br>
   &lt;/gateways&gt;<br>
   &lt;params&gt;<br>
     &lt;param name=&quot;password&quot; value=&quot;password&quot;/&gt;<br>
   &lt;/params&gt;<br>
   &lt;variables&gt;<br>
     &lt;variable name=&quot;user_context&quot; value=&quot;default&quot; /&gt;<br>
   &lt;/variables&gt;<br>
 &lt;/user&gt;<br>
<br>
and the SIP device is registering properly, but I cannot dial with addresses like: &quot;sofia/gateway/gw/123456789&quot;.<br>
Note that this works if the gateway name is the IP address or host name, or if I add a &quot;proxy&quot; setting with the IP address.<br></blockquote><div><br></div><div>You haven&#39;t set the realm parameter. Look at the example.com.xml file in conf/sip_profiles/external/ and you&#39;ll see in the comments that if you don&#39;t set the realm param then it goes to the name of the gateway. Set the realm to the target IP or host name and try again.</div>

<div><br></div><div>-MC</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I have a similar configuration in asterisk, where the sip.conf contains:<br>
<br>
[gw]<br>
type=friend<br>
secret=password<br>
context=default<br>
host=dynamic<br>
<br>
And once the gateway is registered in asterisk, I can dial with &quot;SIP/gw/123456789&quot;.<br>
Is there any way to make a similar configuration in FreeSwitch?<br>
<br>
Thanks!<br>
- Juan<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>
</blockquote></div><br>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>FreeSWITCH-users mailing list</span><br><span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a></span><br>
<span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></span><br>
<span><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span><br></div></blockquote></div></div></div><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></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br><br>Dmitry Sytchev,<br>IT Engineer<br>