You miss some tags in your XML, since it's in the directory you need to have the following tags: "domain", "users", "user" & "gateways" see http://wiki.freeswitch.org/wiki/Mod_xml_curl#Startup and http://wiki.freeswitch.org/wiki/Clarification:gateways#conf.2Fdirectory.2Fde... On 8/27/2012 3:07 AM, haloha wrote:
Hi
i did cli in freeswitch mode: sofia profile external rescan and freeswitch sends to web server
hostname=localhost.localdomain section=directory tag_name= key_name= key_value= Event-Name=REQUEST_PARAMS Core-UUID=4144f203-0c8f-4050-b58b-a39564428f3a FreeSWITCH-Hostname=localhost.localdomain FreeSWITCH-Switchname=localhost.localdomain FreeSWITCH-IPv4=172.30.41.148 FreeSWITCH-IPv6=%3A%3A1 Event-Date-Local=2012-08-27%2003%3A00%3A19 Event-Date-GMT=Mon,%2027%20Aug%202012%2007%3A00%3A19%20GMT Event-Date-Timestamp=1346050819261656 Event-Calling-File=sofia.c Event-Calling-Function=launch_sofia_worker_thread Event-Calling-Line-Number=2006 Event-Sequence=431 purpose=gateways profile=external
i try to send back
<?xml version="1.0" encoding="utf-8"?> <document type="freeswitch/xml"> <section name="directory"> <include> <gateway name="example"> <param name="username" value="cluecon"/> <param name="password" value="2007"/> <param name="proxy" value="sip.abc.net"/> <param name="expire-seconds" value="3600"/> <param name="register" value="false"/> <param name="retry-seconds" value="30"/> <param name="ping" value="25"/> </gateway> </include> </section> </document>
but it does not work
what is the correct format form
Thank you Ha`
On 8/27/12, haloha <haloha201@gmail.com> wrote:
hi Brian
could you please give me the example of the respond for gateway's info from web server there is no example for gateway's info respond, i only found the respond for user's info: <document type="freeswitch/xml"> <section name="directory"> <domain name="domain1.awesomevoipdomain.faketld"> <params> <param name="dial-string" value="{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}"/> </params> <groups> <group name="default"> <users> <user id="1004"> <params> <param name="password" value="some_password"/> </params> </user> </users> </group> </groups> </domain> </section> </document>
Thank you Ha`
On 8/27/12, Brian Foster <bdfoster@endigotech.com> wrote:
Easiest way is to use xml curl, checkout mod_xml_curl. You can pull things from mysql via your scripts on the web server.
-BDF
On Sun, Aug 26, 2012 at 11:20 PM, haloha <haloha201@gmail.com> wrote:
Hi all
for now, all the gateway's information is stored in xml file and its path(conf/sip_profiles/external/example.xml): <include> <gateway name="example"> <param name="username" value="cluecon"/> <param name="password" value="2007"/> <param name="proxy" value="sip.abc.net"/> <param name="expire-seconds" value="3600"/> <param name="register" value="true"/> <!--<param name="register" value="false"/>--> <param name="retry-seconds" value="30"/> <param name="ping" value="25"/> </gateway> </include>
is there a way to store the gateway's information in Mysql Databases, like sip clients information in folder conf/directory/
Thank you Ha`
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Brian D. Foster Endigo Computer LLC Email: bdfoster@endigotech.com Phone: 317-800-7876 Indianapolis, Indiana, USA
This message contains confidential information and is intended for those listed in the "To:", "CC:", and/or "BCC:" fields of the message header. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.
Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org