Hello All, Currently Every time when we add a new gateway we create a XML file in the following location /usr/local/freeswitch/con/sip_profiles/external and reload. Is there anyway to tell FreeSWITCH to look into a Database table for this information. Like user directory & dialplan lookup using mod_xml_curl. Thanks Lloyd
you can use mod_xml_curl with configuration binding ... also it co-exists with static files as well ... T. On Mon, Nov 8, 2010 at 3:41 PM, Aloysius Lloyd <lloyd.aloysius@gmail.com>wrote:
Hello All,
Currently Every time when we add a new gateway we create a XML file in the following location /usr/local/freeswitch/con/sip_profiles/external and reload.
Is there anyway to tell FreeSWITCH to look into a Database table for this information.
Like user directory & dialplan lookup using mod_xml_curl.
Thanks Lloyd
_______________________________________________ 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
However, this configuration is only loaded when sofia is first loaded, or reloads its configuration. It does make it easier (skips the step of updating the XML file), but you still need to reload the config. That can be done automatically via ESL from a program on your server... perhaps executed by cron or a DB trigger. -Steve On 8 November 2010 15:25, Tihomir Culjaga <tculjaga@gmail.com> wrote:
you can use mod_xml_curl with configuration binding ... also it co-exists with static files as well ...
T.
On Mon, Nov 8, 2010 at 3:41 PM, Aloysius Lloyd <lloyd.aloysius@gmail.com> wrote:
Hello All, Currently Every time when we add a new gateway we create a XML file in the following location /usr/local/freeswitch/con/sip_profiles/external and reload. Is there anyway to tell FreeSWITCH to look into a Database table for this information. Like user directory & dialplan lookup using mod_xml_curl. Thanks Lloyd _______________________________________________ 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
I think DB trigger is the neat way to reload the configuration and real time. But what is the syntax for binding gateways. I could not find anything on the wiki. Any help is appreciated.Right now I am using the following for directory and dial plan. <binding name="directory"> <param name="gateway-url" value="http://127.0.0.1/directory.php" bindings="directory"/> </binding> <binding name="dialplan"> <param name="gateway-url" value="http://127.0.0.1/dialplan.php" bindings="dialplan"/> </binding> What is the syntax for the gateways binding Thanks Lloyd On Mon, Nov 8, 2010 at 11:20 AM, Steven Ayre <steveayre@gmail.com> wrote:
However, this configuration is only loaded when sofia is first loaded, or reloads its configuration.
It does make it easier (skips the step of updating the XML file), but you still need to reload the config. That can be done automatically via ESL from a program on your server... perhaps executed by cron or a DB trigger.
-Steve
On 8 November 2010 15:25, Tihomir Culjaga <tculjaga@gmail.com> wrote:
you can use mod_xml_curl with configuration binding ... also it co-exists with static files as well ...
T.
On Mon, Nov 8, 2010 at 3:41 PM, Aloysius Lloyd <lloyd.aloysius@gmail.com
wrote:
Hello All, Currently Every time when we add a new gateway we create a XML file in
the
following location /usr/local/freeswitch/con/sip_profiles/external and reload. Is there anyway to tell FreeSWITCH to look into a Database table for this information. Like user directory & dialplan lookup using mod_xml_curl. Thanks Lloyd _______________________________________________ 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
Gateways are configured in the sofia configuration. Specifically sofia.conf.xml, and the files it imports. The "configuration" binding will let you serve the configuration files including this one from your web server. You then place gateways in its <gateways> section. http://wiki.freeswitch.org/wiki/Mod_xml_curl#bindings.3D.22configuration.22 -Steve On 8 November 2010 16:43, Aloysius Lloyd <lloyd.aloysius@gmail.com> wrote:
I think DB trigger is the neat way to reload the configuration and real time. But what is the syntax for binding gateways. I could not find anything on the wiki. Any help is appreciated.Right now I am using the following for directory and dial plan. <binding name="directory"> <param name="gateway-url" value="http://127.0.0.1/directory.php" bindings="directory"/> </binding> <binding name="dialplan"> <param name="gateway-url" value="http://127.0.0.1/dialplan.php" bindings="dialplan"/> </binding> What is the syntax for the gateways binding Thanks Lloyd
On Mon, Nov 8, 2010 at 11:20 AM, Steven Ayre <steveayre@gmail.com> wrote:
However, this configuration is only loaded when sofia is first loaded, or reloads its configuration.
It does make it easier (skips the step of updating the XML file), but you still need to reload the config. That can be done automatically via ESL from a program on your server... perhaps executed by cron or a DB trigger.
-Steve
On 8 November 2010 15:25, Tihomir Culjaga <tculjaga@gmail.com> wrote:
you can use mod_xml_curl with configuration binding ... also it co-exists with static files as well ...
T.
On Mon, Nov 8, 2010 at 3:41 PM, Aloysius Lloyd <lloyd.aloysius@gmail.com> wrote:
Hello All, Currently Every time when we add a new gateway we create a XML file in the following location /usr/local/freeswitch/con/sip_profiles/external and reload. Is there anyway to tell FreeSWITCH to look into a Database table for this information. Like user directory & dialplan lookup using mod_xml_curl. Thanks Lloyd _______________________________________________ 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
_______________________________________________ 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 (3)
-
Aloysius Lloyd
-
Steven Ayre
-
Tihomir Culjaga