Gateway with dynamic IP address
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. 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
On Thu, Mar 31, 2011 at 6:25 AM, Juan Wajnerman <juan.wajnerman@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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@freeswitch.org> wrote:
On Thu, Mar 31, 2011 at 6:25 AM, Juan Wajnerman <juan.wajnerman@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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@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@freeswitch.org> wrote:
On Thu, Mar 31, 2011 at 6:25 AM, Juan Wajnerman <juan.wajnerman@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@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@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@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
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@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@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@freeswitch.org> wrote:
On Thu, Mar 31, 2011 at 6:25 AM, Juan Wajnerman <juan.wajnerman@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@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
"Gateway" with dynamic IP address makes no sense to me... Maybe I'm mistaken? On Tuesday 05 April 2011, Nick Rosier wrote:
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@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@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@freeswitch.org> wrote:
On Thu, Mar 31, 2011 at 6:25 AM, Juan Wajnerman <juan.wajnerman@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-user s http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
What you wan't to do is to add a user. Then you dial this user, which by then is registered in FreeSWITCH, and it will find the path. So no gateway in this case, it's when you want to register to an external server, a user is when someone registers to you, and you wan't to be able to dial outside through this. /Peter ________________________________________ Från: freeswitch-users-bounces@lists.freeswitch.org [freeswitch-users-bounces@lists.freeswitch.org] för Nick Rosier [nick.rosier@gmail.com] Skickat: den 5 april 2011 22:06 Till: FreeSWITCH Users Help Ämne: Re: [Freeswitch-users] Gateway with dynamic IP address 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@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@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@freeswitch.org> wrote:
On Thu, Mar 31, 2011 at 6:25 AM, Juan Wajnerman <juan.wajnerman@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@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@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org !DSPAM:4d9b7ad932761210261109!
On 5 April 2011 22:45, Peter Olsson <peter.olsson@visionutveckling.se> wrote:
What you wan't to do is to add a user. Then you dial this user, which by then is registered in FreeSWITCH, and it will find the path.
So no gateway in this case, it's when you want to register to an external server, a user is when someone registers to you, and you wan't to be able to dial outside through this.
/Peter
Can someone help me with the URI. It's driving me crazy. This is what I've got but it's not working: <action application="bridge" data="sofia/sipinterface_1/trunk1@pbx.domain.com/$1"/> What am I doing wrong? N.
To dial a user you use <action application="bridge" data="user/username"/>, FS then figures out the Sofia URI for you from the registration. -Steve On 11 April 2011 20:53, Nick Rosier <nick.rosier@gmail.com> wrote:
On 5 April 2011 22:45, Peter Olsson <peter.olsson@visionutveckling.se> wrote:
What you wan't to do is to add a user. Then you dial this user, which by then is registered in FreeSWITCH, and it will find the path.
So no gateway in this case, it's when you want to register to an external server, a user is when someone registers to you, and you wan't to be able to dial outside through this.
/Peter
Can someone help me with the URI. It's driving me crazy. This is what I've got but it's not working:
<action application="bridge" data="sofia/sipinterface_1/trunk1@pbx.domain.com/$1"/>
What am I doing wrong?
N.
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
The problem is this isn't a user, it's a gateway that registers itself as a user (so FS does not register to it but the other way around). I need to dial to it as a user and specify the number it has to dial. On 12 April 2011 12:20, Steven Ayre <steveayre@gmail.com> wrote:
To dial a user you use <action application="bridge" data="user/username"/>, FS then figures out the Sofia URI for you from the registration.
-Steve
On 11 April 2011 20:53, Nick Rosier <nick.rosier@gmail.com> wrote:
On 5 April 2011 22:45, Peter Olsson <peter.olsson@visionutveckling.se> wrote:
What you wan't to do is to add a user. Then you dial this user, which by then is registered in FreeSWITCH, and it will find the path.
So no gateway in this case, it's when you want to register to an external server, a user is when someone registers to you, and you wan't to be able to dial outside through this.
/Peter
Can someone help me with the URI. It's driving me crazy. This is what I've got but it's not working:
<action application="bridge" data="sofia/sipinterface_1/trunk1@pbx.domain.com/$1"/>
What am I doing wrong?
N.
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
So, it's a user (from FS point of view).. A gateway (from somewhere) registers to your FS instance. Ypu want to dial to this gateway, just dial to it as a normal user. But just try to override the invite uri; {sip_invite_to_uri=<sip:REAL_NUMBER@${domain_name}>}user/registered_user@${domain_name} I just wrote this from my head, so it might have errors, but the big idea is to dial the user, but at the same time override the sip invite uri, to a different number. At least this is what I do in this situation.. :) /Peter ________________________________________ Från: freeswitch-users-bounces@lists.freeswitch.org [freeswitch-users-bounces@lists.freeswitch.org] för Nick Rosier [nick.rosier@gmail.com] Skickat: den 12 april 2011 20:26 Till: FreeSWITCH Users Help Ämne: Re: [Freeswitch-users] Gateway with dynamic IP address The problem is this isn't a user, it's a gateway that registers itself as a user (so FS does not register to it but the other way around). I need to dial to it as a user and specify the number it has to dial. On 12 April 2011 12:20, Steven Ayre <steveayre@gmail.com> wrote:
To dial a user you use <action application="bridge" data="user/username"/>, FS then figures out the Sofia URI for you from the registration.
-Steve
On 11 April 2011 20:53, Nick Rosier <nick.rosier@gmail.com> wrote:
On 5 April 2011 22:45, Peter Olsson <peter.olsson@visionutveckling.se> wrote:
What you wan't to do is to add a user. Then you dial this user, which by then is registered in FreeSWITCH, and it will find the path.
So no gateway in this case, it's when you want to register to an external server, a user is when someone registers to you, and you wan't to be able to dial outside through this.
/Peter
Can someone help me with the URI. It's driving me crazy. This is what I've got but it's not working:
<action application="bridge" data="sofia/sipinterface_1/trunk1@pbx.domain.com/$1"/>
What am I doing wrong?
N.
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org !DSPAM:4da49a0e32765712911065!
Thanks, this was a step in the right direction :-) Outbound dialing is working but I don't have a ringtone during dialing and when I answer the phone I don't hear anything. This might be due to the NAT'ed SPA3102. 2011-04-14 23:35:53.986767 [DEBUG] sofia_glue.c:2971 AUDIO RTP [sofia/sipinterface_1/sip:trunk@192.168.1.153:5063] xxx.xxx.xxx.xxx port 25902 -> 192.168.1.153 port 16426 codec: 0 ms: 20 Any idea how to fix that? On 12 April 2011 22:55, Peter Olsson <peter.olsson@visionutveckling.se> wrote:
So, it's a user (from FS point of view).. A gateway (from somewhere) registers to your FS instance. Ypu want to dial to this gateway, just dial to it as a normal user. But just try to override the invite uri;
{sip_invite_to_uri=<sip:REAL_NUMBER@${domain_name}>}user/registered_user@${domain_name}
I just wrote this from my head, so it might have errors, but the big idea is to dial the user, but at the same time override the sip invite uri, to a different number.
At least this is what I do in this situation.. :)
/Peter ________________________________________ Från: freeswitch-users-bounces@lists.freeswitch.org [freeswitch-users-bounces@lists.freeswitch.org] för Nick Rosier [nick.rosier@gmail.com] Skickat: den 12 april 2011 20:26 Till: FreeSWITCH Users Help Ämne: Re: [Freeswitch-users] Gateway with dynamic IP address
The problem is this isn't a user, it's a gateway that registers itself as a user (so FS does not register to it but the other way around). I need to dial to it as a user and specify the number it has to dial.
On 12 April 2011 12:20, Steven Ayre <steveayre@gmail.com> wrote:
To dial a user you use <action application="bridge" data="user/username"/>, FS then figures out the Sofia URI for you from the registration.
-Steve
On 11 April 2011 20:53, Nick Rosier <nick.rosier@gmail.com> wrote:
On 5 April 2011 22:45, Peter Olsson <peter.olsson@visionutveckling.se> wrote:
What you wan't to do is to add a user. Then you dial this user, which by then is registered in FreeSWITCH, and it will find the path.
So no gateway in this case, it's when you want to register to an external server, a user is when someone registers to you, and you wan't to be able to dial outside through this.
/Peter
Can someone help me with the URI. It's driving me crazy. This is what I've got but it's not working:
<action application="bridge" data="sofia/sipinterface_1/trunk1@pbx.domain.com/$1"/>
What am I doing wrong?
N.
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
!DSPAM:4da49a0e32765712911065!
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Get a nat that does Symmetric mappings and it'll go away. Otherwise ignore it. Since we are overcoming it. /b On Apr 14, 2011, at 4:39 PM, Nick Rosier wrote:
2011-04-14 23:35:53.986767 [DEBUG] sofia_glue.c:2971 AUDIO RTP [sofia/sipinterface_1/sip:trunk@192.168.1.153:5063] xxx.xxx.xxx.xxx port 25902 -> 192.168.1.153 port 16426 codec: 0 ms: 20
Any idea how to fix that?
participants (8)
-
Brian West
-
Dmitry Sytchev
-
Juan Wajnerman
-
Michael Collins
-
Nick Rosier
-
Peter Olsson
-
Sergey Okhapkin
-
Steven Ayre