š
š
I get this error response when doing various commands to do with communication back to the freeswitch server
š
Content-Type: command/reply
Reply-Text: -ERR command not found
š
š
The question is, on outbound socket connection from freewitch to an php script run by ivrd is this a connection able to receive all commands back
from the client.
š
On my attempts so far it has not worked on various commonds such as events, api
it fails with the above
š
Is it meant to work or am I doing something wrong?
š
š
š
22.07.2015, 18:25, "jaflong jaflong" <jaflong@yandex.com>:
š
š
I am usingoutbount event socket but cannot get it to work

-----------------------------------

require_once('ESL.php');

$audio_location = "/usr/local/freeswitch/sounds/";
$music = $audio_location . "demo.wav";

$conn = new ESLconnection(0);

$conn->execute("answer");

$conn->events("plain","all");


while ($conn->connected() == 1) {

šš š$e = $conn->recvEvent();
šš šif ($e) {
šš ššš š$arrEvent = eventParse($e);

šš š} else {


šš š}
šš š
}

-----------------------------------

This does not work, give response

event plain all

Content-Type: command/reply
Reply-Text: -ERR command not found

š
22.07.2015, 18:00, "Brian West" <brian@freeswitch.org>:
You may wish to try using outbound event socket if thats what you're wising to accomplish.

On Wed, Jul 22, 2015 at 9:55 AM, jaflong jaflong <jaflong@yandex.com> wrote:
I have a php script run by ivrd, is it possible to subscribe to
events on this outbound eslconnection

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.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


š
--

Brian West
brian@freeswitch.org


Twitter: @FreeSWITCH , @briankwest
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com

Got Bugs? Report them here! | Reddit:š/r/freeswitch

T:+19184209001 | F:+19184209002 | M:+1918424WEST (9378)
iNUM:+883 5100 1420 9001 |šISN:410*543 |šSkype:briankwest

,

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.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

,

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.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