<div dir="ltr">Hi,<br><br>&nbsp; After some modifications I am getting this log in the console,<br><br>2008-09-24 18:43:40 [ERR] mod_xml_curl.c:200 xml_url_fetch() Received HTTP error 0 trying to fetch <a href="http://localhost:8080">http://localhost:8080</a><br>
data: [hostname=<a href="http://dialer.optimus.co.in">dialer.optimus.co.in</a>&amp;section=dialplan&amp;tag_name=&amp;key_name=&amp;key_value=&amp;Channel-State=CS_ROUTING&amp;Channel-State-Number=2&amp;Channel-Name=sofia/internal/1002%40172.20.176.31&amp;Unique-ID=e5f89c87-4481-4d5e-aa63-3111aa357f56&amp;Call-Direction=inbound&amp;Answer-State=ringing&amp;Channel-Read-Codec-Name=PCMU&amp;Channel-Read-Codec-Rate=8000&amp;Channel-Write-Codec-Name=PCMU&amp;Channel-Write-Codec-Rate=8000&amp;Caller-Username=1002&amp;Caller-Dialplan=XML&amp;Caller-Caller-ID-Name=FreeSwitch&amp;Caller-Caller-ID-Number=1002&amp;Caller-Network-Addr=<a href="http://172.20.179.201">172.20.179.201</a>&amp;Caller-Destination-Number=99894929942&amp;Caller-Unique-ID=e5f89c87-4481-4d5e-aa63-3111aa357f56&amp;Caller-Source=mod_sofia&amp;Caller-Context=default&amp;Caller-Channel-Name=sofia/internal/1002%40172.20.176.31&amp;Caller-Profile-Index=1&amp;Caller-Profile-Created-Time=1222262020162501&amp;Caller-Channel-Created-Time=1222262020162501&amp;Caller-Channel-Answered-Time=0&amp;Caller-Channel-Progress-Time=0&amp;Caller-Channel-Progress-Media-Time=0&amp;Caller-Channel-Hangup-Time=0&amp;Caller-Channel-Transfer-Time=0&amp;Caller-Screen-Bit=true&amp;Caller-Privacy-Hide-Name=false&amp;Caller-Privacy-Hide-Number=false&amp;variable_sip_received_ip=<a href="http://172.20.179.201">172.20.179.201</a>&amp;variable_sip_received_port=36046&amp;variable_sip_authorized=true&amp;variable_sip_mailbox=1002&amp;variable_sip_auth_username=1002&amp;variable_sip_auth_realm=<a href="http://172.20.176.31">172.20.176.31</a>&amp;variable_mailbox=1002&amp;variable_user_name=1002&amp;variable_domain_name=<a href="http://172.20.176.31">172.20.176.31</a>&amp;variable_record_stereo=true&amp;variable_accountcode=1002&amp;variable_user_context=default&amp;variable_effective_caller_id_name=Extension%201002&amp;variable_effective_caller_id_number=1002&amp;variable_sip_from_user=1002&amp;variable_sip_from_uri=1002%40172.20.176.31&amp;variable_sip_from_host=<a href="http://172.20.176.31">172.20.176.31</a>&amp;variable_sip_from_user_stripped=1002&amp;variable_sip_from_tag=787e3c65&amp;variable_sofia_profile_name=internal&amp;variable_sofia_profile_domain_name=<a href="http://172.20.176.31">172.20.176.31</a>&amp;variable_sip_req_user=99894929942&amp;variable_sip_req_uri=99894929942%40172.20.176.31&amp;variable_sip_req_host=<a href="http://172.20.176.31">172.20.176.31</a>&amp;variable_sip_to_user=99894929942&amp;variable_sip_to_uri=99894929942%40172.20.176.31&amp;variable_sip_to_host=<a href="http://172.20.176.31">172.20.176.31</a>&amp;variable_sip_contact_user=1002&amp;variable_sip_contact_port=36046&amp;variable_sip_contact_uri=1002%40172.20.179.201%3A36046&amp;variable_sip_contact_host=<a href="http://172.20.179.201">172.20.179.201</a>&amp;variable_channel_name=sofia/internal/1002%40172.20.176.31&amp;variable_sip_call_id=ad4a4b6d3211ab68MTNlOGRjN2Y0ZmYzY2I5MzJlMmE0YzMzODU1MzMyY2U.&amp;variable_sip_user_agent=X-Lite%20release%201002tx%20stamp%2029712&amp;variable_sip_via_host=<a href="http://172.20.179.201">172.20.179.201</a>&amp;variable_sip_via_port=36046&amp;variable_sip_via_rport=36046&amp;variable_max_forwards=70&amp;variable_presence_id=1002%40172.20.176.31&amp;variable_switch_r_sdp=v%3D0%0D%0Ao%3D-%200%202%20IN%20IP4%20172.20.179.201%0D%0As%3D%3CCounterPath%20eyeBeam%201.5%3E%0D%0Ac%3DIN%20IP4%20172.20.179.201%0D%0At%3D0%200%0D%0Am%3Daudio%2029188%20RTP/AVP%20107%20119%200%2098%208%203%20101%0D%0Aa%3Drtpmap%3A107%20BV32/16000%0D%0Aa%3Drtpmap%3A119%20BV32-FEC/16000%0D%0Aa%3Drtpmap%3A98%20iLBC/8000%0D%0Aa%3Drtpmap%3A101%20telephone-event/8000%0D%0Aa%3Dfmtp%3A101%200-15%0D%0Aa%3Dalt%3A1%201%20%3A%20mJ9lFB0%2B%20hEX2AklK%20172.20.179.201%2029188%0D%0Aa%3Dx-rtp-session-id%3ABE4FB81648CF4D27B19A9E3ACB1BF65D%0D%0A&amp;variable_remote_media_ip=<a href="http://172.20.179.201">172.20.179.201</a>&amp;variable_remote_media_port=29188&amp;variable_read_codec=PCMU&amp;variable_read_rate=8000&amp;variable_write_codec=PCMU&amp;variable_write_rate=8000&amp;variable_endpoint_disposition=RECEIVED]<br>
<br>So here I the key value and the key name seems to be blank, so how to configure that, any suggestion would be helpful. Thanks <br><br><div class="gmail_quote">On Wed, Sep 24, 2008 at 5:21 PM, Gopal krishnan <span dir="ltr">&lt;<a href="mailto:saigop@gmail.com">saigop@gmail.com</a>&gt;</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;"><div dir="ltr">Hi,<br><br>&nbsp;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>&nbsp; I have gone thru the link for the configuration of mod_xml_curl<div class="Ih2E3d"><br>
<a href="http://wiki.freeswitch.org/wiki/Mod_xml_curl" target="_blank">http://wiki.freeswitch.org/wiki/Mod_xml_curl</a><br><br></div>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://&lt;<a href="http://172.20.176.31" target="_blank">172.20.176.31</a>&gt;:8080 <br>
<br>Is there any other configuration I need to update.<div><div></div><div class="Wj3C7c"><br>
<br><br><br><br><div class="gmail_quote">On Sun, Sep 21, 2008 at 5:15 AM, Peter P GMX <span dir="ltr">&lt;<a href="mailto:Prometheus001@gmx.net" target="_blank">Prometheus001@gmx.net</a>&gt;</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><br>
Best regards<br>
Peter<br>
<br>
Raymond Chandler schrieb:<br>
</div><div><div></div><div>&gt; Peter P GMX wrote:<br>
&gt;<br>
&gt;&gt; According to <a href="http://wiki.freeswitch.org/wiki/Mod_xml_curl" target="_blank">http://wiki.freeswitch.org/wiki/Mod_xml_curl</a> I&#39;v tried to<br>
&gt;&gt; set up gateways dynamically, but I do net get it to work:<br>
&gt;&gt; I always get : &quot;Invalid profile&quot;<br>
&gt;&gt;<br>
&gt;&gt; My assumptions for a right xml answer back to FS are as follows, but I<br>
&gt;&gt; think at least one of it is false:<br>
&gt;&gt; 1. ) I start with<br>
&gt;&gt; &lt;document type=&#39;freeswitch/xml&#39;&gt;<br>
&gt;&gt; &nbsp; &lt;section name=&#39;configuration&#39;&gt;<br>
&gt;&gt; &nbsp; &nbsp; &lt;configuration name=&#39;sofia.conf&#39; description=&#39;RailsAdditionalConf&#39;&gt;<br>
&gt;&gt; 2.) I do not want to change settings, so I do NOT add a &lt;settings&gt; tag<br>
&gt;&gt; 3.) I want to enhance an existing profile, so I add a profile tag<br>
&gt;&gt; (&lt;profile name=&#39;external&#39;&gt;)<br>
&gt;&gt; 4.) I assume that I can have an existing profile &quot;external&quot; in the xml<br>
&gt;&gt; conf files and can mix additional parts dynamically into the same profile<br>
&gt;&gt; 5.) Within the profile I want to add gateways, so I add a gateway tag<br>
&gt;&gt; (&lt;gateways&gt;)<br>
&gt;&gt; 6.) Then I add the gateways<br>
&gt;&gt; 7.) I add the closing tags<br>
&gt;&gt;<br>
&gt;&gt; Which one of the assumptions if wrong?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt; I think #2 and #3 are wrong, if I understand what you&#39;re saying.<br>
&gt;<br>
&gt; Your response will override the static XML files, NOT add to them or<br>
&gt; &quot;enhance&quot; them<br>
&gt;<br>
&gt;&gt; The request I receive is as follows:<br>
&gt;&gt; {&quot;key_name&quot;=&gt;&quot;name&quot;, &quot;action&quot;=&gt;&quot;directory&quot;, &quot;tag_name&quot;=&gt;&quot;configuration&quot;,<br>
&gt;&gt; &quot;key_value&quot;=&gt;&quot;sofia.conf&quot;, &quot;controller&quot;=&gt;&quot;xml_curls&quot;,<br>
&gt;&gt; &quot;hostname&quot;=&gt;&quot;freeswitch&quot;, &quot;section&quot;=&gt;&quot;configuration&quot;}<br>
&gt;&gt;<br>
&gt;&gt; I only answer once at startup with the follwing:<br>
&gt;&gt; &lt;document type=&#39;freeswitch/xml&#39;&gt;<br>
&gt;&gt; &nbsp; &lt;section name=&#39;configuration&#39;&gt;<br>
&gt;&gt; &nbsp; &nbsp; &lt;configuration name=&#39;sofia.conf&#39; description=&#39;RailsAdditionalConf&#39;&gt;<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;profile name=&#39;external&#39;&gt;<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;gateways&gt;<br>
&gt;&gt; &nbsp; &lt;gateway name=&quot;freeswitch2&quot;&gt;<br>
&gt;&gt; &nbsp; &lt;param name=&quot;username&quot; value=&quot;1007&quot;/&gt;<br>
&gt;&gt; &nbsp; &lt;param name=&quot;realm&quot; value=&quot;<a href="http://192.168.0.56:5061" target="_blank">192.168.0.56:5061</a>&quot;/&gt;<br>
&gt;&gt; &nbsp; &lt;param name=&quot;password&quot; value=&quot;xxxx&quot;/&gt;<br>
&gt;&gt; &nbsp; &lt;param name=&quot;proxy&quot; value=&quot;<a href="http://192.168.0.56" target="_blank">192.168.0.56</a>&quot;/&gt;<br>
&gt;&gt; &nbsp; &lt;param name=&quot;expire-seconds&quot; value=&quot;30&quot;/&gt;<br>
&gt;&gt; &nbsp; &lt;param name=&quot;register&quot; value=&quot;true&quot;/&gt;<br>
&gt;&gt; &nbsp; &lt;param name=&quot;register-transport&quot; value=&quot;tls&quot;/&gt;<br>
&gt;&gt; &nbsp; &lt;param name=&quot;retry-seconds&quot; value=&quot;30&quot;/&gt;<br>
&gt;&gt; &nbsp; &lt;/gateway&gt;<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/gateways&gt;<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/profile&gt;<br>
&gt;&gt; &nbsp; &nbsp; &lt;/configuration&gt;<br>
&gt;&gt; &nbsp; &lt;/section&gt;<br>
&gt;&gt; &lt;/document&gt;<br>
&gt;&gt;<br>
&gt;&gt; Does anybody have a correct XML answer for a gateway and can post it?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt; I wrote quite a bit of stuff that does most of the xml_curl files.<br>
&gt; sofia.conf was definitely on my list. you can find the stuff that I<br>
&gt; wrote in ${SVNROOT}/scripts/contrib/intralanman/PHP/fs_curl/<br>
&gt;<br>
&gt; yes, it&#39;s in PHP, but it should give you enough of an idea of how to<br>
&gt; send your responses.<br>
&gt;<br>
&gt;<br>
&gt; -Ray<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;&gt; Best regards<br>
&gt;&gt; Peter<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Freeswitch-users mailing list<br>
&gt;&gt; <a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br>
&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Freeswitch-users mailing list<br>
&gt; <a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
<br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">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></div></div>-- <br>Thank you with regards,<br>Gopal,<br><br>
</div>
</blockquote></div><br><br clear="all"><br>-- <br>Thank you with regards,<br>Gopal,<br><br>
</div>