<div dir="ltr">Hi,<br><br> 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>&section=dialplan&tag_name=&key_name=&key_value=&Channel-State=CS_ROUTING&Channel-State-Number=2&Channel-Name=sofia/internal/1002%40172.20.176.31&Unique-ID=e5f89c87-4481-4d5e-aa63-3111aa357f56&Call-Direction=inbound&Answer-State=ringing&Channel-Read-Codec-Name=PCMU&Channel-Read-Codec-Rate=8000&Channel-Write-Codec-Name=PCMU&Channel-Write-Codec-Rate=8000&Caller-Username=1002&Caller-Dialplan=XML&Caller-Caller-ID-Name=FreeSwitch&Caller-Caller-ID-Number=1002&Caller-Network-Addr=<a href="http://172.20.179.201">172.20.179.201</a>&Caller-Destination-Number=99894929942&Caller-Unique-ID=e5f89c87-4481-4d5e-aa63-3111aa357f56&Caller-Source=mod_sofia&Caller-Context=default&Caller-Channel-Name=sofia/internal/1002%40172.20.176.31&Caller-Profile-Index=1&Caller-Profile-Created-Time=1222262020162501&Caller-Channel-Created-Time=1222262020162501&Caller-Channel-Answered-Time=0&Caller-Channel-Progress-Time=0&Caller-Channel-Progress-Media-Time=0&Caller-Channel-Hangup-Time=0&Caller-Channel-Transfer-Time=0&Caller-Screen-Bit=true&Caller-Privacy-Hide-Name=false&Caller-Privacy-Hide-Number=false&variable_sip_received_ip=<a href="http://172.20.179.201">172.20.179.201</a>&variable_sip_received_port=36046&variable_sip_authorized=true&variable_sip_mailbox=1002&variable_sip_auth_username=1002&variable_sip_auth_realm=<a href="http://172.20.176.31">172.20.176.31</a>&variable_mailbox=1002&variable_user_name=1002&variable_domain_name=<a href="http://172.20.176.31">172.20.176.31</a>&variable_record_stereo=true&variable_accountcode=1002&variable_user_context=default&variable_effective_caller_id_name=Extension%201002&variable_effective_caller_id_number=1002&variable_sip_from_user=1002&variable_sip_from_uri=1002%40172.20.176.31&variable_sip_from_host=<a href="http://172.20.176.31">172.20.176.31</a>&variable_sip_from_user_stripped=1002&variable_sip_from_tag=787e3c65&variable_sofia_profile_name=internal&variable_sofia_profile_domain_name=<a href="http://172.20.176.31">172.20.176.31</a>&variable_sip_req_user=99894929942&variable_sip_req_uri=99894929942%40172.20.176.31&variable_sip_req_host=<a href="http://172.20.176.31">172.20.176.31</a>&variable_sip_to_user=99894929942&variable_sip_to_uri=99894929942%40172.20.176.31&variable_sip_to_host=<a href="http://172.20.176.31">172.20.176.31</a>&variable_sip_contact_user=1002&variable_sip_contact_port=36046&variable_sip_contact_uri=1002%40172.20.179.201%3A36046&variable_sip_contact_host=<a href="http://172.20.179.201">172.20.179.201</a>&variable_channel_name=sofia/internal/1002%40172.20.176.31&variable_sip_call_id=ad4a4b6d3211ab68MTNlOGRjN2Y0ZmYzY2I5MzJlMmE0YzMzODU1MzMyY2U.&variable_sip_user_agent=X-Lite%20release%201002tx%20stamp%2029712&variable_sip_via_host=<a href="http://172.20.179.201">172.20.179.201</a>&variable_sip_via_port=36046&variable_sip_via_rport=36046&variable_max_forwards=70&variable_presence_id=1002%40172.20.176.31&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&variable_remote_media_ip=<a href="http://172.20.179.201">172.20.179.201</a>&variable_remote_media_port=29188&variable_read_codec=PCMU&variable_read_rate=8000&variable_write_codec=PCMU&variable_write_rate=8000&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"><<a href="mailto:saigop@gmail.com">saigop@gmail.com</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;"><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<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://<<a href="http://172.20.176.31" target="_blank">172.20.176.31</a>>: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"><<a href="mailto:Prometheus001@gmx.net" target="_blank">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><br>
Best regards<br>
Peter<br>
<br>
Raymond Chandler schrieb:<br>
</div><div><div></div><div>> 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" 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>
>><br>
>><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>
><br>
><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>