Thanks Bernard and Brian.
Bernard, I actually do not register this gateway anywhere but FS requires to put some password in sip profile. Anyway thanks.
Brian, you mean that I must return not only gateway but everything that is in sip_profiles directory? So if I understand correctly,
instead of X-PRE-PROCESS I have to put all gateways each in <gateway> section?
<!-- This profile is only for outbound registrations to providers -->
<gateways>
<X-PRE-PROCESS cmd="include" data="external/*.xml"/>
</gateways>
Thanks again for your support2014-08-21 21:05 GMT+06:00 Brian West <brian@freeswitch.org>:
You have to return the ENTIRE sofia config with gateways and such for this to work.--On Thu, Aug 21, 2014 at 8:03 AM, Bernhard Wendel <bernhard@sessionbird.com> wrote:
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 httpI 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?
<?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>
Thanks in advance.
--
Kamil Nigmatullin
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.orgBrian West
brian@freeswitch.org
Twitter: @FreeSWITCH , @briankwest
http://www.freeswitchbook.com
http://www.freeswitchcookbook.comT:+19184209001 | F:+19184209002 | M:+1918424WEST (9378)
iNUM:+883 5100 1420 9001 | ISN:410*543 | Skype:briankwest
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
Kamil Nigmatullin
Manager
Tel: 77272323748
mob: 7 777 2517003
ICQ: 31008382
Skype: Kamil Nigmatullin