<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19019">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Marc,</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>depend how php has been compiled.</FONT></DIV>
<DIV><FONT size=2>did you compile yourself ?</FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=marcdecorny@gmail.com href="mailto:marcdecorny@gmail.com">Marc de
Corny</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=freeswitch-users@lists.freeswitch.org
href="mailto:freeswitch-users@lists.freeswitch.org">FreeSWITCH Users Help</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Sunday, April 10, 2011 3:04
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Freeswitch-users] ESL with
PHP not working</DIV>
<DIV><BR></DIV>Hi Michael,
<DIV><BR></DIV>
<DIV>thanks for your help. Yes that's what I thought, so I added a test on
connected() and realised it was not connecting. I also took a tcpdump on both
servers and could not see any packets being sent. It looks as if it is stuck
on the php server, but don't know where to start looking.</DIV>
<DIV><BR></DIV>
<DIV>If there were information missing in php.ini would it work from the
command line ?</DIV>
<DIV>Is there a break down of what that phpmod_install does so that I
can do back and check each step?</DIV>
<DIV><BR></DIV>
<DIV>Thanks</DIV>
<DIV>Marc<BR><BR>
<DIV class=gmail_quote>On Sun, Apr 10, 2011 at 12:22 AM, Michael Collins <SPAN
dir=ltr><<A
href="mailto:msc@freeswitch.org">msc@freeswitch.org</A>></SPAN> wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote><BR><BR>
<DIV class=gmail_quote>
<DIV class=im>On Fri, Apr 8, 2011 at 1:08 PM, Marc de Corny <SPAN
dir=ltr><<A href="mailto:marcdecorny@gmail.com"
target=_blank>marcdecorny@gmail.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>Hi all
<DIV><BR></DIV>
<DIV>got an issue with ESL I cannot figure out.</DIV>
<DIV><BR></DIV>
<DIV>I have installed enabled the event socket on the Freeswitch, and it
works locally on the server via PHP</DIV>
<DIV><BR></DIV>
<DIV>I have a remote server were I compiled the ESL.so and did the
php-install. It is a standard CentOS install with apache.</DIV>
<DIV>when I type into the command line : php test.php
( the standard test script that is api status ) I get the correct
result.</DIV>
<DIV>when I execute the same script from the browser on the remote server
I get an error on the getBody command.</DIV>
<DIV><SPAN
style="FONT-FAMILY: 'Times New Roman'; FONT-SIZE: medium"><B>Fatal
error</B></SPAN><SPAN
style="FONT-FAMILY: 'Times New Roman'; FONT-SIZE: medium">: Call to a
member function getBody() on a non-object in</SPAN><SPAN
style="FONT-FAMILY: 'Times New Roman'; FONT-SIZE: medium"> </SPAN><SPAN
style="FONT-FAMILY: 'Times New Roman'; FONT-SIZE: medium"><B>/var/www/html/test.php</B></SPAN><SPAN
style="FONT-FAMILY: 'Times New Roman'; FONT-SIZE: medium"> </SPAN><SPAN
style="FONT-FAMILY: 'Times New Roman'; FONT-SIZE: medium">on
line</SPAN><SPAN
style="FONT-FAMILY: 'Times New Roman'; FONT-SIZE: medium"> </SPAN><SPAN
style="FONT-FAMILY: 'Times New Roman'; FONT-SIZE: medium"><B>9</B></SPAN></DIV>
<DIV><BR></DIV></BLOCKQUOTE></DIV>
<DIV>This is the exact same error that occurs when the script fails to
connect to the FS event socket, so something must be different when you are
calling this from a script. Can you confirm that the script is actually
trying to connect to the FreeSWITCH server? I don't know much about
debugging PHP, but at the very least you could do a tcpdump on the server
running the php script and confirm that the ESL connection is being
attempted, whether it is successful, etc. </DIV>
<DIV><BR></DIV><FONT color=#888888>
<DIV>-MC</DIV></FONT></DIV><BR>_______________________________________________<BR>FreeSWITCH-users
mailing list<BR><A
href="mailto:FreeSWITCH-users@lists.freeswitch.org">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></BLOCKQUOTE></DIV><BR></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>FreeSWITCH-users
mailing
list<BR>FreeSWITCH-users@lists.freeswitch.org<BR>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<BR>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<BR>http://www.freeswitch.org<BR></BLOCKQUOTE></BODY></HTML>