[Freeswitch-users] trying mod_erlang_event

Timur Irmatov irmatov at gmail.com
Thu Sep 3 04:24:16 PDT 2009


Hi,


I have installed FreeSWITCH and mod_erlang_event. Now I'm trying to
receive events from FreeSWITCH through mod_erlang_event. Simple
command like 'api status' works, but I cannot receive events from
FreeSWTICH:

erl -sname test at localhost
Erlang (BEAM) emulator version 5.6.3 [source] [async-threads:0]
[kernel-poll:false]

Eshell V5.6.3  (abort with ^G)
(test at localhost)1> {foo, freeswitch at localhost} ! {api, status, ""}.
{api,status,[]}
(test at localhost)2> receive X -> X after 10000 -> timeout end.
{ok,"UP 0 years, 0 days, 0 hours, 5 minutes, 10 seconds, 886
milliseconds, 421 microseconds\n0 session(s) since startup\n0
session(s) 0/30\n1000 session(s) max\n"}
(test at localhost)3> {foo, freeswitch at localhost} ! {event, 'ALL'}.
{event,'ALL'}
(test at localhost)4> receive Y -> Y after 10000 -> timeout end.
ok
(test at localhost)5> receive Y -> Y after 10000 -> timeout end.
timeout
(test at localhost)6> receive Y -> Y after 10000 -> timeout end.
timeout
(test at localhost)7>

Do I miss something obvious? Thanks in advance for any suggestions.


-- 
Timur Irmatov, xmpp:irmatov at jabber.ru




More information about the FreeSWITCH-users mailing list