making calls through an FXO gw without knowing the IP
Hello everyone, I need some help in my dialplan, I have an FXO gateway and i can receive calls from it, now, if I assign a static IP on it, i can make calls through the fxo gateway using this: <action application="bridge" data="sofia/<profile>/<destination>@<gw_IP>"/> 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 route the call using one of the registered extension numbers but I am not sure how so I need some pointers, Anyone has ideas or knows how to do this?, help is greatly appreciated!
I don't know if it's possible to do using plain xml, but you can try writing some javascript/lua/what-you-want code to acquire parameters from the registration and use them to do the call Milena ha scritto:
Hello everyone,
I need some help in my dialplan, I have an FXO gateway and i can receive calls from it,
now, if I assign a static IP on it, i can make calls through the fxo gateway using this: <action application="bridge" data="sofia/<profile>/<destination>@<gw_IP>"/>
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 route the call using one of the registered extension numbers but I am not sure how so I need some pointers,
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
Hi Milena! A device with an IP address has either been assigned a static IP by a person, or assigned a dynamic IP by, probably, a DHCP server. If your FXO gateway has been assigned a dynamic IP, then before you can figure out how to get that value in the configuration, you need to determine what that IP is. How do you know the IP assigned to your FXO gateway? Does it implement the UPnP standard? Just out of curiosity, why not let it have a static IP address? Mike van Lammeren On Mon, Jan 25, 2010 at 1:15 PM, Daniele Salvatore Albano <info@daccii.it>wrote:
I don't know if it's possible to do using plain xml, but you can try writing some javascript/lua/what-you-want code to acquire parameters from the registration and use them to do the call
Milena ha scritto:
Hello everyone,
I need some help in my dialplan, I have an FXO gateway and i can receive calls from it,
now, if I assign a static IP on it, i can make calls through the fxo gateway using this: <action application="bridge" data="sofia/<profile>/<destination>@<gw_IP>"/>
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 route the call using one of the registered extension numbers but I am not sure how so I need some pointers,
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
Either: sofa/<profile>/<ext gateway regged as> of if domain was different: sofa/<profile>/<ext gateway regged as>%<domain gateway regged as> On Mon, Jan 25, 2010 at 12:15 PM, Daniele Salvatore Albano <info@daccii.it>wrote:
I don't know if it's possible to do using plain xml, but you can try writing some javascript/lua/what-you-want code to acquire parameters from the registration and use them to do the call
Milena ha scritto:
Hello everyone,
I need some help in my dialplan, I have an FXO gateway and i can receive calls from it,
now, if I assign a static IP on it, i can make calls through the fxo gateway using this: <action application="bridge" data="sofia/<profile>/<destination>@<gw_IP>"/>
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 route the call using one of the registered extension numbers but I am not sure how so I need some pointers,
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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
participants (4)
-
Anthony Minessale
-
Daniele Salvatore Albano
-
Mike van Lammeren
-
Milena