Hi, After some modifications I am getting this log in the console,
2008-09-24 18:43:40 [ERR] mod_xml_curl.c:200 xml_url_fetch() Received HTTP error 0 trying to fetch http://localhost:8080 data: [hostname=dialer.optimus.co.in §ion=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= 172.20.179.201 &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= 172.20.179.201 &variable_sip_received_port=36046&variable_sip_authorized=true&variable_sip_mailbox=1002&variable_sip_auth_username=1002&variable_sip_auth_realm= 172.20.176.31 &variable_mailbox=1002&variable_user_name=1002&variable_domain_name= 172.20.176.31 &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= 172.20.176.31 &variable_sip_from_user_stripped=1002&variable_sip_from_tag=787e3c65&variable_sofia_profile_name=internal&variable_sofia_profile_domain_name= 172.20.176.31 &variable_sip_req_user=99894929942&variable_sip_req_uri=99894929942%40172.20.176.31&variable_sip_req_host= 172.20.176.31 &variable_sip_to_user=99894929942&variable_sip_to_uri=99894929942%40172.20.176.31&variable_sip_to_host= 172.20.176.31 &variable_sip_contact_user=1002&variable_sip_contact_port=36046&variable_sip_contact_uri=1002%40172.20.179.201%3A36046&variable_sip_contact_host= 172.20.179.201 &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= 172.20.179.201 &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= 172.20.179.201 &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] 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 On Wed, Sep 24, 2008 at 5:21 PM, Gopal krishnan <[EMAIL PROTECTED]> wrote: > 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, > > -- 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
