[Freeswitch-users] dynamic gateways

Juan Pablo L jpablolorenzetti at gmail.com
Thu Nov 15 22:49:33 UTC 2018


Hello, i m trying to load gateway information for profile dynamically, at
the moment i am trying to do it in the directory section, when the profile
is reload/rescan/restarted, upon directory request i m answering this xml:

<document type="freeswitch/xml">
  <section name="directory">
    <users>
      <user id="TestCustomerPBX">
        <gateways>
          <gateway name="TestCustomerPBX">
            <param name="username" value="testpbx1"></param>
            <param name="password" value="abcd123"></param>
            <param name="proxy" value="X.X.X.X"></param>
            <param name="register" value="false"></param>
            <param name="caller-id-in-from" value="true"></param>
          </gateway>
        </gateways>
      </user>
    </users>
  </section>
</document>

but it is not working, i have tried like dozens of times with different
parameters, values etc but none seems to work , even though the profile is
reloaded/rescanned/restarted successfully the gateway(s) do not show in
"sofia status" and when i attempt to make a call, naturally, i get an
"invalid gateway" error, does anyone know what is the correct format of the
xml to be answered ? ... other parameters i have tried are
domain,profile,profiles and others alike and all possible combinations of
them all .... and yes the gateway information is correct it works if loaded
from xml file ... thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20181115/78dd68f0/attachment-0001.html>


More information about the FreeSWITCH-users mailing list