Hi, I am trying to have a webpage with a button, once clicked the dial function will happen, for this I hope we need to use mod_xml_curl. am i correct?
I have gone thru the link for the configuration of mod_xml_curl http://wiki.freeswitch.org/wiki/Mod_xml_curl I want to use javascript or possibly PHP, I dont understand that where the settings like configuration, dialplan, directory and phrases has to be defined, is it in freeswitch.xml? But still ahead I have went thru with the link and configured xml_curl_conf.xml but I cant able to open the page thru webserver with http://<172.20.176.31>:8080 Is there any other configuration I need to update. On Sun, Sep 21, 2008 at 5:15 AM, Peter P GMX <[EMAIL PROTECTED]> wrote: > I now serve the whole sofia config from my Ruby on Rails app and the > gateways now work dynamically from my database entries. > > Thanks to all who contributed. I updated the wiki with my experience on > the issues I had on this topic. > > Freeswitch is so great! > > Best regards > Peter > > Raymond Chandler schrieb: > > Peter P GMX wrote: > > > >> According to http://wiki.freeswitch.org/wiki/Mod_xml_curl I'v tried to > >> set up gateways dynamically, but I do net get it to work: > >> I always get : "Invalid profile" > >> > >> My assumptions for a right xml answer back to FS are as follows, but I > >> think at least one of it is false: > >> 1. ) I start with > >> <document type='freeswitch/xml'> > >> <section name='configuration'> > >> <configuration name='sofia.conf' description='RailsAdditionalConf'> > >> 2.) I do not want to change settings, so I do NOT add a <settings> tag > >> 3.) I want to enhance an existing profile, so I add a profile tag > >> (<profile name='external'>) > >> 4.) I assume that I can have an existing profile "external" in the xml > >> conf files and can mix additional parts dynamically into the same > profile > >> 5.) Within the profile I want to add gateways, so I add a gateway tag > >> (<gateways>) > >> 6.) Then I add the gateways > >> 7.) I add the closing tags > >> > >> Which one of the assumptions if wrong? > >> > >> > >> > > I think #2 and #3 are wrong, if I understand what you're saying. > > > > Your response will override the static XML files, NOT add to them or > > "enhance" them > > > >> The request I receive is as follows: > >> {"key_name"=>"name", "action"=>"directory", "tag_name"=>"configuration", > >> "key_value"=>"sofia.conf", "controller"=>"xml_curls", > >> "hostname"=>"freeswitch", "section"=>"configuration"} > >> > >> I only answer once at startup with the follwing: > >> <document type='freeswitch/xml'> > >> <section name='configuration'> > >> <configuration name='sofia.conf' description='RailsAdditionalConf'> > >> <profile name='external'> > >> <gateways> > >> <gateway name="freeswitch2"> > >> <param name="username" value="1007"/> > >> <param name="realm" value="192.168.0.56:5061"/> > >> <param name="password" value="xxxx"/> > >> <param name="proxy" value="192.168.0.56"/> > >> <param name="expire-seconds" value="30"/> > >> <param name="register" value="true"/> > >> <param name="register-transport" value="tls"/> > >> <param name="retry-seconds" value="30"/> > >> </gateway> > >> </gateways> > >> </profile> > >> </configuration> > >> </section> > >> </document> > >> > >> Does anybody have a correct XML answer for a gateway and can post it? > >> > >> > > > > I wrote quite a bit of stuff that does most of the xml_curl files. > > sofia.conf was definitely on my list. you can find the stuff that I > > wrote in ${SVNROOT}/scripts/contrib/intralanman/PHP/fs_curl/ > > > > yes, it's in PHP, but it should give you enough of an idea of how to > > send your responses. > > > > > > -Ray > > > > > > > > > >> Best regards > >> Peter > >> > >> _______________________________________________ > >> Freeswitch-users mailing list > >> [email protected] > >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > >> UNSUBSCRIBE: > http://lists.freeswitch.org/mailman/options/freeswitch-users > >> http://www.freeswitch.org > >> > >> > > > > _______________________________________________ > > Freeswitch-users mailing list > > [email protected] > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > > > > _______________________________________________ > Freeswitch-users mailing list > [email protected] > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -- Thank you with regards, Gopal,
_______________________________________________ Freeswitch-users mailing list [email protected] http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
