[Freeswitch-users] Gateway Dynamic Lookup

Steven Ayre steveayre at gmail.com
Mon Nov 8 09:06:51 PST 2010


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 at 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 at 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 at 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 at 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 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
>
>
> _______________________________________________
> 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