<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Kamil,<br>
    <br>
    you are telling FreeSWITCH to add a gateway, but not registering it.
    I've highlighted the 2 occasions in the quote.<br>
    Try it again, but this time set the register-param to <b>true</b>.<br>
    <br>
    Regards,<br>
    Bernhard<br>
    <br>
    <br>
    <div class="moz-cite-prefix">Am 21.08.2014 00:38, schrieb Kamil
      Nigmatullin:<br>
    </div>
    <blockquote
cite="mid:CA+XtiedeV0NsMCed156fEiKYXX8-0Wjrz4rA1ggy_pL3Frz9xw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Could anyone please help. I want to fetch
          gateways(sip_profiles) with mod_curl_xml. This is what I
          respond via http<br>
          <br>
          <br>
          &lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;<br>
          &lt;document type="freeswitch/xml"&gt;<br>
          &lt;section name="configuration"&gt;<br>
          &nbsp; &lt;configuration name="sofia.conf" description="Core
          Configuration"&gt; <br>
          &nbsp;&nbsp;&nbsp; &lt;profile name="external"&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;gateways&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;gateway name="supernode1"&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="username" value="supernode"/&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;param name="realm"
          value="188.138.xx.xx:5060"/&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="password" value="xxxx"/&gt;<br>
          <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="register" value="false"/&gt;</b><br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="proxy"
          value="188.138.xx.xx:5060"/&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;param name="caller-id-in-from"
          value="true"/&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="dtmf-type" value="inband"/&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;param name="rtp-timeout-sec" value="30"/&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="from-domain"
          value="188.138.xx.xx:5060"/&gt;<br>
          <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="register" value="false"/&gt;</b><br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="NDLB-sendrecv-in-session"
          value="true"/&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="vad" value="none"/&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="rtp-ip" value="188.138.xx.xx"/&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="sip-ip" value="188.138.xx.xx"/&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="extension-in-contact"
          value="true"/&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="rtp-autoflush-during-bridge"
          value="true"/&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="user-agent-string" value="SBC"/&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="NDLB-sendrecv-in-session"
          value="true"/&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="inbound-late-negotiation"
          value="false"/&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/gateway&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp; &lt;/gateways&gt;<br>
          &nbsp;&nbsp; &lt;/profile&gt;<br>
          &lt;/configuration&gt;<br>
          &lt;/section&gt;<br>
          &lt;/document&gt;<br>
          <br>
        </div>
        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?<br
          clear="all">
        <div>
          <div><br>
          </div>
          <div>Thanks in advance.<br>
          </div>
          <div><br>
            -- <br>
            Kamil Nigmatullin<br>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services: 
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a></pre>
    </blockquote>
    <br>
  </body>
</html>