<div dir="ltr">Hi,<br><br>FIrst I want to thank you to all member of freeswitch developer team. Freeswitch Rocks! <br>You all have done terrific job! :)<br><br>I have buy and read all the 3 Freeswitch books.<br>Hopefully there will be another Freeswitch book that can uncover all the hidden  features. The current books still only scratch the surface.<div>
<br></div><div><br><br>I am now currently using freeswitch to do a surrogate client registration. The operator softswitch that I am connecting the freeswitch into require that all my freeswitch clients registered with them, otherwise it cannot receive the call from the softswitch. The problem is the client is dynamic and required that when client is not registered with the freeswitch, they must not registered with the operator softswitch. So only when the client is registered with the freeswitch, they must also registered with the softswitch, and when they are not, they also must not registered with the softswitch. <br>
<br>For that problem I cannot use SIP trunking to the operator softswitch. I turn to xml_curl module and also read that the user can have own gateway on directory (from freeswitch web documentation). So I think i can use this as surrogate client registration.<br>
<br>So I create this xml to be returned when xml_curl request the user data for registration:<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;directory&quot;&gt;<br>  &lt;domain name=&quot;<a href="http://xxxx.net">xxxx.net</a>&quot;&gt;<br>   &lt;groups&gt;<br>    &lt;group name=&quot;default&quot;&gt;<br>     &lt;users&gt;<br>      &lt;user id=&quot;1682112207445&quot;&gt;<br>
        &lt;gateways&gt;<br>       &lt;gateway name=&quot;gw_1682112207445&quot;&gt;<br>        &lt;param name=&quot;username&quot; value=&quot;1682112207445&quot;/&gt;<br>         &lt;param name=&quot;realm&quot; value=&quot;<a href="http://yyyyy.net">yyyyy.net</a>&quot; /&gt;<br>
        &lt;param name=&quot;password&quot; value=&quot;1234&quot;/&gt;<br>        &lt;param name=&quot;caller-id-in-from&quot; value=&quot;false&quot;/&gt;<br>        &lt;param name=&quot;extension&quot; value=&quot;1682112207445&quot;/&gt;<br>
        &lt;param name=&quot;proxy&quot; value=&quot;aaa.bbb.ccc.ddd&quot; /&gt;<br>        &lt;param name=&quot;register-proxy&quot; value=&quot;aaa.bbb.ccc.ddd&quot; /&gt;<br>          &lt;param name=&quot;expire-seconds&quot; value=&quot;30&quot;/&gt;<br>
         &lt;param name=&quot;register&quot; value=&quot;true&quot;/&gt;<br>          &lt;param name=&quot;retry-seconds&quot; value=&quot;30&quot;/&gt;<br>           &lt;param name=&quot;register-transport&quot; value=&quot;udp&quot;/&gt;<br>
          &lt;/gateway&gt;<br>        &lt;/gateways&gt;<br>       &lt;params&gt;<br>        &lt;param name=&quot;password&quot; value=&quot;vn2013&quot;/&gt;<br>        &lt;param name=&quot;dial-string&quot; value=&quot;{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}&quot;/&gt;<br>
       &lt;/params&gt;<br>       &lt;variables&gt;<br>        &lt;variable name=&quot;user_context&quot; value=&quot;default&quot;/&gt;<br>        &lt;variable name=&quot;register-gateway&quot; value=&quot;gw_1682112207445&quot;/&gt;<br>
       &lt;/variables&gt;<br>      &lt;/user&gt;<br>     &lt;/users&gt;<br>    &lt;/group&gt;<br>   &lt;/groups&gt;<br>  &lt;/domain&gt;<br> &lt;/section&gt;<br>&lt;/document&gt;<br><div><br></div><div>The user register with freeswitch, and then freeswitch tried to register the gw_1682112207445, and complain it cannot find the gw_1682112207445.</div>
<div><br></div><div><div>nta.c:2791 agent_recv_request() nta: received REGISTER sip:<a href="http://xxxx.net">xxxx.net</a> SIP/2.0 (CSeq 260)</div><div>nta.c:3078 agent_check_request_via() nta: Via check: received=182.4.88.15</div>
<div>nta.c:2990 agent_recv_request() nta: REGISTER (260) going to a default leg</div><div>2013-10-19 15:42:22.468092 [CONSOLE] mod_xml_curl.c:318 XML response is in /tmp/5f331fdc-389a-11e3-8e18-618d0dd75901.tmp.xml</div><div>
<b>2013-10-19 15:42:22.468092 [WARNING] sofia_reg.c:2851 Gateway &#39;gw_1682112207445&#39; not found.</b></div><div><br></div></div><div>Is the user gateway is not supported on xml_curl or I am missing something?</div></div>
<div><br></div><div>Regards,</div><div><br></div><div>Donny Hardyanto</div></div>