In the console I get errors
2015-03-05 17:03:18.232604 [ERR] ei_helpers.c:274 Invalid process type!

What is the process uset there?

On Thu, Mar 5, 2015 at 3:00 PM, Sergey Safarov <s.safarov@gmail.com> wrote:
I want to receive events from the erlang module and for that execute the following commands

[root@fs1 xml]# erl -sname test -setcookie ClueCon
Erlang/OTP 17 [erts-6.2.1] [source] [64-bit] [smp:2:2] [async-threads:10] [hipe] [kernel-poll:false]

Eshell V6.2.1  (abort with ^G)
(test@fs1)1>  {foo, fs1@fs1} ! {event, 'CHANNEL_CREATE'}, receive Y -> Y after 1000 -> timeout end. 
ok
(test@fs1)2> 


And second way
[root@fs1 xml]# erl -sname test -setcookie ClueCon
Erlang/OTP 17 [erts-6.2.1] [source] [64-bit] [smp:2:2] [async-threads:10] [hipe] [kernel-poll:false]

Eshell V6.2.1  (abort with ^G)
(test@fs1)1>  {foo, fs1@fs1} ! {event, 'ALL'}.
{event,'ALL'}
(test@fs1)2> receive Y -> Y after 1000 -> timeout end.
ok
(test@fs1)3>

And I can not get events.
What am I doing wrong?

_________________________________________________________________________
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