<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><?xml version="1.0" encoding="UTF-8" standalone="no"?><br><document type="freeswitch/xml"><br>
<section name="directory"><br> <domain name="<a href="http://xxxx.net">xxxx.net</a>"><br> <groups><br> <group name="default"><br> <users><br> <user id="1682112207445"><br>
<gateways><br> <gateway name="gw_1682112207445"><br> <param name="username" value="1682112207445"/><br> <param name="realm" value="<a href="http://yyyyy.net">yyyyy.net</a>" /><br>
<param name="password" value="1234"/><br> <param name="caller-id-in-from" value="false"/><br> <param name="extension" value="1682112207445"/><br>
<param name="proxy" value="aaa.bbb.ccc.ddd" /><br> <param name="register-proxy" value="aaa.bbb.ccc.ddd" /><br> <param name="expire-seconds" value="30"/><br>
<param name="register" value="true"/><br> <param name="retry-seconds" value="30"/><br> <param name="register-transport" value="udp"/><br>
</gateway><br> </gateways><br> <params><br> <param name="password" value="vn2013"/><br> <param name="dial-string" value="{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}"/><br>
</params><br> <variables><br> <variable name="user_context" value="default"/><br> <variable name="register-gateway" value="gw_1682112207445"/><br>
</variables><br> </user><br> </users><br> </group><br> </groups><br> </domain><br> </section><br></document><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 'gw_1682112207445' 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>