<html><body bgcolor="#FFFFFF"><div>That's exactly what I don't want to set: a static IP address for the gateway. In other words I'd like to use a "user" as if it were a gateway. Is that even possible in FreeSwitch?<br><br>On Apr 1, 2011, at 1:41 AM, Michael Collins <<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div><br><br><div class="gmail_quote">On Thu, Mar 31, 2011 at 6:25 AM, Juan Wajnerman <span dir="ltr"><<a href="mailto:juan.wajnerman@gmail.com"><a href="mailto:juan.wajnerman@gmail.com">juan.wajnerman@gmail.com</a></a>></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't get a solution.<br>
I'd like to have a gateway configured in FreeSwitch without specifying the static IP address.<br>
I have this configuration:<br>
<br>
<user id="gw"><br>
<gateways><br>
<gateway name="gw"><br>
<param name="username" value="gw"/><br>
<param name="password" value="password"/><br>
<param name="register" value="false"/><br>
<param name="extension" value="2"/><br>
</gateway><br>
</gateways><br>
<params><br>
<param name="password" value="password"/><br>
</params><br>
<variables><br>
<variable name="user_context" value="default" /><br>
</variables><br>
</user><br>
<br>
and the SIP device is registering properly, but I cannot dial with addresses like: "sofia/gateway/gw/123456789".<br>
Note that this works if the gateway name is the IP address or host name, or if I add a "proxy" setting with the IP address.<br></blockquote><div><br></div><div>You haven't set the realm parameter. Look at the example.com.xml file in conf/sip_profiles/external/ and you'll see in the comments that if you don'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 "SIP/gw/123456789".<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"><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank"><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank"><a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></a><br>
<a href="http://www.freeswitch.org" target="_blank"><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></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">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://lists.freeswitch.org/mailman/options/freeswitch-users</span><br><span><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></span><br></div></blockquote></body></html>