First Request:

GET /?hostname=freeswitch-app-ivr-03.&section=configuration&tag_name=configuration&key_name=name&key_value=sofia.conf&Event-Name=REQUEST_PARAMS&Core-UUID=909a6aa8-b885-48cc-b8e8-7a09fe93c4ea&FreeSWITCH-Hostname=freeswitch-app-ivr-03.&FreeSWITCH-Switchname=freeswitch-app-ivr-03.&FreeSWITCH-IPv4=10.14.26.25&FreeSWITCH-IPv6=%3A%3A1&Event-Date-Local=2017-05-08%2008%3A42%3A57&Event-Date-GMT=Mon,%2008%20May%202017%2006%3A42%3A57%20GMT&Event-Date-Timestamp=1494225777727856&Event-Calling-File=sofia.c&Event-Calling-Function=config_sofia&Event-Calling-Line-Number=4246&Event-Sequence=21 HTTP/1.1.

 

Second Request:

GET /?hostname=freeswitch-app-ivr-03.&section=configuration&tag_name=configuration&key_name=name&key_value=sofia.conf&Event-Name=REQUEST_PARAMS&Core-UUID=909a6aa8-b885-48cc-b8e8-7a09fe93c4ea&FreeSWITCH-Hostname=freeswitch-app-ivr-03.&FreeSWITCH-Switchname=freeswitch-app-ivr-03.&FreeSWITCH-IPv4=10.14.26.25&FreeSWITCH-IPv6=%3A%3A1&Event-Date-Local=2017-05-08%2008%3A42%3A57&Event-Date-GMT=Mon,%2008%20May%202017%2006%3A42%3A57%20GMT&Event-Date-Timestamp=1494225777736626&Event-Calling-File=sofia.c&Event-Calling-Function=launch_sofia_worker_thread&Event-Calling-Line-Number=2949&Event-Sequence=24&profile=local_eth0 HTTP/1.1.

 

First request has the config_sofia in the Event-Calliing-Function, while the second one has launch_sofia_worker_thread for what it seems like an existing sip_profile “local_eth0” which actually does exist.

But I’m trying to get all possible sip profiles from the web api, since the hostname will determine the number of sip profiles required for the fs server.

 

From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Michael Jerris
Sent: vrijdag 5 mei 2017 17:44
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Subject: Re: [Freeswitch-users] mod_distributor from db

 

no, its not per profile, the second one is something different, whats the details of the two requests?

 

On May 5, 2017, at 4:07 AM, Grant Bagdasarian <gb@cm.nl> wrote:

 

Right! Thanks.


What if I want to return multiple sip profiles? I see that it does 2 sofia.conf requests, does each request expect exactly one <profile> xml element?

 

From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Michael Jerris
Sent: donderdag 4 mei 2017 19:42
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Subject: Re: [Freeswitch-users] mod_distributor from db

 

it requests the sip profiles.  that is the sofia.conf request you see.

 

On May 4, 2017, at 5:08 AM, Grant Bagdasarian <gb@cm.nl> wrote:

 

Does mod_xml_curl not request sip profiles?

I see a request going out to the configured URL but it’s only for sofia.conf and some other modules like distributor, translate, lua, etc.

 

From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Grant Bagdasarian
Sent: dinsdag 2 mei 2017 09:53
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Subject: Re: [Freeswitch-users] mod_distributor from db

 

Nice! Thanks!

 

From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Anthony Minessale
Sent: maandag 1 mei 2017 18:18
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Subject: Re: [Freeswitch-users] mod_distributor from db

 

mod_xml_curl could.

 

 

On Mon, May 1, 2017 at 9:38 AM, Grant Bagdasarian <gb@cm.nl> wrote:

Hello,

 

Is it possible to load the gateways of a sip profile from a database and the distributor config also from a database, using built in modules/functions?

 

Regards,

 

Grant