gateway without static IP
***Hello everyone * i need some help with a gateway, i can receive calls from it because i can use it as a user so i can see it by sofia status profile internal but when i try to make a call to the PSTN like this *<action application="bridge"** data="sofia/internal/userGateway%{domain}^$1"/> the gateway doesn't dial the number on variable $1 so when to do like this **<action application="bridge" **data="sofia/internal/$1@<gateway_IP>"/> the gateway connect the calls to the PSTN my problem its that the gateway does not have an static IP and i want to know **if it is possible to make calls through this gateway if **it has a variable IP, and how to do it if so; **the gateway uses SIP accounts to register to FS so i think it might be **possible to know the IP's gateway by using one of the registered extension or tell fs to use the ip of one user for the gateway set up? ** **Anyone has ideas or knows how to do this?, help is greatly appreciated! *
First of all, I would recommend you configure the gateway within the <gateways> section of the SIP profile. The dialstring will then be sofia/gwname/$1. That format has an advantage because FS will monitor the status of the gateway and automatically mark it as offline and stop sending traffic to it if it stops responding. When configuring a gateway you can specify a domain name instead of an IP. If you combine that with a service such as www.dyndns.org you can run the gateway on a dynamic IP. Also, have you tried: <action application="bridge" data="sofia/internal/$1@<domain>"/> that might work, but I've never tried it with anything but an IP so can't say for sure without trying it. This does not do what you think it does: <action application="bridge" data="sofia/internal/userGateway%{domain}^$1"/> The % syntax is for dialing an extension on the *local* server, on the {domain} handled by the current server. That won't send a call out to a gateway. -Steve On 19 December 2010 20:17, Octavio Duarte <xduvox@gmail.com> wrote:
Hello everyone
i need some help with a gateway, i can receive calls from it because i can use it as a user so i can see it by sofia status profile internal but when i try to make a call to the PSTN like this
<action application="bridge" data="sofia/internal/userGateway%{domain}^$1"/>
the gateway doesn't dial the number on variable $1
so when to do like this
<action application="bridge" data="sofia/internal/$1@<gateway_IP>"/>
the gateway connect the calls to the PSTN
my problem its that the gateway does not have an static IP and i want to know if it is possible to make calls through this gateway if it has a variable IP, and how to do it if so;
the gateway uses SIP accounts to register to FS so i think it might be possible to know the IP's gateway by using one of the registered extension or tell fs to use the ip of one user for the gateway set up?
Anyone has ideas or knows how to do this?, help is greatly appreciated!
_______________________________________________ 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
Just a note, the syntax for using a gateway is: sofia/gateway/<gateway name>/<target> If you do this: sofia/<gateway name>/<target> ...then FS will look for a *SIP profile* named <gateway name>. Hope this helps. :) -MC On Sun, Dec 19, 2010 at 2:00 PM, Steven Ayre <steveayre@gmail.com> wrote:
First of all, I would recommend you configure the gateway within the <gateways> section of the SIP profile. The dialstring will then be sofia/gwname/$1. That format has an advantage because FS will monitor the status of the gateway and automatically mark it as offline and stop sending traffic to it if it stops responding.
When configuring a gateway you can specify a domain name instead of an IP. If you combine that with a service such as www.dyndns.org you can run the gateway on a dynamic IP.
Also, have you tried: <action application="bridge" data="sofia/internal/$1@<domain>"/> that might work, but I've never tried it with anything but an IP so can't say for sure without trying it.
This does not do what you think it does: <action application="bridge" data="sofia/internal/userGateway%{domain}^$1"/> The % syntax is for dialing an extension on the *local* server, on the {domain} handled by the current server. That won't send a call out to a gateway.
-Steve
On 19 December 2010 20:17, Octavio Duarte <xduvox@gmail.com> wrote:
Hello everyone
i need some help with a gateway, i can receive calls from it because i can use it as a user so i can see it by sofia status profile internal but when i try to make a call to the PSTN like this
<action application="bridge" data="sofia/internal/userGateway%{domain}^$1"/>
the gateway doesn't dial the number on variable $1
so when to do like this
<action application="bridge" data="sofia/internal/$1@<gateway_IP>"/>
the gateway connect the calls to the PSTN
my problem its that the gateway does not have an static IP and i want to know if it is possible to make calls through this gateway if it has a variable IP, and how to do it if so;
the gateway uses SIP accounts to register to FS so i think it might be possible to know the IP's gateway by using one of the registered extension or tell fs to use the ip of one user for the gateway set up?
Anyone has ideas or knows how to do this?, help is greatly appreciated!
_______________________________________________ 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
Yes... Sorry :) Steve on iPhone On 20 Dec 2010, at 18:07, Michael Collins <msc@freeswitch.org> wrote:
Just a note, the syntax for using a gateway is:
sofia/gateway/<gateway name>/<target>
If you do this:
sofia/<gateway name>/<target>
...then FS will look for a *SIP profile* named <gateway name>. Hope this helps. :)
-MC
On Sun, Dec 19, 2010 at 2:00 PM, Steven Ayre <steveayre@gmail.com> wrote: First of all, I would recommend you configure the gateway within the <gateways> section of the SIP profile. The dialstring will then be sofia/gwname/$1. That format has an advantage because FS will monitor the status of the gateway and automatically mark it as offline and stop sending traffic to it if it stops responding.
When configuring a gateway you can specify a domain name instead of an IP. If you combine that with a service such as www.dyndns.org you can run the gateway on a dynamic IP.
Also, have you tried: <action application="bridge" data="sofia/internal/$1@<domain>"/> that might work, but I've never tried it with anything but an IP so can't say for sure without trying it.
This does not do what you think it does: <action application="bridge" data="sofia/internal/userGateway%{domain}^$1"/> The % syntax is for dialing an extension on the *local* server, on the {domain} handled by the current server. That won't send a call out to a gateway.
-Steve
On 19 December 2010 20:17, Octavio Duarte <xduvox@gmail.com> wrote:
Hello everyone
i need some help with a gateway, i can receive calls from it because i can use it as a user so i can see it by sofia status profile internal but when i try to make a call to the PSTN like this
<action application="bridge" data="sofia/internal/userGateway%{domain}^$1"/>
the gateway doesn't dial the number on variable $1
so when to do like this
<action application="bridge" data="sofia/internal/$1@<gateway_IP>"/>
the gateway connect the calls to the PSTN
my problem its that the gateway does not have an static IP and i want to know if it is possible to make calls through this gateway if it has a variable IP, and how to do it if so;
the gateway uses SIP accounts to register to FS so i think it might be possible to know the IP's gateway by using one of the registered extension or tell fs to use the ip of one user for the gateway set up?
Anyone has ideas or knows how to do this?, help is greatly appreciated!
_______________________________________________ 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
Hello Steven for reply I have done the <gateways> configuration and it works perfectly, my problem is that the public ip of mi gateway changes almost every two weeks, and i have to replace the ip of the gateway's configuration file. i have and user or extension in my gateway that registers to FS so i can know the new ip by sofia status profile internal and see the ip of the user that is registered to FS what i am wondering to know is if is there a way to use the ip of the registered user to configure the gateway and not have to rewrite the ip in the configuration file of the gateway each time ip changes? Another problem is that i can not use www.dyndns.org because the gateway does not have that ability thanks in advance! -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/gateway-without-static-IP-tp58... Sent from the freeswitch-users mailing list archive at Nabble.com.
Well, in a roundabout way you can, by using "sofia_contact" API and regex at the fs_cli. Here's a quick session I just did: freeswitch@internal> sofia_contact 1002@10.15.0.94 sofia/internal/sip:1002@10.15.0.136:61524 ;rinstance=f832369f26387993;transport=udp;fs_nat=yes freeswitch@internal> regex sofia/internal/sip:1002@10.15.0.136:61524 ;rinstance=f832369f26387993;transport=udp;fs_nat=yes|(\d+\.\d+\.\d+\.\d+)|$1 10.15.0.136 freeswitch@internal> My user's IP addr is 10.15.0.136. Your challenge, I assume, is knowing when to update the gateway. If you know that then you can launch the above commands via a shell script using fs_cli -x. Just be sure to use all the proper escape sequences for passing all those parens, pipes and backslashes. :) -MC On Mon, Dec 20, 2010 at 6:05 PM, xduvox <xduvox@gmail.com> wrote:
Hello Steven for reply I have done the <gateways> configuration and it works perfectly, my problem is that the public ip of mi gateway changes almost every two weeks, and i have to replace the ip of the gateway's configuration file.
i have and user or extension in my gateway that registers to FS so i can know the new ip by sofia status profile internal and see the ip of the user that is registered to FS
what i am wondering to know is if is there a way to use the ip of the registered user to configure the gateway and not have to rewrite the ip in the configuration file of the gateway each time ip changes?
Another problem is that i can not use www.dyndns.org because the gateway does not have that ability
thanks in advance!
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/gateway-without-static-IP-tp58... Sent from the freeswitch-users mailing list archive at Nabble.com.
_______________________________________________ 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
participants (4)
-
Michael Collins
-
Octavio Duarte
-
Steven Ayre
-
xduvox