[Freeswitch-users] Mod xml_curl and managing external SIP gateways

Peter P GMX Prometheus001 at gmx.net
Fri Sep 12 18:04:09 EDT 2008


Hello,

I am using Ruby on Rails for managing endpoints(directory) and dialplans 
in Freeswitch.

However I am wondering whether it is possble to dynamically generate 
external SIP gateways. I suspect this is done using the configuration 
bindings.
When I enable this I receive the following xml_curl requests on my Ruby 
server when starting up Freeswitch

{"key_name"=>"name", "action"=>"directory", "tag_name"=>"configuration", 
"key_value"=>"post_load_modules.conf", "controller"=>"xml_curls", 
"hostname"=>"freeswitch", "section"=>"configuration"}
{"key_name"=>"name", "action"=>"directory", "tag_name"=>"configuration", 
"key_value"=>"event_socket.conf", "controller"=>"xml_curls", 
"hostname"=>"freeswitch", "section"=>"configuration"}
{"key_name"=>"name", "action"=>"directory", "tag_name"=>"configuration", 
"key_value"=>"acl.conf", "controller"=>"xml_curls", 
"hostname"=>"freeswitch", "section"=>"configuration"}
{"key_name"=>"name", "action"=>"directory", "tag_name"=>"configuration", 
"key_value"=>"post_load_switch.conf", "controller"=>"xml_curls", 
"hostname"=>"freeswitch", "section"=>"configuration"}
{"key_name"=>"name", "action"=>"directory", "tag_name"=>"configuration", 
"key_value"=>"switch.conf", "controller"=>"xml_curls", 
"hostname"=>"freeswitch", "section"=>"configuration"}

Also during the runtime of FS can I see no more configuration requests.

On the mod_curl page in FS there is a very rough example, but I do net 
get a real clue how to.
In log/freeswitch.xml.fsxml I see that usually gateways are defined 
under the configuration_name="sofia.conf"
But as you can see in the requests above there is no sofia.conf 
requested (according to the wiki there could be 
iax.conf|event_socket.conf|sofia.conf|...).

Anybody has idea what I am doing wrongly and how to proceed? Just to 
mention: Directory and dialplans are working and I do receive already at 
least the above requests.








More information about the Freeswitch-users mailing list