[Freeswitch-users] esl is not working in browser

Saeed Ahmed saeedahmad1981 at gmail.com
Thu Oct 11 20:54:05 MSD 2012


disabling selinux should do the trick.

On Thu, Oct 11, 2012 at 5:51 PM, Shahzad Bhatti <shahzad.bhatti at g-r-v.com>wrote:

> Thanks Muhammad Naseer Bhatti for the reply,
>
> i follow the procedure but unable to localte the problem why browser is
> not working with ESL, i have check phpinfo() and esl is there, and one more
> thing i also install on my other machine there its working, with the same
> procedure but when i try to another machine same problem is also there. i
> want to know the exact reason why ESL is not working on my machine as i
> test on other system where it works but not on my machine.
>
> and the main thing is ESL is working on console but not working in browser.
>
> any reply will be appreciated.
>
> Regards
>
> Shahzad Bhatti.
>
>
> On Thu, Oct 11, 2012 at 12:53 AM, <
> freeswitch-users-request at lists.freeswitch.org> wrote:
>
>> Send FreeSWITCH-users mailing list submissions to
>>         freeswitch-users at lists.freeswitch.org
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>         http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> or, via email, send a message with subject or body 'help' to
>>         freeswitch-users-request at lists.freeswitch.org
>>
>> You can reach the person managing the list at
>>         freeswitch-users-owner at lists.freeswitch.org
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of FreeSWITCH-users digest..."
>>
>> Today's Topics:
>>
>>    1. Re: sofia recover not working in latest GIT (Vik Killa)
>>    2. Re: sofia recover not working in latest GIT (Anthony Minessale)
>>    3. Re: sofia recover not working in latest GIT (Vik Killa)
>>    4. Controlling the caller ID (D'Arcy J.M. Cain)
>>    5. Re: esl is not working in browser (Muhammad Naseer Bhatti)
>>
>>
>> ---------- Forwarded message ----------
>> From: Vik Killa <vipkilla at gmail.com>
>> To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
>> Cc:
>> Date: Wed, 10 Oct 2012 14:39:04 -0400
>> Subject: Re: [Freeswitch-users] sofia recover not working in latest GIT
>> I just tested on 1 box with GIT a7cb382
>> It appeared to recover the calls but no audio was transmitted and once
>> one leg hung up the other was not terminated. I posted on here just to
>> see if others could replicate the problem in order to verify it may be
>> a bug.
>>
>> On Wed, Oct 10, 2012 at 1:47 PM, Anthony Minessale
>> <anthony.minessale at gmail.com> wrote:
>> > I dont have 2 boxes labbed up but doing it on one box works fine.
>> > You are saying it worked one revision before the one you quoted?
>> >
>> > Why are you posting what you think is a bug on the mailing list instead
>> of
>> > jira?
>> > You have been here for years, I am sure you must have seen one of the
>> 2000
>> > pleads..
>> >
>>
>>
>>
>>
>> ---------- Forwarded message ----------
>> From: Anthony Minessale <anthony.minessale at gmail.com>
>> To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
>> Cc:
>> Date: Wed, 10 Oct 2012 13:50:08 -0500
>> Subject: Re: [Freeswitch-users] sofia recover not working in latest GIT
>> I was able to make a call and fail and recover it 5 times in a row with
>> latest GIT HEAD.
>>
>>
>>
>> On Wed, Oct 10, 2012 at 1:39 PM, Vik Killa <vipkilla at gmail.com> wrote:
>>
>>> I just tested on 1 box with GIT a7cb382
>>> It appeared to recover the calls but no audio was transmitted and once
>>> one leg hung up the other was not terminated. I posted on here just to
>>> see if others could replicate the problem in order to verify it may be
>>> a bug.
>>>
>>> On Wed, Oct 10, 2012 at 1:47 PM, Anthony Minessale
>>> <anthony.minessale at gmail.com> wrote:
>>> > I dont have 2 boxes labbed up but doing it on one box works fine.
>>> > You are saying it worked one revision before the one you quoted?
>>> >
>>> > Why are you posting what you think is a bug on the mailing list
>>> instead of
>>> > jira?
>>> > You have been here for years, I am sure you must have seen one of the
>>> 2000
>>> > pleads..
>>> >
>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>> 
>>> 
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://wiki.freeswitch.org
>>> http://www.cluecon.com
>>>
>>> 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
>>>
>>
>>
>>
>> --
>> Anthony Minessale II
>>
>> FreeSWITCH http://www.freeswitch.org/
>> ClueCon http://www.cluecon.com/
>> Twitter: http://twitter.com/FreeSWITCH_wire
>>
>> AIM: anthm
>> MSN:anthony_minessale at hotmail.com
>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
>> IRC: irc.freenode.net #freeswitch
>>
>> FreeSWITCH Developer Conference
>> sip:888 at conference.freeswitch.org
>> googletalk:conf+888 at conference.freeswitch.org
>> pstn:+19193869900
>>
>>
>> ---------- Forwarded message ----------
>> From: Vik Killa <vipkilla at gmail.com>
>> To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
>> Cc:
>> Date: Wed, 10 Oct 2012 15:02:23 -0400
>> Subject: Re: [Freeswitch-users] sofia recover not working in latest GIT
>> Strange, I wonder if it's related to my Debian install. I'll try on
>> CentOS 6.3
>>
>> On Wed, Oct 10, 2012 at 2:50 PM, Anthony Minessale
>> <anthony.minessale at gmail.com> wrote:
>> > I was able to make a call and fail and recover it 5 times in a row with
>> > latest GIT HEAD.
>> >
>>
>>
>>
>>
>> ---------- Forwarded message ----------
>> From: "D'Arcy J.M. Cain" <darcy at Vex.Net>
>> To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
>> Cc:
>> Date: Wed, 10 Oct 2012 15:34:45 -0400
>> Subject: [Freeswitch-users] Controlling the caller ID
>> I have Google and the mailing list but so far no joy.  Basically all I
>> want to do is prevent users from setting their own caller ID and name.
>> >From the mailing list I saw something like this:
>>
>>   <user id="4165551212" mailbox="4165551212">
>>     <params>
>>       <param name="password" value="password"/>
>>       <param name="vm-password" value="1234"/>
>>     </params>
>>     <variables>
>>       <variable name="accountcode" value="4165551212"/>
>>       <variable name="user_context" value="default"/>
>>       <variable name="effective_caller_id_name" value="User
>>   Name"/> <variable name="effective_caller_id_number"
>>   value="4165551212"/> <variable name="outbound_caller_id_name"
>>   value="User Name"/> <variable name="outbound_caller_id_number"
>>   value="4165551212"/> </variables>
>>   </user>
>>
>> And in the default dialplan:
>>
>> <include>
>>   <extension name="mygateway">
>>     <condition field="destination_number" expression="^1?(\d{10})\d*$">
>>       <action application="set"
>>         data="effective_caller_id_number=${outbound_caller_id_number}"/>
>>       <action application="set"
>>         data="effective_caller_id_name=${outbound_caller_id_name}"/>
>>       <action application="bridge" data="sofia/gateway/mygateway/$1"/>
>>     </condition>
>>   </extension>
>> </include>
>>
>> But this still sends the name and ID from the VoIP adapter.  Am I
>> missing something?
>>
>> Thanks for all help.
>>
>> --
>> D'Arcy J.M. Cain
>> System Administrator, Vex.Net
>> http://www.Vex.Net/ IM:darcy at Vex.Net
>>
>>
>>
>>
>>
>> ---------- Forwarded message ----------
>> From: Muhammad Naseer Bhatti <nbhatti at gmail.com>
>> To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
>> Cc:
>> Date: Wed, 10 Oct 2012 22:53:01 +0300
>> Subject: Re: [Freeswitch-users] esl is not working in browser
>>
>> Take a look at this
>> http://wiki.freeswitch.org/wiki/Event_Socket_Library#Installation and
>> once compiled, install it manually or make phpmod-install. Make sure ESL.so
>> is loaded in your php.ini
>>
>> Thanks,
>> --
>> Muhammad Naseer Bhatti
>>
>>
>>
>> On Oct 10, 2012, at 9:02 PM, Anthony Minessale <
>> anthony.minessale at gmail.com> wrote:
>>
>> It comes with a .so file that is loaded, I doubt you can use it from your
>> browser.
>>
>>
>> On Wed, Oct 10, 2012 at 12:59 PM, Shahzad Bhatti <
>> shahzad.bhatti at g-r-v.com> wrote:
>>
>>> Hi Everybody,
>>>
>>> i am trying to use esl through my browser but unable to while my same
>>> script is running from console my test.php code is as follows:
>>>
>>> *test.php*
>>> *
>>> *
>>> *<?php*
>>> *
>>> *
>>> *require_once('ESL.php');*
>>> *
>>> *
>>> *$command = "originate
>>> {ignore_early_media=true,origination_caller_id_number=1111}sofia/internal/1000%192.168.0.21
>>> &park()";*
>>> *$sock = new ESLconnection('localhost', '8021', 'ClueCon');*
>>> *if($sock->connected())  $result = "Connected";       else    $result =
>>> "unable to connect";*
>>> *
>>> *
>>> *echo "This is a message: ".$result;*
>>> *
>>> *
>>> *?>*
>>> *
>>> *
>>> when i execute the above script from console it output* This is a
>>> message: Connected *but when i hit the page from browser then output is
>>> *This is a message: unable to connect.*
>>> i also try *chmod 777 test.php *to ensure that there is no permission
>>> issue and also use host as 0.0.0.0 , 127.0.0.1.
>>> and also check after restart appache and even reboot my machine
>>> i am using *CentOS 6.3 *and freeswitch version is* **FreeSWITCH Version
>>> 1.3.0+git~20121004T132926Z~3d57cbda98 (git 3d57cbd 2012-10-04 13:29:26Z)
>>> *
>>> and also view the appache error log and freeswitch log but not find any
>>> thing in it regarding this problem.
>>> my event_socket.conf and acl.conf is default no change in it.
>>>
>>> help me to know why this is not working, and your response is
>>> appreciated.
>>>
>>> Regards,
>>>
>>> Shahzad Bhtti.
>>>
>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>> 
>>> 
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://wiki.freeswitch.org
>>> http://www.cluecon.com
>>>
>>> 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
>>>
>>>
>>
>>
>> --
>> Anthony Minessale II
>>
>> FreeSWITCH http://www.freeswitch.org/
>> ClueCon http://www.cluecon.com/
>> Twitter: http://twitter.com/FreeSWITCH_wire
>>
>> AIM: anthm
>> MSN:anthony_minessale at hotmail.com
>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
>> IRC: irc.freenode.net #freeswitch
>>
>> FreeSWITCH Developer Conference
>> sip:888 at conference.freeswitch.org
>> googletalk:conf+888 at conference.freeswitch.org
>> pstn:+19193869900
>>  _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> 
>> 
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> 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
>>
>>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> 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/20121011/a79a9090/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list