[Freeswitch-users] xml_curl - Binding has no url

Peder peder at networkoblivion.com
Mon May 24 07:34:15 PDT 2010


Same result.  I can telnet from the box itself and I get a result, although
I am not seeing the fields filled up as I am not sending any info in the
request, but it confirms that the web server is responding.  Again, note
that when FS loads, or I try to manually load the module, there are no
entries in the web server logs indicating that FS is even requesting info
from the web server.

 

 

root at AS-TEST-A:/usr/local/freeswitch/conf/autoload_configs# telnet localhost
80

 

Trying 127.0.0.1...

Connected to localhost.

Escape character is '^]'.

get /directory.php http/1.0

 

HTTP/1.1 200 OK

Date: Mon, 24 May 2010 14:31:49 GMT

Server: Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.9 with Suhosin-Patch

X-Powered-By: PHP/5.2.4-2ubuntu5.9

Content-Length: 898

Connection: close

Content-Type: text/html

 

Content-Type: text/xml

<?xml version="1.0"?>

<document type="freeswitch/xml">

<section name="directory" description="example_curl_directory">

  <domain name="192.168.1.108">

    <user id="" mailbox="">

      <params>

        <param name="dial-string"
value="${sofia_contact(${dialed_user}@${dialed_domain})}"/>

        <param name="password" value=""/>

        <param name="vm-password" value=""/>

        <param name="email-addr" value=""/>

        <param name="vm-mailto" value=""/>

        <param name="vm-delete-file" value="1"/>

        <param name="vm-attach-file" value="1"/>

        <param name="vm-keep-local-after-email" value="0"/>

        <param name="vm-email-all-messages" value="1"/>

      </params>

      <variables>

        <variable name="user_context" value=""/>

        <variable name="accountcode" value=""/>

      </variables>

    </user>

  </domain>

</section>

</document>

Connection closed by foreign host.

 

 

 

 

 

From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Erwin
Davis
Sent: Monday, May 24, 2010 9:18 AM
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] xml_curl - Binding has no url

 

Hmmm, try to replace value = "http://localhost:80/directory.php".  My
understanding is that the value indicates the program to process the
incoming request. 

On Mon, May 24, 2010 at 10:06 AM, Peder <peder at networkoblivion.com> wrote:

The web server is running and the files are setup to return the correct
values, but I am not seeing any access to the webserver from FS.  If I bring
it up in my web browser, I see access_log entries, but nothing when FS
starts up.

 

 

From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Erwin
Davis
Sent: Monday, May 24, 2010 8:55 AM
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] xml_curl - Binding has no url

 

I got the same error before. But once I ran the server on the configured
port and send back some NO result responses to the initial request from FS.
The error was gone.

On Mon, May 24, 2010 at 9:45 AM, Peder <peder at networkoblivion.com> wrote:

I am trying to use xml_curl with directory and it is failing with this
message:

2010-05-24 08:38:46.333352 [ERR] mod_xml_curl.c:444 Binding has no url!
2010-05-24 08:38:46.333352 [CRIT] switch_loadable_module.c:882 Error Loading
module /usr/local/freeswitch/mod/mod_xml_curl.so
**Module load routine returned an error**


I am sure I am missing something, but I can't figure out what it is.  The
module is built:

ls -al /usr/local/freeswitch/mod/mod_xml_curl.so

-rwxr-xr-x 1 root root 1498152 2010-05-24 08:23
/usr/local/freeswitch/mod/mod_xml_curl.so


The config file looks ok from what I can tell:

cat /usr/local/freeswitch/conf/autoload_configs/xml_curl.conf.xml

<configuration name="xml_curl.conf" description="cURL XML Gateway">
 <bindings>
   <binding name="directory_lookup">
   <param name="directory.php" value="http://localhost:80"
bindings="directory"/>
   </binding>
 </bindings>
</configuration>


I've stopped and started FS multiple times and still the same error on
startup and if I try and manually load the module with "load
mod_xml_curl.so".  Any ideas?  I am sure it is something dumb, but I just
can't see it.



_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users at 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 at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100524/d273b0d5/attachment-0001.html 


More information about the FreeSWITCH-users mailing list