[Freeswitch-users] Provisioning fifo.conf via xml_curl

Vik Killa vipkilla at gmail.com
Mon Nov 24 18:45:13 MSK 2014


You maybe missing the section tag, see below:

<document type="freeswitch/xml">
<section name="configuration" description="FreeSWITCH Configuration">
<configuration name="fifo.conf" description="FIFO Configuration">
...
</configuration>
</section>
</document>

On Mon, Nov 24, 2014 at 10:32 AM, Dan Christian Bogos <danb.lists at gmail.com>
wrote:

> Guys,
>
> Many thanks for your answers.
>
> @Vik: Yes, I am having the xml_curl correctly configured (I provision
> almost all, dialplan, directory, config, phrases in this way, and no
> issues elsewhere).
> @Steven: I thought I do. If I use exactly the same configuration
> received from xml_curl in fifo.conf, I have no issues. Bellow you can
> find what I am returning to FS, maybe you can spot some error or
> namespace issue?
> @Michael: I am loading mod_xml_curl very early at start (right after
> mod_console and mod_syslog) and mod_fifo way later.
>
> I thought that if I ask for a sample maybe I can spot the mistake (easy
> one I have imagined it) myself.
>
> Bellow you can find the configuration retrieval when I use console
> command "reload mod_fifo"
>
>
> Thanks again!
>
> DanB
>
> """
>
> T 2014/11/24 16:22:18.818134 192.168.50.136:53681 -> 192.168.50.136:2880
> [AP]
> POST /config/ HTTP/1.1.
> User-Agent: freeswitch-xml/1.0.
> Host: 192.168.50.136:2880.
> Accept: */*.
> Content-Length: 107.
> Content-Type: application/x-www-form-urlencoded.
> .
>
> hostname=nl-asd-dev-sbc01&section=configuration&tag_name=configuration&key_name=name&key_value=spandsp.conf
> ##
> T 2014/11/24 16:22:18.818764 192.168.50.136:2880 -> 192.168.50.136:53681
> [AP]
> HTTP/1.1 200 OK.
> Date: Mon, 24 Nov 2014 15:22:18 GMT.
> Content-Length: 105.
> Content-Type: text/plain; charset=utf-8.
> .
> <document type="freeswitch/xml"><section name="result"><result status="not
> found" /></section></document>
> ######
> T 2014/11/24 16:22:18.819212 192.168.50.136:53682 -> 192.168.50.136:2880
> [AP]
> POST /phrases/ HTTP/1.1.
> User-Agent: freeswitch-xml/1.0.
> Host: 192.168.50.136:2880.
> Accept: */*.
> Content-Length: 107.
> Content-Type: application/x-www-form-urlencoded.
> .
>
> hostname=nl-asd-dev-sbc01&section=configuration&tag_name=configuration&key_name=name&key_value=spandsp.conf
> ##
> T 2014/11/24 16:22:18.819931 192.168.50.136:2880 -> 192.168.50.136:53682
> [AP]
> HTTP/1.1 200 OK.
> Date: Mon, 24 Nov 2014 15:22:18 GMT.
> Content-Length: 105.
> Content-Type: text/plain; charset=utf-8.
> .
> <document type="freeswitch/xml"><section name="result"><result status="not
> found" /></section></document>
> ######
> T 2014/11/24 16:22:18.820574 192.168.50.136:53683 -> 192.168.50.136:2880
> [AP]
> POST /config/ HTTP/1.1.
> User-Agent: freeswitch-xml/1.0.
> Host: 192.168.50.136:2880.
> Accept: */*.
> Content-Length: 109.
> Content-Type: application/x-www-form-urlencoded.
> .
>
> hostname=nl-asd-dev-sbc01&section=configuration&tag_name=configuration&key_name=name&key_value=timezones.conf
> ##
> T 2014/11/24 16:22:18.820957 192.168.50.136:2880 -> 192.168.50.136:53683
> [AP]
> HTTP/1.1 200 OK.
> Date: Mon, 24 Nov 2014 15:22:18 GMT.
> Content-Length: 105.
> Content-Type: text/plain; charset=utf-8.
> .
> <document type="freeswitch/xml"><section name="result"><result status="not
> found" /></section></document>
> ######
> T 2014/11/24 16:22:18.821345 192.168.50.136:53684 -> 192.168.50.136:2880
> [AP]
> POST /phrases/ HTTP/1.1.
> User-Agent: freeswitch-xml/1.0.
> Host: 192.168.50.136:2880.
> Accept: */*.
> Content-Length: 109.
> Content-Type: application/x-www-form-urlencoded.
> .
>
> hostname=nl-asd-dev-sbc01&section=configuration&tag_name=configuration&key_name=name&key_value=timezones.conf
>
>
> T 2014/11/24 16:22:19.517231 192.168.50.136:53685 -> 192.168.50.136:2880
> [AP]
> POST /config/ HTTP/1.1.
> User-Agent: freeswitch-xml/1.0.
> Host: 192.168.50.136:2880.
> Accept: */*.
> Content-Length: 104.
> Content-Type: application/x-www-form-urlencoded.
> .
>
> hostname=nl-asd-dev-sbc01&section=configuration&tag_name=configuration&key_name=name&key_value=fifo.conf
> ##
> T 2014/11/24 16:22:19.520502 192.168.50.136:2880 -> 192.168.50.136:53685
> [AP]
> HTTP/1.1 200 OK.
> Date: Mon, 24 Nov 2014 15:22:19 GMT.
> Content-Length: 880.
> Content-Type: text/plain; charset=utf-8.
> .
> <configuration name="fifo.conf" description="FIFO
> Configuration"><fifos><fifo name="QUEUE1 at sip.test.domain.com"
> importance="0"><member timeout="30" simo="1" lag="0">{sip_invite_domain=
> sip.test.domain.com,sip_h_X-AuthType=INTERNAL,sip_h_X-DomainTag=
> sip.test.domain.com
> ,sip_h_X-EpType=SIP,sip_h_X-EpTag=endpoint2,sip_h_X-Destination=a41_u4_0_EPR,sip_h_X-Balancer=1.2.3.4,call_timeout=30}sofia/ipbxas/
> eprou-a41_u4_0_EPR at sip.test.domain.com;fs_path=sip:127.0.0.1</member><member
> timeout="30" simo="1" lag="0">{sip_invite_domain=sip.test.domain.com
> ,sip_h_X-AuthType=INTERNAL,sip_h_X-DomainTag=sip.test.domain.com
> ,sip_h_X-EpType=SIP,sip_h_X-EpTag=endpoint2,sip_h_X-Destination=a41_u205_0_EPR,sip_h_X-Balancer=1.2.3.4,call_timeout=30}sofia/ipbxas/
> eprou-a41_u205_0_EPR at sip.test.domain.com
> ;fs_path=sip:127.0.0.1</member></fifo></fifos></configuration>
>
> """
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20141124/66b668d4/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list