<div dir="ltr"><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif">I understand what you want to do. I cannot give you straight answer.</div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif"><br></div><div class="gmail_default" style="font-family:'trebuchet ms',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:'trebuchet ms',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&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"><<a href="mailto:bipin@xbipin.com" target="_blank">bipin@xbipin.com</a>></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 <<a href="mailto:mike@jerris.com">mike@jerris.com</a>><br>
To: FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>><br>
</span><span class="">Date: 5/29/2016, 11:43:48 PM<br>
> there is no jistifucation whatsoever to require registration to make a<br>
> call. It's completely nonsensical. A registration is telling a<br>
> remote gateway how to call you. It has nothing at all to do with<br>
> making a call and adds no benefit whatsoever.<br>
><br>
> On Sunday, May 29, 2016, Bipin Patel <<a href="mailto:bipin@xbipin.com">bipin@xbipin.com</a><br>
</span><div><div class="h5">> <mailto:<a href="mailto:bipin@xbipin.com">bipin@xbipin.com</a>>> wrote:<br>
><br>
> actually my users register to FS which has xml curl with directory<br>
> binding set, now i keep a DB of user accounts which my script gets and<br>
> sends to FS when a user tries to register but each account has a<br>
> different gateway ip in my DB so what im doing is routing the<br>
> calls for<br>
> each client differently, now my upstream GW requires FS to register to<br>
> it but the problem is i dont have the gateway ip and account details<br>
> before hand when sofia loads so im following the user specific gateway<br>
> example and making my script send user account as well as gateway<br>
> details to FS but FS keeps complaining GW not found. The current way i<br>
> solve this is in dialplan by bridging call to GW and passing the<br>
> id/pass<br>
> during bridge but that doesnt make FS register to GW.<br>
><br>
> i have to make FS register to upstream GW, without registration it<br>
> works<br>
> fine, what i learnt so far is FS needs its GW accounts when sofia<br>
> loads<br>
> and im trying to find a way i can create them on the fly because<br>
> there r<br>
> more than 60k client accounts in DB and hundreds of GW so i cant load<br>
> all of them during sofia load so trying to do it dynamically. The<br>
> config<br>
> and dialplan bindings for xml curl i dont use as im using static xml<br>
> files for that.<br>
><br>
> im using this variable in user accounts<br>
> |<br>
><br>
> <variable name="register-gateway" value="user1out"/><br>
><br>
> |but when FS requests param it gets user account but it sends the same<br>
> request 2 more times and then complains twice GW not found, even if it<br>
> requested GW then i could feed it but even with config binding it<br>
> doesnt, only during sofia load it requests GW<br>
><br>
><br>
> Regards,<br>
> Bipin<br>
><br>
><br>
> ------------------------------------------------------------------------<br>
> -------- Original Message --------<br>
> Subject: Re: [Freeswitch-users] dynamic user specific gateways<br>
> with xml curl<br>
</div></div><span class="">> From: Michael Jerris <<a href="mailto:mike@jerris.com">mike@jerris.com</a> <javascript:;>><br>
> To: FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
</span><span class="">> <javascript:;>><br>
> Date: 5/29/2016, 7:46:30 PM<br>
> > there is no way to register a gateway from the dial plan as<br>
> > registering has nothing to do with making calls so it makes no<br>
> sense.<br>
> > Registering is a mechanism for receiving calls, and has nothing<br>
> at all<br>
> > to do with sending calls. Why would you need to register to<br>
> send a call?<br>
> ><br>
> > On Sunday, May 29, 2016, Bipin Patel <<a href="mailto:bipin@xbipin.com">bipin@xbipin.com</a><br>
</span>> <javascript:;><br>
<span class="">> > <mailto:<a href="mailto:bipin@xbipin.com">bipin@xbipin.com</a> <javascript:;>>> wrote:<br>
> ><br>
> > well currently i use that only but i need to register to the<br>
> gateway<br>
> > upstream and this seems not possible using dialplan<br>
> ><br>
> ><br>
> > Regards,<br>
> > Bipin<br>
> ><br>
> ><br>
> ><br>
> ------------------------------------------------------------------------<br>
> > -------- Original Message --------<br>
> > Subject: dynamic user specific gateways with xml curl<br>
> > From: Bipin Patel <<a href="mailto:bipin@xbipin.com">bipin@xbipin.com</a> <javascript:;><br>
</span><div><div class="h5">> <javascript:;>><br>
> > To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a> <javascript:;><br>
> <javascript:;><br>
> > Date: 5/29/2016, 3:53:54 PM<br>
> > > isnt there anyway to define gateways on the fly using xml<br>
> curl, i<br>
> > > tried the user specific gateway method by replying with<br>
> the user<br>
> > > account along with the gw info but sofia keeps saying<br>
> gateway not<br>
> > > found, i tried asking in irc but didnt get an answer, no<br>
> docs also<br>
> > > mention this if its possible also or no.<br>
> > ><br>
> > > so far reading other places it seems gateways need to be<br>
> present<br>
> > > during profile load but all those were very old so wanted<br>
> to know if<br>
> > > its still possible to dynamically create gateways on the<br>
> fly or no<br>
> > > when using xml curl.<br>
> > ><br>
> > ><br>
> > > --<br>
> > > Regards,<br>
> > > Bipin<br>
> > ><br>
> > ><br>
> > ><br>
> ><br>
> ------------------------------------------------------------------------<br>
> ><br>
> ><br>
> ><br>
> ><br>
> _________________________________________________________________________<br>
> > Professional FreeSWITCH Consulting Services:<br>
</div></div>> > <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a> <javascript:;> <javascript:;><br>
<span class="">> > <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>
</span>> > <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a> <javascript:;> <javascript:;><br>
<div class="HOEnZb"><div class="h5">> > <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> ><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>
> ><br>
> ><br>
> ><br>
> ><br>
> _________________________________________________________________________<br>
> > Professional FreeSWITCH Consulting Services:<br>
> > <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a> <javascript:;><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> <javascript:;><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>
> ><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>
><br>
><br>
><br>
> _________________________________________________________________________<br>
> Professional FreeSWITCH Consulting Services:<br>
> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a> <javascript:;><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> <javascript:;><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>
><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>
<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>