P
P
Poshy152019-07-11 10:32:15
PHP
Poshy15, 2019-07-11 10:32:15

How to reload Gateway Freeswitch changes via mod_xml_curl?

I use the mod_xml_curl module to form gateways and directory,
data is transferred from the N1 Apache+PHP+Mysql server to the N2 Freeswitch server.
After the user on the N1 server entered the data via SIP, on the N2 server they are applied only after fs_cli -x "reload mod_sofia" is reloaded, how to do it automatically? After this data appeared on the N1 server in the output of the XML file https://site.com/xml_handler.php.
xml_curl.conf.xml config:

<configuration name="xml_curl.conf" description="cURL XML Gateway">
<bindings>
<binding name="localhostweb">
<param name="gateway-url" value="https://site.com/xml_handler.php" bindings="directory|dialplan|configuration"/>
</binding>
</bindings>
</configuration>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2019-07-30
@rostel

XML issuing machine will not work in any way, because it is not requested periodically
, you can try a little more humanely through event_socket to pull when changing the gateway settings

sofia profile <profile_name> killgw <gateway_name>
sofia profile <profile_name> rescan

when adding a new one
sofia profile <profile_name> rescan

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question