<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">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">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>