<div dir="ltr">now I return this but it doesn&#39;t work either.<br><br>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;<br>&lt;document type=&quot;freeswitch/xml&quot;&gt;<br>&lt;section name=&quot;configuration&quot;&gt;<br>
&lt;configuration name=&quot;sofia.conf&quot; description=&quot;Core Configuration&quot;&gt;<br>&lt;profile name=&quot;external&quot;&gt;<br>&lt;gateways&gt;<br>&lt;gateway name=&quot;supernode&quot;&gt;<br>&lt;param name=&quot;username&quot; value=&quot;supernode&quot;/&gt;<br>
&lt;param name=&quot;realm&quot; value=&quot;188.138.xx.xx:5060&quot;/&gt;<br>&lt;param name=&quot;password&quot; value=&quot;xxxx&quot;/&gt;<br>&lt;param name=&quot;register&quot; value=&quot;false&quot;/&gt;<br>&lt;param name=&quot;proxy&quot; value=&quot;188.138.xx.xx:5060&quot;/&gt;<br>
&lt;param name=&quot;caller-id-in-from&quot; value=&quot;true&quot;/&gt;<br>&lt;param name=&quot;dtmf-type&quot; value=&quot;inband&quot;/&gt;<br>&lt;param name=&quot;rtp-timeout-sec&quot; value=&quot;30&quot;/&gt;<br>&lt;param name=&quot;from-domain&quot; value=&quot;188.138.xx.xx:5060&quot;/&gt;<br>
&lt;param name=&quot;NDLB-sendrecv-in-session&quot; value=&quot;true&quot;/&gt;<br>&lt;param name=&quot;vad&quot; value=&quot;none&quot;/&gt;<br>&lt;param name=&quot;rtp-ip&quot; value=&quot;188.138.xx.xx&quot;/&gt;<br>&lt;param name=&quot;sip-ip&quot; value=&quot;188.138.xx.xx&quot;/&gt;<br>
&lt;param name=&quot;extension-in-contact&quot; value=&quot;true&quot;/&gt;<br>&lt;param name=&quot;rtp-autoflush-during-bridge&quot; value=&quot;true&quot;/&gt;<br>&lt;param name=&quot;user-agent-string&quot; value=&quot;SBC&quot;/&gt;<br>
&lt;param name=&quot;NDLB-sendrecv-in-session&quot; value=&quot;true&quot;/&gt;<br>&lt;param name=&quot;inbound-late-negotiation&quot; value=&quot;false&quot;/&gt;<br>&lt;/gateway&gt;<br>&lt;/gateways&gt;<br>&lt;domains&gt;<br>
&lt;domain name=&quot;all&quot; alias=&quot;false&quot; parse=&quot;true&quot;/&gt;<br>&lt;/domains&gt;<br>&lt;settings&gt;<br>&lt;param name=&quot;debug&quot; value=&quot;0&quot;/&gt;<br>&lt;param name=&quot;sip-trace&quot; value=&quot;no&quot;/&gt;<br>
&lt;param name=&quot;sip-capture&quot; value=&quot;no&quot;/&gt;<br>&lt;param name=&quot;rfc2833-pt&quot; value=&quot;101&quot;/&gt;<br>&lt;param name=&quot;sip-port&quot; value=&quot;$${external_sip_port}&quot;/&gt;<br>&lt;param name=&quot;dialplan&quot; value=&quot;XML&quot;/&gt;<br>
&lt;param name=&quot;context&quot; value=&quot;public&quot;/&gt;<br>&lt;param name=&quot;dtmf-duration&quot; value=&quot;2000&quot;/&gt;<br>&lt;param name=&quot;inbound-codec-prefs&quot; value=&quot;$${global_codec_prefs}&quot;/&gt;<br>
&lt;param name=&quot;outbound-codec-prefs&quot; value=&quot;$${outbound_codec_prefs}&quot;/&gt;<br>&lt;param name=&quot;hold-music&quot; value=&quot;$${hold_music}&quot;/&gt;<br>&lt;param name=&quot;rtp-timer-name&quot; value=&quot;soft&quot;/&gt;<br>
&lt;param name=&quot;local-network-acl&quot; value=&quot;localnet.auto&quot;/&gt;<br>&lt;param name=&quot;manage-presence&quot; value=&quot;false&quot;/&gt;<br>&lt;param name=&quot;inbound-codec-negotiation&quot; value=&quot;generous&quot;/&gt;<br>
&lt;param name=&quot;nonce-ttl&quot; value=&quot;60&quot;/&gt;<br>&lt;param name=&quot;auth-calls&quot; value=&quot;false&quot;/&gt;<br>&lt;param name=&quot;inbound-late-negotiation&quot; value=&quot;true&quot;/&gt;<br>&lt;param name=&quot;inbound-zrtp-passthru&quot; value=&quot;true&quot;/&gt;<br>
&lt;param name=&quot;rtp-ip&quot; value=&quot;$${local_ip_v4}&quot;/&gt;<br>&lt;param name=&quot;sip-ip&quot; value=&quot;$${local_ip_v4}&quot;/&gt;<br>&lt;param name=&quot;ext-rtp-ip&quot; value=&quot;auto-nat&quot;/&gt;<br>
&lt;param name=&quot;ext-sip-ip&quot; value=&quot;auto-nat&quot;/&gt;<br>&lt;param name=&quot;rtp-timeout-sec&quot; value=&quot;300&quot;/&gt;<br>&lt;param name=&quot;rtp-hold-timeout-sec&quot; value=&quot;1800&quot;/&gt;<br>
&lt;param name=&quot;tls&quot; value=&quot;$${external_ssl_enable}&quot;/&gt;<br>&lt;param name=&quot;tls-only&quot; value=&quot;false&quot;/&gt;<br>&lt;param name=&quot;tls-bind-params&quot; value=&quot;transport=tls&quot;/&gt;<br>
&lt;param name=&quot;tls-sip-port&quot; value=&quot;$${external_tls_port}&quot;/&gt;<br>&lt;param name=&quot;tls-passphrase&quot; value=&quot;&quot;/&gt;<br>&lt;param name=&quot;tls-verify-date&quot; value=&quot;true&quot;/&gt;<br>
&lt;param name=&quot;tls-verify-policy&quot; value=&quot;none&quot;/&gt;<br>&lt;param name=&quot;tls-verify-depth&quot; value=&quot;2&quot;/&gt;<br>&lt;param name=&quot;tls-verify-in-subjects&quot; value=&quot;&quot;/&gt;<br>
&lt;param name=&quot;tls-version&quot; value=&quot;$${sip_tls_version}&quot;/&gt;<br>&lt;/settings&gt;<br>&lt;/profile&gt;<br>&lt;/configuration&gt;<br>&lt;/section&gt;<br>&lt;/document&gt;<br><br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2014-08-21 23:16 GMT+06:00 Kamil Nigmatullin <span dir="ltr">&lt;<a href="mailto:kamil.nigmatullin@gmail.com" target="_blank">kamil.nigmatullin@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>Thanks Bernard and Brian.<br>Bernard, I actually do not register this gateway anywhere but FS requires to put some password in sip profile. Anyway thanks.<br><br>Brian, you mean that I must return not only gateway but everything that is in sip_profiles directory? So if I understand correctly, <br>

instead of X-PRE-PROCESS I have to put all gateways each in &lt;gateway&gt; section?<br> &lt;!-- This profile is only for outbound registrations to providers --&gt;<br>  &lt;gateways&gt;<br>    &lt;X-PRE-PROCESS cmd=&quot;include&quot; data=&quot;external/*.xml&quot;/&gt;<br>

  &lt;/gateways&gt;<br></div><br>Thanks again for your support<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-08-21 21:05 GMT+06:00 Brian West <span dir="ltr">&lt;<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>&gt;</span>:<div>
<div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">You have to return the ENTIRE sofia config with gateways and such for this to work.</div><div class="gmail_extra">

<div><div><br><br><div class="gmail_quote">On Thu, Aug 21, 2014 at 8:03 AM, Bernhard Wendel <span dir="ltr">&lt;<a href="mailto:bernhard@sessionbird.com" target="_blank">bernhard@sessionbird.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    Hi Kamil,<br>
    <br>
    you are telling FreeSWITCH to add a gateway, but not registering it.
    I&#39;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>Am 21.08.2014 00:38, schrieb Kamil
      Nigmatullin:<br>
    </div>
    <blockquote type="cite"><div><div>
      <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=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;<br>
          &lt;document type=&quot;freeswitch/xml&quot;&gt;<br>
          &lt;section name=&quot;configuration&quot;&gt;<br>
            &lt;configuration name=&quot;sofia.conf&quot; description=&quot;Core
          Configuration&quot;&gt; <br>
              &lt;profile name=&quot;external&quot;&gt;<br>
                &lt;gateways&gt;<br>
                  &lt;gateway name=&quot;supernode1&quot;&gt;<br>
                     &lt;param name=&quot;username&quot; value=&quot;supernode&quot;/&gt;<br>
                     &lt;param name=&quot;realm&quot;
          value=&quot;188.138.xx.xx:5060&quot;/&gt;<br>
                     &lt;param name=&quot;password&quot; value=&quot;xxxx&quot;/&gt;<br>
          <b>           &lt;param name=&quot;register&quot; value=&quot;false&quot;/&gt;</b><br>
                     &lt;param name=&quot;proxy&quot;
          value=&quot;188.138.xx.xx:5060&quot;/&gt;<br>
                     &lt;param name=&quot;caller-id-in-from&quot;
          value=&quot;true&quot;/&gt;<br>
                     &lt;param name=&quot;dtmf-type&quot; value=&quot;inband&quot;/&gt;<br>
                     &lt;param name=&quot;rtp-timeout-sec&quot; value=&quot;30&quot;/&gt;<br>
                     &lt;param name=&quot;from-domain&quot;
          value=&quot;188.138.xx.xx:5060&quot;/&gt;<br>
          <b>           &lt;param name=&quot;register&quot; value=&quot;false&quot;/&gt;</b><br>
                     &lt;param name=&quot;NDLB-sendrecv-in-session&quot;
          value=&quot;true&quot;/&gt;<br>
                     &lt;param name=&quot;vad&quot; value=&quot;none&quot;/&gt;<br>
                     &lt;param name=&quot;rtp-ip&quot; value=&quot;188.138.xx.xx&quot;/&gt;<br>
                     &lt;param name=&quot;sip-ip&quot; value=&quot;188.138.xx.xx&quot;/&gt;<br>
                     &lt;param name=&quot;extension-in-contact&quot;
          value=&quot;true&quot;/&gt;<br>
                     &lt;param name=&quot;rtp-autoflush-during-bridge&quot;
          value=&quot;true&quot;/&gt;<br>
                     &lt;param name=&quot;user-agent-string&quot; value=&quot;SBC&quot;/&gt;<br>
                     &lt;param name=&quot;NDLB-sendrecv-in-session&quot;
          value=&quot;true&quot;/&gt;<br>
                     &lt;param name=&quot;inbound-late-negotiation&quot;
          value=&quot;false&quot;/&gt;<br>
                  &lt;/gateway&gt;<br>
               &lt;/gateways&gt;<br>
             &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></fieldset>
      <br>
      </div></div><pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services: 
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>

Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a>

FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></pre>
    </blockquote>
    <br>
  </div>

<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div></div></div>-- <br><div dir="ltr">







<p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br><span style="font-size:x-small"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p>
<p><font face="courier new, monospace" size="1"><img src="http://bkw.org/whmcslogo.png"><br></font></p><p><font face="courier new, monospace"><b><i>Twitter: @FreeSWITCH , @briankwest</i></b><br><a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a><br>


<a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a></font></p>
<p><font face="courier new, monospace"><b>T:</b><a href="tel:%2B19184209001" value="+19184209001" target="_blank">+19184209001</a> | <b>F:</b><a href="tel:%2B19184209002" value="+19184209002" target="_blank">+19184209002</a> | <b>M:</b>+1918424WEST (9378)<br>

<b>iNUM:</b>+883 5100 1420 9001 | <b>ISN:</b>410*543 | <b>Skype:</b>briankwest</font></p></div>
</div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div></div></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br>Kamil Nigmatullin<br>Manager <br>
Tel: 77272323748<br>mob: 7 777 2517003<br>ICQ: 31008382<br>
Skype: Kamil Nigmatullin
</font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br>Kamil Nigmatullin<br>Manager <br>Tel: 77272323748<br>mob: 7 777 2517003<br>ICQ: 31008382<br>Skype: Kamil Nigmatullin
</div>