[Freeswitch-users] mod_xml_curl and gateways
I wonder if it is possible to define common gateways (not user specific gateways) by xml_curl, and if so, the bindings and syntax to use? All the best /Jon ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] mod_xml_curl and gateways
Hi, All gateways are common, putting them in a user only serves the purpose of grouping related information together in the XML files. This said, you can bind to the configuration section and return those gateways as part of the sip profile's xml data. Cheers, Mathieu Rene Avant-Garde Solutions Inc Office: + 1 (514) 664-1044 x100 Cell: +1 (514) 664-1044 x200 mr...@avgs.ca On 21-Dec-09, at 11:13 AM, Jon Bruel wrote: I wonder if it is possible to define common gateways (not user specific gateways) by xml_curl, and if so, the bindings and syntax to use? All the best /Jon ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org 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 FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] mod_xml_curl and gateways
same exact syntax only put the gateways in the sofia profile On Mon, Dec 21, 2009 at 10:13 AM, Jon Bruel j...@consiglia.dk wrote: I wonder if it is possible to define common gateways (not user specific gateways) by xml_curl, and if so, the bindings and syntax to use? All the best /Jon ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_miness...@hotmail.com msn%3aanthony_miness...@hotmail.com GTALK/JABBER/PAYPAL:anthony.miness...@gmail.compaypal%3aanthony.miness...@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:8...@conference.freeswitch.org sip%3a...@conference.freeswitch.org iax:gu...@conference.freeswitch.org/888 googletalk:conf+...@conference.freeswitch.orggoogletalk%3aconf%2b...@conference.freeswitch.org pstn:+19193869900 ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
[Freeswitch-users] mod_xml_curl
Hi, i want use mod_xml_curl, the xml files also there in my local system, i dont want to take from any other system, can any please tell me how to configure mox_xml.conf.xml, how can i use bindings to local folders Thanks Srinivasula Reddy K ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
[Freeswitch-users] mod_xml_curl
Hi, i want use mod_xml_curl, the xml files also there in my local system, i dont want to take from any other system, can any please tell me how to configure mox_xml.conf.xml, how can i use bindings to local folders Thanks Srinivasula Reddy K ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] mod_xml_curl
http://wiki.freeswitch.org/wiki/Mod_xml_curl Is a great start. /b On Oct 7, 2009, at 1:43 AM, srinivasula reddy wrote: Hi, i want use mod_xml_curl, the xml files also there in my local system, i dont want to take from any other system, can any please tell me how to configure mox_xml.conf.xml, how can i use bindings to local folders Thanks Srinivasula Reddy K ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org 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 FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] mod_xml_curl
Hi brain west, Thank you very much for your reply, i have gone through the link what u have sent me, they have given how to access remote system through webserver, but they have not given how to access from local system, if u know please hellp me Thanks On Wed, Oct 7, 2009 at 12:22 PM, Brian West br...@freeswitch.org wrote: http://wiki.freeswitch.org/wiki/Mod_xml_curl Is a great start. /b On Oct 7, 2009, at 1:43 AM, srinivasula reddy wrote: Hi, i want use mod_xml_curl, the xml files also there in my local system, i dont want to take from any other system, can any please tell me how to configure mox_xml.conf.xml, how can i use bindings to local folders Thanks Srinivasula Reddy K ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org 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 FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Srinivasula Reddy K ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] mod_xml_curl
srinivasula reddy srinivas.ksvre...@gmail.com wrote: Thank you very much for your reply, i have gone through the link what u have sent me, they have given how to access remote system through webserver, but they have not given how to access from local system, On that page, there is an example of how to use mod_curl to access a local system. Do you know what localhost means? You can't use a file:// URL, you have to use an HTTP URL and set up a (small) HTTP server on localhost. ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] mod_xml_curl http POST is inconsistent/bug
This web request goes to a server running IIS on Windows Server 2003. From: Brian West [mailto:br...@freeswitch.org] Sent: Monday, October 05, 2009 5:43 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] mod_xml_curl http POST is inconsistent/bug Are you using something other than apache? /b On Oct 5, 2009, at 1:25 PM, Christian Damianidis wrote: The inconsistent POST request sent by the module causes freeswitch to hang for 1-2 minutes during start-up. ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] mod_xml_curl http POST is inconsistent/bug
My guess is that we configure the curl to support the full range of http auth methods. Some of them like Digest require a challenge and realm etc so it's probably asking without auth header because it cannot create one until it gets that data. In the case of Basic you can send the login and pass right away but it does not know in advance that it will be basic. Here is a snippet from the libcurl api docs: - Both these options allow you to set multiple types (by ORing them together), to make libcurl pick the most secure one out of the types the server/proxy claims to support. This method does however add a round-trip since libcurl must first ask the server what it supports: curl_easy_setopt(easyhandle, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST|CURLAUTH_BASIC); - So my guess is that if we set it to only support basic, then it would work how you expect so if you want to test it for me I can make it into a parameter. edit: /usr/src/freeswitch.trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c line 220 change curl_easy_setopt(curl_handle, CURLOPT_HTTPAUTH, CURLAUTH_ANY); to curl_easy_setopt(curl_handle, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); If this works i'll think about exposing the auth methods so you can choose them in the config. On Tue, Oct 6, 2009 at 9:39 AM, Christian Damianidis christiandamiani...@globalive.com wrote: This web request goes to a server running IIS on Windows Server 2003. *From:* Brian West [mailto:br...@freeswitch.org] *Sent:* Monday, October 05, 2009 5:43 PM *To:* freeswitch-users@lists.freeswitch.org *Subject:* Re: [Freeswitch-users] mod_xml_curl http POST is inconsistent/bug Are you using something other than apache? /b On Oct 5, 2009, at 1:25 PM, Christian Damianidis wrote: The inconsistent POST request sent by the module causes freeswitch to hang for 1-2 minutes during start-up. ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_miness...@hotmail.com msn%3aanthony_miness...@hotmail.com GTALK/JABBER/PAYPAL:anthony.miness...@gmail.compaypal%3aanthony.miness...@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:8...@conference.freeswitch.org sip%3a...@conference.freeswitch.org iax:gu...@conference.freeswitch.org/888 googletalk:conf+...@conference.freeswitch.orggoogletalk%3aconf%2b...@conference.freeswitch.org pstn:213-799-1400 ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] mod_xml_curl http POST is inconsistent/bug
I've tested this and making the change from ANY to BASIC worked. Thanks for the help. It no longer sends the initial post without auth. From: Anthony Minessale [mailto:anthony.miness...@gmail.com] Sent: Tuesday, October 06, 2009 11:02 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] mod_xml_curl http POST is inconsistent/bug My guess is that we configure the curl to support the full range of http auth methods. Some of them like Digest require a challenge and realm etc so it's probably asking without auth header because it cannot create one until it gets that data. In the case of Basic you can send the login and pass right away but it does not know in advance that it will be basic. Here is a snippet from the libcurl api docs: - Both these options allow you to set multiple types (by ORing them together), to make libcurl pick the most secure one out of the types the server/proxy claims to support. This method does however add a round-trip since libcurl must first ask the server what it supports: curl_easy_setopt(easyhandle, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST|CURLAUTH_BASIC); - So my guess is that if we set it to only support basic, then it would work how you expect so if you want to test it for me I can make it into a parameter. edit: /usr/src/freeswitch.trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c line 220 change curl_easy_setopt(curl_handle, CURLOPT_HTTPAUTH, CURLAUTH_ANY); to curl_easy_setopt(curl_handle, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); If this works i'll think about exposing the auth methods so you can choose them in the config. On Tue, Oct 6, 2009 at 9:39 AM, Christian Damianidis christiandamiani...@globalive.com wrote: This web request goes to a server running IIS on Windows Server 2003. From: Brian West [mailto:br...@freeswitch.org] Sent: Monday, October 05, 2009 5:43 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] mod_xml_curl http POST is inconsistent/bug Are you using something other than apache? /b On Oct 5, 2009, at 1:25 PM, Christian Damianidis wrote: The inconsistent POST request sent by the module causes freeswitch to hang for 1-2 minutes during start-up. ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_miness...@hotmail.com mailto:msn%3aanthony_miness...@hotmail.com GTALK/JABBER/PAYPAL:anthony.miness...@gmail.com mailto:paypal%3aanthony.miness...@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:8...@conference.freeswitch.org mailto:sip%3a...@conference.freeswitch.org iax:gu...@conference.freeswitch.org/888 googletalk:conf+...@conference.freeswitch.org mailto:googletalk%3aconf%2b...@conference.freeswitch.org pstn:213-799-1400 ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] mod_xml_curl http POST is inconsistent/bug
Could you open a bug on jira.freeswitch.org as a feature request to make this a configurable param. (patches that do it even better) Mike On Oct 6, 2009, at 12:55 PM, Christian Damianidis wrote: I’ve tested this and making the change from ANY to BASIC worked. Thanks for the help. It no longer sends the initial post without auth. From: Anthony Minessale [mailto:anthony.miness...@gmail.com] Sent: Tuesday, October 06, 2009 11:02 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] mod_xml_curl http POST is inconsistent/bug My guess is that we configure the curl to support the full range of http auth methods. Some of them like Digest require a challenge and realm etc so it's probably asking without auth header because it cannot create one until it gets that data. In the case of Basic you can send the login and pass right away but it does not know in advance that it will be basic. Here is a snippet from the libcurl api docs: - Both these options allow you to set multiple types (by ORing them together), to make libcurl pick the most secure one out of the types the server/proxy claims to support. This method does however add a round-trip since libcurl must first ask the server what it supports: curl_easy_setopt(easyhandle, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST| CURLAUTH_BASIC); - So my guess is that if we set it to only support basic, then it would work how you expect so if you want to test it for me I can make it into a parameter. edit: /usr/src/freeswitch.trunk/src/mod/xml_int/mod_xml_curl/ mod_xml_curl.c line 220 change curl_easy_setopt(curl_handle, CURLOPT_HTTPAUTH, CURLAUTH_ANY); to curl_easy_setopt(curl_handle, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); If this works i'll think about exposing the auth methods so you can choose them in the config. ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
[Freeswitch-users] mod_xml_curl http POST is inconsistent/bug
Trying to achieve dynamic binding of user directory. In short: It's not doing the authorization properly. I can use curl in the command line and it works perfectly, specifying BASIC auth.. however with the freeswitch module it returns HTTP 401. So I've taken a close look at the network packets being sent and there are some issues. This is between the bindings/bindings tags in my xml_curl.conf.xml (1.2.3.4 represents my webserver's IP) binding name=users param name=gateway-url value=http://1.2.3.4:2000/users.aspx; bindings=directory/ param name=gateway-credentials value=username:password/ /binding When I run curl -basic -u username http://1.2.3.4:2000/users.aspx; it asks me for a password and returns the correct thing. I use tshark to monitor, and it sends a GET request, with the correct authorization credentials in the header. I receive an HTTP 200 OK packet and the xml follows. When I startup freeswitch, I guess the xml curl module gets to run, and it makes the request. However this time it's a POST, and oddly DOES NOT include the Authorization: Basic encodedstring line in the packet. I get back two HTTP 401 Unauthorized responses, and then freeswitch sends out another POST, this time includes the authorization line, and I get back an OK with the xml. My user directory is updated and we're all good. The inconsistent POST request sent by the module causes freeswitch to hang for 1-2 minutes during start-up. Has anyone else had this issue? Is this a bug or intended functionality (ping the server before making a real request?). I'd love to sort this out, otherwise getting an updated directory isn't real-time, thus defeating the purpose. Thanks, Christian ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] mod_xml_curl http POST is inconsistent/bug
Are you using something other than apache? /b On Oct 5, 2009, at 1:25 PM, Christian Damianidis wrote: The inconsistent POST request sent by the module causes freeswitch to hang for 1-2 minutes during start-up. ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] Mod_xml_curl doesn't exists Trunk 13288
Dear Mike, During Make Current I see no errors, at the end I get successful installation message; I also tried to scroll up to see any possible errors but I guess there was nothing. I can see this message for mod_xml_cdr: making install mod_xml_cdr make[5]: Entering directory `/usr/src/freeswitch-svn/src/mod/xml_int/mod_xml_cdr' make[6]: Entering directory `/usr/src/freeswitch-svn/src/mod/xml_int/mod_xml_cdr' installing mod_xml_cdr.so make[6]: Leaving directory `/usr/src/freeswitch-svn/src/mod/xml_int/mod_xml_cdr' make[5]: Leaving directory `/usr/src/freeswitch-svn/src/mod/xml_int/mod_xml_cdr' but nothing for mod_xml_curl Again I copied mod_xml_curl.so to /mod directory and load mod_xml_curl but it says load mod_xml_curl 2009-05-14 11:48:12 [CRIT] switch_loadable_module.c:871 switch_loadable_module_load_file() Error Loading module /usr/local/freeswitch/mod/mod_xml_curl.so **/usr/local/freeswitch/mod/mod_xml_curl.so: cannot open shared object file: No such file or directory** API CALL [load(mod_xml_curl)] output: -ERR [module load file routine returned an error] Thanks. _ From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Michael Jerris Sent: Wednesday, May 13, 2009 7:12 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Mod_xml_curl doesn't exists Trunk 13288 do you see any errors if you do a make ? Mike On May 13, 2009, at 8:56 AM, Saeed Ahmed wrote: Hi Tristan, No its not commented out. And strange thing is that it was working until I did make current today. Thanks for your response. _ From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Tristan Sent: Wednesday, May 13, 2009 2:15 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Mod_xml_curl doesn't exists Trunk 13288 Hi Saeed, Maybe you did not built it ? ( see in modules.conf if it's not commented out with a # ) Saeed Ahmed a écrit : Hi, I just did make current and FS failed to load xml_curl, I looked into mod/ dir but mod_xml_curl.so wasnt there. I even tried to copy it from src directory but somehow FS doesnt load it. What could be the problem? ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] Mod_xml_curl doesn't exists Trunk 13288
Saeed Ahmed saeedahmad1...@gmail.com wrote: During Make Current I see no errors, at the end I get successful installation message; I also tried to scroll up to see any possible errors but I guess there was nothing. Have you done a fresh checkout and tried to rebuild from the beginning? When you do this, you should capture all of the output in a file so you can see what the errors are, e.g. make build-log 21 ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] Mod_xml_curl doesn't exists Trunk 13288
Thanks Math, this has fixed the problem, but isnt it strange that make current is not doing it automatically? Many Thanks _ From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Mathieu Rene Sent: Thursday, May 14, 2009 11:48 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Mod_xml_curl doesn't exists Trunk 13288 try make mod_xml_curl-install Math On 14-May-09, at 11:46 AM, Saeed Ahmed wrote: Dear Mike, During Make Current I see no errors, at the end I get successful installation message; I also tried to scroll up to see any possible errors but I guess there was nothing. I can see this message for mod_xml_cdr: making install mod_xml_cdr make[5]: Entering directory `/usr/src/freeswitch-svn/src/mod/xml_int/mod_xml_cdr' make[6]: Entering directory `/usr/src/freeswitch-svn/src/mod/xml_int/mod_xml_cdr' installing mod_xml_cdr.so make[6]: Leaving directory `/usr/src/freeswitch-svn/src/mod/xml_int/mod_xml_cdr' make[5]: Leaving directory `/usr/src/freeswitch-svn/src/mod/xml_int/mod_xml_cdr' but nothing for mod_xml_curl Again I copied mod_xml_curl.so to /mod directory and load mod_xml_curl but it says load mod_xml_curl 2009-05-14 11:48:12 [CRIT] switch_loadable_module.c:871 switch_loadable_module_load_file() Error Loading module /usr/local/freeswitch/mod/mod_xml_curl.so **/usr/local/freeswitch/mod/mod_xml_curl.so: cannot open shared object file: No such file or directory** API CALL [load(mod_xml_curl)] output: -ERR [module load file routine returned an error] Thanks. _ From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Michael Jerris Sent: Wednesday, May 13, 2009 7:12 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Mod_xml_curl doesn't exists Trunk 13288 do you see any errors if you do a make ? Mike On May 13, 2009, at 8:56 AM, Saeed Ahmed wrote: Hi Tristan, No its not commented out. And strange thing is that it was working until I did make current today. Thanks for your response. _ From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Tristan Sent: Wednesday, May 13, 2009 2:15 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Mod_xml_curl doesn't exists Trunk 13288 Hi Saeed, Maybe you did not built it ? ( see in modules.conf if it's not commented out with a # ) Saeed Ahmed a écrit : Hi, I just did make current and FS failed to load xml_curl, I looked into mod/ dir but mod_xml_curl.so wasnt there. I even tried to copy it from src directory but somehow FS doesnt load it. What could be the problem? ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org 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 Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] Mod_xml_curl doesn't exists Trunk 13288
make current looks in modules.conf, check for typos.. and make sure there is no # in front of the line. You should see xml_int/mod_xml_curl Math On 14-May-09, at 12:52 PM, Saeed Ahmed wrote: Thanks Math, this has fixed the problem, but isn’t it strange that ‘make current’ is not doing it automatically? Many Thanks From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org ] On Behalf Of Mathieu Rene Sent: Thursday, May 14, 2009 11:48 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Mod_xml_curl doesn't exists Trunk 13288 try make mod_xml_curl-install Math On 14-May-09, at 11:46 AM, Saeed Ahmed wrote: Dear Mike, During ‘Make Current’ I see no errors, at the end I get successful installation message; I also tried to scroll up to see any possible errors but I guess there was nothing. I can see this message for mod_xml_cdr: making install mod_xml_cdr make[5]: Entering directory `/usr/src/freeswitch-svn/src/mod/xml_int/ mod_xml_cdr' make[6]: Entering directory `/usr/src/freeswitch-svn/src/mod/xml_int/ mod_xml_cdr' installing mod_xml_cdr.so make[6]: Leaving directory `/usr/src/freeswitch-svn/src/mod/xml_int/ mod_xml_cdr' make[5]: Leaving directory `/usr/src/freeswitch-svn/src/mod/xml_int/ mod_xml_cdr' but nothing for mod_xml_curl Again I copied mod_xml_curl.so to /mod directory and “load mod_xml_curl” but it says load mod_xml_curl 2009-05-14 11:48:12 [CRIT] switch_loadable_module.c:871 switch_loadable_module_load_file() Error Loading module /usr/local/ freeswitch/mod/mod_xml_curl.so **/usr/local/freeswitch/mod/mod_xml_curl.so: cannot open shared object file: No such file or directory** API CALL [load(mod_xml_curl)] output: -ERR [module load file routine returned an error] Thanks. From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org ] On Behalf Of Michael Jerris Sent: Wednesday, May 13, 2009 7:12 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Mod_xml_curl doesn't exists Trunk 13288 do you see any errors if you do a make ? Mike On May 13, 2009, at 8:56 AM, Saeed Ahmed wrote: Hi Tristan, No its not commented out. And strange thing is that it was working until I did ‘make current’ today. Thanks for your response. From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org ] On Behalf Of Tristan Sent: Wednesday, May 13, 2009 2:15 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Mod_xml_curl doesn't exists Trunk 13288 Hi Saeed, Maybe you did not built it ? ( see in modules.conf if it's not commented out with a # ) Saeed Ahmed a écrit : Hi, I just did ‘make current’ and FS failed to load xml_curl, I looked into mod/ dir but mod_xml_curl.so wasn’t there. I even tried to copy it from src directory but somehow FS doesn’t load it. What could be the problem? ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org 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 Freeswitch-users@lists.freeswitch.org 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 Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] Mod_xml_curl doesn't exists Trunk 13288
Yes it was commented in src directory, I dont know why? Because before it was working OK and I never changed it by myself. _ From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Mathieu Rene Sent: Thursday, May 14, 2009 12:56 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Mod_xml_curl doesn't exists Trunk 13288 make current looks in modules.conf, check for typos.. and make sure there is no # in front of the line. You should see xml_int/mod_xml_curl Math On 14-May-09, at 12:52 PM, Saeed Ahmed wrote: Thanks Math, this has fixed the problem, but isnt it strange that make current is not doing it automatically? Many Thanks _ From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Mathieu Rene Sent: Thursday, May 14, 2009 11:48 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Mod_xml_curl doesn't exists Trunk 13288 try make mod_xml_curl-install Math On 14-May-09, at 11:46 AM, Saeed Ahmed wrote: Dear Mike, During Make Current I see no errors, at the end I get successful installation message; I also tried to scroll up to see any possible errors but I guess there was nothing. I can see this message for mod_xml_cdr: making install mod_xml_cdr make[5]: Entering directory `/usr/src/freeswitch-svn/src/mod/xml_int/mod_xml_cdr' make[6]: Entering directory `/usr/src/freeswitch-svn/src/mod/xml_int/mod_xml_cdr' installing mod_xml_cdr.so make[6]: Leaving directory `/usr/src/freeswitch-svn/src/mod/xml_int/mod_xml_cdr' make[5]: Leaving directory `/usr/src/freeswitch-svn/src/mod/xml_int/mod_xml_cdr' but nothing for mod_xml_curl Again I copied mod_xml_curl.so to /mod directory and load mod_xml_curl but it says load mod_xml_curl 2009-05-14 11:48:12 [CRIT] switch_loadable_module.c:871 switch_loadable_module_load_file() Error Loading module /usr/local/freeswitch/mod/mod_xml_curl.so **/usr/local/freeswitch/mod/mod_xml_curl.so: cannot open shared object file: No such file or directory** API CALL [load(mod_xml_curl)] output: -ERR [module load file routine returned an error] Thanks. _ From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Michael Jerris Sent: Wednesday, May 13, 2009 7:12 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Mod_xml_curl doesn't exists Trunk 13288 do you see any errors if you do a make ? Mike On May 13, 2009, at 8:56 AM, Saeed Ahmed wrote: Hi Tristan, No its not commented out. And strange thing is that it was working until I did make current today. Thanks for your response. _ From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Tristan Sent: Wednesday, May 13, 2009 2:15 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Mod_xml_curl doesn't exists Trunk 13288 Hi Saeed, Maybe you did not built it ? ( see in modules.conf if it's not commented out with a # ) Saeed Ahmed a écrit : Hi, I just did make current and FS failed to load xml_curl, I looked into mod/ dir but mod_xml_curl.so wasnt there. I even tried to copy it from src directory but somehow FS doesnt load it. What could be the problem? ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org 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 Freeswitch-users@lists.freeswitch.org 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 Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] Mod_xml_curl doesn't exists Trunk 13288
do you see any errors if you do a make ? Mike On May 13, 2009, at 8:56 AM, Saeed Ahmed wrote: Hi Tristan, No its not commented out. And strange thing is that it was working until I did ‘make current’ today. Thanks for your response. From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org ] On Behalf Of Tristan Sent: Wednesday, May 13, 2009 2:15 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Mod_xml_curl doesn't exists Trunk 13288 Hi Saeed, Maybe you did not built it ? ( see in modules.conf if it's not commented out with a # ) Saeed Ahmed a écrit : Hi, I just did ‘make current’ and FS failed to load xml_curl, I looked into mod/ dir but mod_xml_curl.so wasn’t there. I even tried to copy it from src directory but somehow FS doesn’t load it. What could be the problem? ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] mod_xml_curl and basic authentication
I've just analyzed the header of the HTTP request made by Freeswitch, there's no Authorization section like Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ== it could be a bug On Sun, Nov 9, 2008 at 8:39 PM, MEHDi CHAABOUNi [EMAIL PROTECTED]wrote: Hi, I'm trying to fetch a dialplan using mod_xml_curl. The problem is that I can't get it to work when basic authentication is enabled in my webapp. I think that FS is not sending the Authentication in the header when making requests. Am I missing something? Is there something else that I should set beside adding the following line to the file xml_curl.conf.xml param name=gateway-credentials value=username:password/ here's my xml_curl.conf.xml: configuration name=xml_curl.conf description=cURL XML Gateway bindings binding name=dialplan fetcher param name=gateway-url value=http://localhost:8080/dialplan; bindings=dialplan/ param name=gateway-credentials value=root:root/ /binding /bindings /configuration Thanks ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] mod_xml_curl and basic authentication
How about in the response, typically the server would challenge for auth creds. Mike On Nov 10, 2008, at 12:17 PM, MEHDi CHAABOUNi wrote: I've just analyzed the header of the HTTP request made by Freeswitch, there's no Authorization section like Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ== it could be a bug On Sun, Nov 9, 2008 at 8:39 PM, MEHDi CHAABOUNi [EMAIL PROTECTED] wrote: Hi, I'm trying to fetch a dialplan using mod_xml_curl. The problem is that I can't get it to work when basic authentication is enabled in my webapp. I think that FS is not sending the Authentication in the header when making requests. Am I missing something? Is there something else that I should set beside adding the following line to the file xml_curl.conf.xml param name=gateway-credentials value=username:password/ here's my xml_curl.conf.xml: configuration name=xml_curl.conf description=cURL XML Gateway bindings binding name=dialplan fetcher param name=gateway-url value=http://localhost:8080/ dialplan bindings=dialplan/ param name=gateway-credentials value=root:root/ /binding /bindings /configuration Thanks ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org 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 Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
[Freeswitch-users] mod_xml_curl and basic authentication
Hi, I'm trying to fetch a dialplan using mod_xml_curl. The problem is that I can't get it to work when basic authentication is enabled in my webapp. I think that FS is not sending the Authentication in the header when making requests. Am I missing something? Is there something else that I should set beside adding the following line to the file xml_curl.conf.xml param name=gateway-credentials value=username:password/ here's my xml_curl.conf.xml: configuration name=xml_curl.conf description=cURL XML Gateway bindings binding name=dialplan fetcher param name=gateway-url value=http://localhost:8080/dialplan; bindings=dialplan/ param name=gateway-credentials value=root:root/ /binding /bindings /configuration Thanks ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
[Freeswitch-users] mod_xml_curl X.509 authentication
Hey everyone, I see that mod_xml_curl has an option to disable the CA cert check for use with HTTPS connections. Are there any options for configuring X.509 authentication? I imagine username/password, with HTTPS, with disabling CA checks works pretty well but I'd prefer full-blown X.509 with a CA, trusted certs, etc. I'm sure that curl/libcurl supports everything I'm looking for... Where does FreeSWITCH stand on this? Thanks! -- Kristian Kielhofner http://blog.krisk.org http://www.submityoursip.com http://www.astlinux.org http://www.star2star.com ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] mod_xml_curl X.509 authentication
If libcurl supports that then mod_xml_curl would need to be extended to support that feature. /b On Oct 11, 2008, at 9:01 PM, Kristian Kielhofner wrote: I'm sure that curl/libcurl supports everything I'm looking for... Where does FreeSWITCH stand on this? ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
[Freeswitch-users] mod_xml_curl and user directory
Hello som phones have different fields for auth username and username. Freeswitch sends the auth-username when requesting the directory, but then registers the user using the regular username. For me this is a problem, since I generate dialplans dynamically in my app using the info sent in the fetch directory request. Is it possible that FS can send both names when it requests the directory for a user? Thanks, Jonas ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org