<div dir="ltr"><div class="gmail_default" style="font-family:&#39;trebuchet ms&#39;,sans-serif">I understand what you want to do. I cannot give you straight answer.</div><div class="gmail_default" style="font-family:&#39;trebuchet ms&#39;,sans-serif"><br></div><div class="gmail_default" style="font-family:&#39;trebuchet ms&#39;,sans-serif">You can feed gateways configuration via xml_curl and maybe with combination with ESL that you trigger commands for rescan gateways:</div><div class="gmail_default" style="font-family:&#39;trebuchet ms&#39;,sans-serif"><br></div><div class="gmail_default" style=""><font face="trebuchet ms, sans-serif"><a href="https://wiki.freeswitch.org/wiki/Reloading">https://wiki.freeswitch.org/wiki/Reloading</a></font><br></div><div class="gmail_default" style=""><font face="trebuchet ms, sans-serif"><br></font></div><div class="gmail_default" style=""><font face="trebuchet ms, sans-serif">So if you want to register new gateway on the fly add it to xml_curl list of gateways and issue rescan gateways... maybe this should help...</font></div><img src="http://t.sidekickopen53.com/e1t/o/5/f18dQhb0S7ks8dDMPbW2n0x6l2B9gXrN7sKj6v5dbp0W3MPnzY4XrbSMW8q-f_43LvrVvW59BB4r1k1H6H0?si=5036397111279616&amp;pi=4f55bdc8-055a-4ad3-ca40-15ea4322f15d" style="display:none!important" height="1" width="1"></div><div class="gmail_extra"><br><div class="gmail_quote">2016-05-31 7:45 GMT+02:00 Bipin Patel <span dir="ltr">&lt;<a href="mailto:bipin@xbipin.com" target="_blank">bipin@xbipin.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">so currently there is no way to register to a GW on the fly using xml<br>
curl for inbound calls?<br>
<span class=""><br>
<br>
Regards,<br>
Bipin<br>
<br>
<br>
------------------------------------------------------------------------<br>
-------- Original Message --------<br>
Subject: Re: [Freeswitch-users] dynamic user specific gateways with xml curl<br>
From: Michael Jerris &lt;<a href="mailto:mike@jerris.com">mike@jerris.com</a>&gt;<br>
To: FreeSWITCH Users Help &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>&gt;<br>
</span><span class="">Date: 5/29/2016, 11:43:48 PM<br>
&gt; there is no jistifucation whatsoever to require registration to make a<br>
&gt; call.  It&#39;s completely nonsensical.  A registration is telling a<br>
&gt; remote gateway how to call you.  It has nothing at all to do with<br>
&gt; making a call and adds no benefit whatsoever.<br>
&gt;<br>
&gt; On Sunday, May 29, 2016, Bipin Patel &lt;<a href="mailto:bipin@xbipin.com">bipin@xbipin.com</a><br>
</span><div><div class="h5">&gt; &lt;mailto:<a href="mailto:bipin@xbipin.com">bipin@xbipin.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     actually my users register to FS which has xml curl with directory<br>
&gt;     binding set, now i keep a DB of user accounts which my script gets and<br>
&gt;     sends to FS when a user tries to register but each account has a<br>
&gt;     different gateway ip in my DB so what im doing is routing the<br>
&gt;     calls for<br>
&gt;     each client differently, now my upstream GW requires FS to register to<br>
&gt;     it but the problem is i dont have the gateway ip and account details<br>
&gt;     before hand when sofia loads so im following the user specific gateway<br>
&gt;     example and making my script send user account as well as gateway<br>
&gt;     details to FS but FS keeps complaining GW not found. The current way i<br>
&gt;     solve this is in dialplan by bridging call to GW and passing the<br>
&gt;     id/pass<br>
&gt;     during bridge but that doesnt make FS register to GW.<br>
&gt;<br>
&gt;     i have to make FS register to upstream GW, without registration it<br>
&gt;     works<br>
&gt;     fine, what i learnt so far is FS needs its GW accounts when sofia<br>
&gt;     loads<br>
&gt;     and im trying to find a way i can create them on the fly because<br>
&gt;     there r<br>
&gt;     more than 60k client accounts in DB and hundreds of GW so i cant load<br>
&gt;     all of them during sofia load so trying to do it dynamically. The<br>
&gt;     config<br>
&gt;     and dialplan bindings for xml curl i dont use as im using static xml<br>
&gt;     files for that.<br>
&gt;<br>
&gt;     im using this variable in user accounts<br>
&gt;     |<br>
&gt;<br>
&gt;     &lt;variable name=&quot;register-gateway&quot; value=&quot;user1out&quot;/&gt;<br>
&gt;<br>
&gt;     |but when FS requests param it gets user account but it sends the same<br>
&gt;     request 2 more times and then complains twice GW not found, even if it<br>
&gt;     requested GW then i could feed it but even with config binding it<br>
&gt;     doesnt, only during sofia load it requests GW<br>
&gt;<br>
&gt;<br>
&gt;     Regards,<br>
&gt;     Bipin<br>
&gt;<br>
&gt;<br>
&gt;     ------------------------------------------------------------------------<br>
&gt;     -------- Original Message --------<br>
&gt;     Subject: Re: [Freeswitch-users] dynamic user specific gateways<br>
&gt;     with xml curl<br>
</div></div><span class="">&gt;     From: Michael Jerris &lt;<a href="mailto:mike@jerris.com">mike@jerris.com</a> &lt;javascript:;&gt;&gt;<br>
&gt;     To: FreeSWITCH Users Help &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
</span><span class="">&gt;     &lt;javascript:;&gt;&gt;<br>
&gt;     Date: 5/29/2016, 7:46:30 PM<br>
&gt;     &gt; there is no way to register a gateway from the dial plan as<br>
&gt;     &gt; registering has nothing to do with making calls so it makes no<br>
&gt;     sense.<br>
&gt;     &gt; Registering is a mechanism for receiving calls, and has nothing<br>
&gt;     at all<br>
&gt;     &gt; to do with sending calls.  Why would you need to register to<br>
&gt;     send a call?<br>
&gt;     &gt;<br>
&gt;     &gt; On Sunday, May 29, 2016, Bipin Patel &lt;<a href="mailto:bipin@xbipin.com">bipin@xbipin.com</a><br>
</span>&gt;     &lt;javascript:;&gt;<br>
<span class="">&gt;     &gt; &lt;mailto:<a href="mailto:bipin@xbipin.com">bipin@xbipin.com</a> &lt;javascript:;&gt;&gt;&gt; wrote:<br>
&gt;     &gt;<br>
&gt;     &gt;     well currently i use that only but i need to register to the<br>
&gt;     gateway<br>
&gt;     &gt;     upstream and this seems not possible using dialplan<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;     Regards,<br>
&gt;     &gt;     Bipin<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;      ------------------------------------------------------------------------<br>
&gt;     &gt;     -------- Original Message --------<br>
&gt;     &gt;     Subject: dynamic user specific gateways with xml curl<br>
&gt;     &gt;     From: Bipin Patel &lt;<a href="mailto:bipin@xbipin.com">bipin@xbipin.com</a> &lt;javascript:;&gt;<br>
</span><div><div class="h5">&gt;     &lt;javascript:;&gt;&gt;<br>
&gt;     &gt;     To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a> &lt;javascript:;&gt;<br>
&gt;     &lt;javascript:;&gt;<br>
&gt;     &gt;     Date: 5/29/2016, 3:53:54 PM<br>
&gt;     &gt;     &gt; isnt there anyway to define gateways on the fly using xml<br>
&gt;     curl, i<br>
&gt;     &gt;     &gt; tried the user specific gateway method by replying with<br>
&gt;     the user<br>
&gt;     &gt;     &gt; account along with the gw info but sofia keeps saying<br>
&gt;     gateway not<br>
&gt;     &gt;     &gt; found, i tried asking in irc but didnt get an answer, no<br>
&gt;     docs also<br>
&gt;     &gt;     &gt; mention this if its possible also or no.<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt; so far reading other places it seems gateways need to be<br>
&gt;     present<br>
&gt;     &gt;     &gt; during profile load but all those were very old so wanted<br>
&gt;     to know if<br>
&gt;     &gt;     &gt; its still possible to dynamically create gateways on the<br>
&gt;     fly or no<br>
&gt;     &gt;     &gt; when using xml curl.<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt; --<br>
&gt;     &gt;     &gt; Regards,<br>
&gt;     &gt;     &gt; Bipin<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;<br>
&gt;      ------------------------------------------------------------------------<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;      _________________________________________________________________________<br>
&gt;     &gt;     Professional FreeSWITCH Consulting Services:<br>
</div></div>&gt;     &gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a> &lt;javascript:;&gt; &lt;javascript:;&gt;<br>
<span class="">&gt;     &gt; <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;     &gt;<br>
&gt;     &gt;     Official FreeSWITCH Sites<br>
&gt;     &gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt;     &gt; <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
&gt;     &gt; <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
&gt;     &gt;<br>
&gt;     &gt;     FreeSWITCH-users mailing list<br>
</span>&gt;     &gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a> &lt;javascript:;&gt; &lt;javascript:;&gt;<br>
<div class="HOEnZb"><div class="h5">&gt;     &gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;     &gt;<br>
&gt;      UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;     &gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     _________________________________________________________________________<br>
&gt;     &gt; Professional FreeSWITCH Consulting Services:<br>
&gt;     &gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a> &lt;javascript:;&gt;<br>
&gt;     &gt; <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;     &gt;<br>
&gt;     &gt; Official FreeSWITCH Sites<br>
&gt;     &gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt;     &gt; <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
&gt;     &gt; <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
&gt;     &gt;<br>
&gt;     &gt; FreeSWITCH-users mailing list<br>
&gt;     &gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a> &lt;javascript:;&gt;<br>
&gt;     &gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;     &gt;<br>
&gt;     UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;     &gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;     _________________________________________________________________________<br>
&gt;     Professional FreeSWITCH Consulting Services:<br>
&gt;     <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a> &lt;javascript:;&gt;<br>
&gt;     <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt;     Official FreeSWITCH Sites<br>
&gt;     <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt;     <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
&gt;     <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt;     FreeSWITCH-users mailing list<br>
&gt;     <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a> &lt;javascript:;&gt;<br>
&gt;     <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;     UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;     <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><table border="0" style="font-size:12px;border:1px dashed rgb(187,187,187);font-family:sans-serif;width:537px"><tbody style="border-spacing:2px;border:0px none rgb(128,128,128)"><tr valign="top" style="border-spacing:2px;border:0px none rgb(128,128,128)"><td style="color:rgb(32,32,32);margin:8px;border-width:0px 1px 0px 0px;border-style:none solid none none;border-color:rgb(32,32,32) rgb(0,161,230) rgb(32,32,32) rgb(32,32,32);font-weight:bold;letter-spacing:1px;text-transform:capitalize;vertical-align:top;padding:1px 8px 1px 1px;width:63px;outline:rgb(32,32,32) none 0px;border-spacing:2px"><span style="color:rgb(0,161,230);outline:rgb(0,161,230) none 0px;border-spacing:2px;border:0px none rgb(0,161,230)"><font face="georgia, serif" size="2">Gregor Nanger</font></span><div style="font-size:17px;font-family:sans-serif;width:63px;outline:rgb(32,32,32) none 0px;border-spacing:2px;border:0px none rgb(32,32,32)"> </div></td><td style="margin:8px;border:0px none rgb(80,80,80);vertical-align:top;padding:1px 1px 1px 6px;width:354px;outline:rgb(80,80,80) none 0px;border-spacing:2px"><font face="georgia, serif" size="1"><b>CTO</b><br>t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485 <br>• Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia <br>• <a href="http://www.infomedia.si" target="_blank">www.infomedia.si</a></font></td></tr></tbody></table></div></div>
</div>