I had a similar requirement and ran into the same challenges.<br><br>My dial plans are all httapi, so I ended up not using gateways at all, and instead specifying all of the information in the bridge command.<br><br>&lt;application name=&quot;bridge&quot; data=&quot;{sip_auth_username=test,sip_auth_password=<a href="mailto:1234%7Dsips%3A%2B15555555555@subdomain.siptrunkingprovider.com">1234}sips:+15555555555@subdomain.siptrunkingprovider.com</a>&quot; /&gt;<br><br>This has been working just fine for me. If you have dynamic dial plans it should work for your case as well.<br><div class="gmail_quote"><div dir="ltr">On Sun, May 29, 2016 at 7:57 AM Bipin Patel &lt;<a href="mailto:bipin@xbipin.com">bipin@xbipin.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  

    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <font size="-1"><font face="Arial">isnt there anyway to define
        gateways on the fly using xml curl, i tried the user specific
        gateway method by replying with the user account along with the
        gw info but sofia keeps saying gateway not found, i tried asking
        in irc but didnt get an answer, no docs also mention this if its
        possible also or no.<br>
        <br>
        so far reading other places it seems gateways need to be present
        during profile load but all those were very old so wanted to
        know if its still possible to dynamically create gateways on the
        fly or no when using xml curl.<br>
        <br>
        <br>
      </font></font>
    <div>-- <br>
      Regards,<br>
      Bipin<br>
      <br>
      <br>
      <hr>
    </div>
  </div>



_________________________________________________________________________<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" 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" target="_blank">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></blockquote></div>