[Freeswitch-users] Gateway with dynamic IP address

Nick Rosier nick.rosier at gmail.com
Wed Apr 6 00:06:09 MSD 2011


Has anyone been able to get this working? I'm still stuck; everything
is working except outbound dialing through the "gateways".

N.

On 1 April 2011 08:41, Dmitry Sytchev <kbdfck at gmail.com> wrote:
> 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.
>
> 2011/4/1 Juan Wajnerman <juan.wajnerman at gmail.com>
>>
>> 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?
>>
>> On Apr 1, 2011, at 1:41 AM, Michael Collins <msc at freeswitch.org> wrote:
>>
>>
>>
>> On Thu, Mar 31, 2011 at 6:25 AM, Juan Wajnerman <juan.wajnerman at gmail.com>
>> wrote:
>>>
>>> I asked this question yesterday in the IRC but I couldn't get a solution.
>>> I'd like to have a gateway configured in FreeSwitch without specifying
>>> the static IP address.
>>> I have this configuration:
>>>
>>> <user id="gw">
>>>   <gateways>
>>>     <gateway name="gw">
>>>       <param name="username" value="gw"/>
>>>       <param name="password" value="password"/>
>>>       <param name="register" value="false"/>
>>>       <param name="extension" value="2"/>
>>>     </gateway>
>>>   </gateways>
>>>   <params>
>>>     <param name="password" value="password"/>
>>>   </params>
>>>   <variables>
>>>     <variable name="user_context" value="default" />
>>>   </variables>
>>>  </user>
>>>
>>> and the SIP device is registering properly, but I cannot dial with
>>> addresses like: "sofia/gateway/gw/123456789".
>>> 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.
>>
>> 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.
>> -MC
>>
>>>
>>> I have a similar configuration in asterisk, where the sip.conf contains:
>>>
>>> [gw]
>>> type=friend
>>> secret=password
>>> context=default
>>> host=dynamic
>>>
>>> And once the gateway is registered in asterisk, I can dial with
>>> "SIP/gw/123456789".
>>> Is there any way to make a similar configuration in FreeSwitch?
>>>
>>> Thanks!
>>> - Juan
>>> _______________________________________________
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>>
>> _______________________________________________
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>> _______________________________________________
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
>
>
> --
> Best regards,
>
> Dmitry Sytchev,
> IT Engineer
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>



More information about the FreeSWITCH-users mailing list