<div dir="ltr">Hi,<br><br> 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?<br><br> I have gone thru the link for the configuration of mod_xml_curl<br>
<a href="http://wiki.freeswitch.org/wiki/Mod_xml_curl">http://wiki.freeswitch.org/wiki/Mod_xml_curl</a><br><br>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?<br>
<br>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://<<a href="http://172.20.176.31">172.20.176.31</a>>:8080 <br><br>Is there any other configuration I need to update.<br>
<br><br><br><br><div class="gmail_quote">On Sun, Sep 21, 2008 at 5:15 AM, Peter P GMX <span dir="ltr"><<a href="mailto:Prometheus001@gmx.net">Prometheus001@gmx.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I now serve the whole sofia config from my Ruby on Rails app and the<br>
gateways now work dynamically from my database entries.<br>
<br>
Thanks to all who contributed. I updated the wiki with my experience on<br>
the issues I had on this topic.<br>
<br>
Freeswitch is so great!<br>
<div class="Ih2E3d"><br>
Best regards<br>
Peter<br>
<br>
Raymond Chandler schrieb:<br>
</div><div><div></div><div class="Wj3C7c">> Peter P GMX wrote:<br>
><br>
>> According to <a href="http://wiki.freeswitch.org/wiki/Mod_xml_curl" target="_blank">http://wiki.freeswitch.org/wiki/Mod_xml_curl</a> I'v tried to<br>
>> set up gateways dynamically, but I do net get it to work:<br>
>> I always get : "Invalid profile"<br>
>><br>
>> My assumptions for a right xml answer back to FS are as follows, but I<br>
>> think at least one of it is false:<br>
>> 1. ) I start with<br>
>> <document type='freeswitch/xml'><br>
>> <section name='configuration'><br>
>> <configuration name='sofia.conf' description='RailsAdditionalConf'><br>
>> 2.) I do not want to change settings, so I do NOT add a <settings> tag<br>
>> 3.) I want to enhance an existing profile, so I add a profile tag<br>
>> (<profile name='external'>)<br>
>> 4.) I assume that I can have an existing profile "external" in the xml<br>
>> conf files and can mix additional parts dynamically into the same profile<br>
>> 5.) Within the profile I want to add gateways, so I add a gateway tag<br>
>> (<gateways>)<br>
>> 6.) Then I add the gateways<br>
>> 7.) I add the closing tags<br>
>><br>
>> Which one of the assumptions if wrong?<br>
>><br>
>><br>
>><br>
> I think #2 and #3 are wrong, if I understand what you're saying.<br>
><br>
> Your response will override the static XML files, NOT add to them or<br>
> "enhance" them<br>
><br>
>> The request I receive is as follows:<br>
>> {"key_name"=>"name", "action"=>"directory", "tag_name"=>"configuration",<br>
>> "key_value"=>"sofia.conf", "controller"=>"xml_curls",<br>
>> "hostname"=>"freeswitch", "section"=>"configuration"}<br>
>><br>
>> I only answer once at startup with the follwing:<br>
>> <document type='freeswitch/xml'><br>
>> <section name='configuration'><br>
>> <configuration name='sofia.conf' description='RailsAdditionalConf'><br>
>> <profile name='external'><br>
>> <gateways><br>
>> <gateway name="freeswitch2"><br>
>> <param name="username" value="1007"/><br>
>> <param name="realm" value="<a href="http://192.168.0.56:5061" target="_blank">192.168.0.56:5061</a>"/><br>
>> <param name="password" value="xxxx"/><br>
>> <param name="proxy" value="<a href="http://192.168.0.56" target="_blank">192.168.0.56</a>"/><br>
>> <param name="expire-seconds" value="30"/><br>
>> <param name="register" value="true"/><br>
>> <param name="register-transport" value="tls"/><br>
>> <param name="retry-seconds" value="30"/><br>
>> </gateway><br>
>> </gateways><br>
>> </profile><br>
>> </configuration><br>
>> </section><br>
>> </document><br>
>><br>
>> Does anybody have a correct XML answer for a gateway and can post it?<br>
>><br>
>><br>
><br>
> I wrote quite a bit of stuff that does most of the xml_curl files.<br>
> sofia.conf was definitely on my list. you can find the stuff that I<br>
> wrote in ${SVNROOT}/scripts/contrib/intralanman/PHP/fs_curl/<br>
><br>
> yes, it's in PHP, but it should give you enough of an idea of how to<br>
> send your responses.<br>
><br>
><br>
> -Ray<br>
><br>
><br>
><br>
><br>
>> Best regards<br>
>> Peter<br>
>><br>
>> _______________________________________________<br>
>> Freeswitch-users mailing list<br>
>> <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>><br>
>><br>
><br>
> _______________________________________________<br>
> Freeswitch-users mailing list<br>
> <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
><br>
<br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Thank you with regards,<br>Gopal,<br><br>
</div>