[Freeswitch-users] Fetching gateways via mod_curl_xml

Bernhard Wendel bernhard at sessionbird.com
Thu Aug 21 17:03:26 MSD 2014


Hi Kamil,

you are telling FreeSWITCH to add a gateway, but not registering it. 
I've highlighted the 2 occasions in the quote.
Try it again, but this time set the register-param to *true*.

Regards,
Bernhard


Am 21.08.2014 00:38, schrieb Kamil Nigmatullin:
> Could anyone please help. I want to fetch gateways(sip_profiles) with 
> mod_curl_xml. This is what I respond via http
>
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <document type="freeswitch/xml">
> <section name="configuration">
>   <configuration name="sofia.conf" description="Core Configuration">
>     <profile name="external">
>       <gateways>
>         <gateway name="supernode1">
>            <param name="username" value="supernode"/>
>            <param name="realm" value="188.138.xx.xx:5060"/>
>            <param name="password" value="xxxx"/>
> *           <param name="register" value="false"/>*
>            <param name="proxy" value="188.138.xx.xx:5060"/>
>            <param name="caller-id-in-from" value="true"/>
>            <param name="dtmf-type" value="inband"/>
>            <param name="rtp-timeout-sec" value="30"/>
>            <param name="from-domain" value="188.138.xx.xx:5060"/>
> *           <param name="register" value="false"/>*
>            <param name="NDLB-sendrecv-in-session" value="true"/>
>            <param name="vad" value="none"/>
>            <param name="rtp-ip" value="188.138.xx.xx"/>
>            <param name="sip-ip" value="188.138.xx.xx"/>
>            <param name="extension-in-contact" value="true"/>
>            <param name="rtp-autoflush-during-bridge" value="true"/>
>            <param name="user-agent-string" value="SBC"/>
>            <param name="NDLB-sendrecv-in-session" value="true"/>
>            <param name="inbound-late-negotiation" value="false"/>
>         </gateway>
>      </gateways>
>    </profile>
> </configuration>
> </section>
> </document>
>
> I see that FS requests and read this XML(each line ended by \r\n) 
> without reporting any errors, but gateway does not appears at sofia 
> status. Is there anything wrong in that XML Block?
>
> Thanks in advance.
>
> -- 
> Kamil Nigmatullin
>
>
> _________________________________________________________________________
> 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/20140821/4c38350f/attachment.html 


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