Re: [Freeswitch-users] mod_erlang_event compile problem

2009-02-24 Thread Leon de Rooij
Andrew,

I think you're right, packets are indeed sent to 172.31.0.13 while  
mod_erlang_event is listening at 127.0.0.1 ! Why didn't I see that ! ;-)

Will test it now and let you know how it goes..

regards,

Leon

On Feb 24, 2009, at 1:22 AM, Andrew Thompson wrote:

 Leon,

 I think I found the problem. I shouldn't have been defaulting to  
 binding
 to 127.0.0.1, instead the default should be 0.0.0.0. I've patched the
 module to actually bind to 0.0.0.0 correctly and made it the default  
 in
 the config file. Erlang nodes by default bind to 0.0.0.0, so I decided
 to make mod_erlang_event follow suit.

 Please give that a shot and see if it fixes things.

 Andrew

 ___
 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


___
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


Re: [Freeswitch-users] mod_erlang_event compile problem

2009-02-24 Thread Leon de Rooij
Well, this works, I feel a bit stupid now :-] Now it's time to play  
with it..

Thanks a lot !

kind regards,

Leon


On Feb 24, 2009, at 1:22 AM, Andrew Thompson wrote:

 Leon,

 I think I found the problem. I shouldn't have been defaulting to  
 binding
 to 127.0.0.1, instead the default should be 0.0.0.0. I've patched the
 module to actually bind to 0.0.0.0 correctly and made it the default  
 in
 the config file. Erlang nodes by default bind to 0.0.0.0, so I decided
 to make mod_erlang_event follow suit.

 Please give that a shot and see if it fixes things.

 Andrew

 ___
 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


___
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


Re: [Freeswitch-users] mod_erlang_event compile problem

2009-02-24 Thread Andrew Thompson
On Tue, Feb 24, 2009 at 10:49:24AM +0100, Leon de Rooij wrote:
 Well, this works, I feel a bit stupid now :-] Now it's time to play  
 with it..


Nah, bad choice of defaults on my part. Defaulting to 0.0.0.0 is much
more consistant and compatible. For some reason I was trying to emulate
the event socket, not an erlang node. Thanks for finally making me solve
the problem instead of just working around it.

Andrew

___
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


Re: [Freeswitch-users] mod_erlang_event compile problem

2009-02-23 Thread Leon de Rooij
Hi Andrew,

Everything is running on an Ubuntu Hardy Xen domu with kernel  
2.6.24-23-xen.

Erlang is version R12B5 and was compiled from source with options -- 
enable-hipe, --enable-smp-support en --enable-threads.

FS is trunk version 12197.

I did copy the configuration file to ~freeswitch/conf/autoload_configs

Also, I just checked the 'empd -names', after both FS and an erl shell  
have been started:

r...@erlyfs:~# epmd -names
epmd: up and running on port 4369 with data:
name ldr at port 57114
name freeswitch at port 8031

So that should be fine..

  I also tried loading mod_erlang_event from modules.conf, and  
starting FS as root, but - not surprisingly - that didn't make any  
difference.

I've been looking in wireshark, what exactly is going over the line,  
and the strange thing is, that erl opens a TCP connection, a SYN  
packet is sent to FS, after which FS immediately returns an RST/ACK  
packet and thus closes the connection.. I still don't see anything in  
the FS CLI.

Is there anything I can do to get more verbose output from FS - esp  
info about why the connection was closed ?

thanks,

Leon

On Feb 23, 2009, at 1:12 AM, Andrew Thompson wrote:

 Leon,

 I can't replicate your issue, at the very least I'd expect you to see
 the Ignorable error in ei_accept - probable bad client version, bad
 cookie or bad nodename warning. What OS/Erlang version are you using?

 Andrew

 ___
 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


___
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


Re: [Freeswitch-users] mod_erlang_event compile problem

2009-02-23 Thread Andrew Thompson
On Mon, Feb 23, 2009 at 11:09:28AM +0100, Leon de Rooij wrote:
 Everything is running on an Ubuntu Hardy Xen domu with kernel  
 2.6.24-23-xen.

Oh, this might explain some things..
 
 Erlang is version R12B5 and was compiled from source with options -- 
 enable-hipe, --enable-smp-support en --enable-threads.
 

I'm running this too.
 FS is trunk version 12197.
 
Fine too.

 I did copy the configuration file to ~freeswitch/conf/autoload_configs
 
 Also, I just checked the 'empd -names', after both FS and an erl shell  
 have been started:
 
 r...@erlyfs:~# epmd -names
 epmd: up and running on port 4369 with data:
 name ldr at port 57114
 name freeswitch at port 8031
 
 So that should be fine..
 
Yes, that's correct.

   I also tried loading mod_erlang_event from modules.conf, and  
 starting FS as root, but - not surprisingly - that didn't make any  
 difference.
 
 I've been looking in wireshark, what exactly is going over the line,  
 and the strange thing is, that erl opens a TCP connection, a SYN  
 packet is sent to FS, after which FS immediately returns an RST/ACK  
 packet and thus closes the connection.. I still don't see anything in  
 the FS CLI.
 
 Is there anything I can do to get more verbose output from FS - esp  
 info about why the connection was closed ?


It looks like ei_accept_tmo is the one resetting the connection, not my
code. I can't even get an error out of it when, for example, I telnet to
port 8031, it just closes the connection instantly with no error to the
console. Is it possible that something is screwy with the loopback
device in a xen guest? Can you get normal erlang nodes on that host to
net_adm:ping each other?

Andrew

___
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


Re: [Freeswitch-users] mod_erlang_event compile problem

2009-02-23 Thread Andrew Thompson
Leon,

I think I found the problem. I shouldn't have been defaulting to binding
to 127.0.0.1, instead the default should be 0.0.0.0. I've patched the
module to actually bind to 0.0.0.0 correctly and made it the default in
the config file. Erlang nodes by default bind to 0.0.0.0, so I decided
to make mod_erlang_event follow suit.

Please give that a shot and see if it fixes things.

Andrew

___
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


Re: [Freeswitch-users] mod_erlang_event compile problem

2009-02-22 Thread Andrew Thompson
On Sat, Feb 21, 2009 at 03:42:24PM +0100, Leon de Rooij wrote:
 Hi Andrew,
 
 Thanks for your help so far, I hope you can help me a bit further as I  
 don't get any reply from the FS erlang node, or so it seems.. Here is  
 what I've done:
 
 - The erlang_event.conf.xml is unchanged:
 
 configuration name=erlang_event.conf description=Erlang Socket  
 Client
settings
  param name=listen-ip value=127.0.0.1/
  param name=listen-port value=8031/
  param name=nodename value=freeswitch/
  param name=cookie value=ClueCon/
  param name=shortname value=true/
  param name=encoding value=string/
/settings
 /configuration

You actually installed this to the right place? It's not installed by
default... The defaults *should* be sane anyway, but I'm just checking.
 
 - mod_erlang_event is not loaded in FS.
 
 - First I start epmd -d -d
 
 epmd: Sat Feb 21 13:12:56 2009: epmd running - daemon = 0
 epmd: Sat Feb 21 13:12:56 2009: try to initiate listening port 4369
 epmd: Sat Feb 21 13:12:56 2009: starting
 epmd: Sat Feb 21 13:12:56 2009: entering the main select() loop
 
 - After that I load mod_erlang_event in FS:
 
 2009-02-21 13:13:36 [DEBUG] mod_erlang_event.c:1324  
 mod_erlang_event_load() sections 16
 2009-02-21 13:13:36 [CONSOLE] switch_loadable_module.c:858  
 switch_loadable_module_load_file() Successfully Loaded  
 [mod_erlang_event]
 2009-02-21 13:13:36 [NOTICE] switch_loadable_module.c:240  
 switch_loadable_module_process() Adding Application 'erlang'
 2009-02-21 13:13:36 [NOTICE] switch_loadable_module.c:260  
 switch_loadable_module_process() Adding API Function 'erlang'
 2009-02-21 13:13:36 [DEBUG] mod_erlang_event.c:1401  
 mod_erlang_event_runtime() Socket up listening on 127.0.0.1:8031
 2009-02-21 13:13:36 [DEBUG] mod_erlang_event.c:1426  
 mod_erlang_event_runtime() Connected and published erlang cnode at  
 freeswi...@erlyfs
 
 - For which epmd gives the following output:
 
 epmd: Sat Feb 21 13:13:36 2009: opening connection on file descriptor 4
 epmd: Sat Feb 21 13:13:36 2009: got 25 bytes
 *   00 17 78 1f 5f 68 00 00  05 00 01 00 0a 66 72 65   
 |..x._h...fre|
 * 0010  65 73 77 69 74 63 68 00  00   | 
 eswitch..|
 epmd: Sat Feb 21 13:13:36 2009: ** got ALIVE2_REQ
 epmd: Sat Feb 21 13:13:36 2009: registering 'freeswitch:1', port 8031
 epmd: Sat Feb 21 13:13:36 2009: type 104 proto 0 highvsn 5 lowvsn 1
 epmd: Sat Feb 21 13:13:36 2009: got 4 bytes
 *   79 00 00 01   |y...|
 epmd: Sat Feb 21 13:13:36 2009: ** sent ALIVE2_RESP for freeswitch
 
 - Then I start an erl shell on that same machine with erl -sname ldr - 
 setcookie ClueCon. Output of epmd:
 
 epmd: Sat Feb 21 13:16:24 2009: opening connection on file descriptor 5
 epmd: Sat Feb 21 13:16:24 2009: got 18 bytes
 *   00 10 78 8e 2c 4d 00 00  05 00 05 00 03 6c 64 72   
 |..x.,M...ldr|
 * 0010  00 00 |..|
 epmd: Sat Feb 21 13:16:24 2009: ** got ALIVE2_REQ
 epmd: Sat Feb 21 13:16:24 2009: registering 'ldr:1', port 36396
 epmd: Sat Feb 21 13:16:24 2009: type 77 proto 0 highvsn 5 lowvsn 5
 epmd: Sat Feb 21 13:16:24 2009: got 4 bytes
 *   79 00 00 01   |y...|
 epmd: Sat Feb 21 13:16:24 2009: ** sent ALIVE2_RESP for ldr
 
 As far as I understand the freeswi...@erlyfs node cannot be seen with  
 nodes() ? So does that mean that I also cannot net_adm:ping() it ?

Yes, it's a 'hidden' node, as all non-erlang nodes are. However, it
should be visible in the output of epmd -names.
 
 Anyway, I tried sending some tuples as is shown on the wiki, but I get  
 no reply:
 
 (l...@erlyfs)1 {foo, freeswi...@erlyfs} ! {api, status, }, receive X  
 - X after 1000 - timeout end.
 timeout
 (l...@erlyfs)2
 
 - Epmd gives some logs:
 
 epmd: Sat Feb 21 13:19:09 2009: opening connection on file descriptor 6
 epmd: Sat Feb 21 13:19:09 2009: got 13 bytes
 *   00 0b 7a 66 72 65 65 73  77 69 74 63 68
 |..zfreeswitch|
 epmd: Sat Feb 21 13:19:09 2009: ** got PORT2_REQ
 epmd: Sat Feb 21 13:19:09 2009: got 23 bytes
 *   77 00 1f 5f 68 00 00 05  00 01 00 0a 66 72 65 65  | 
 w.._h...free|
 * 0010  73 77 69 74 63 68 00  | 
 switch.|
 epmd: Sat Feb 21 13:19:09 2009: ** sent PORT2_RESP (ok) for freeswitch
 epmd: Sat Feb 21 13:19:09 2009: closing connection on file descriptor 6
 
 - And in tcpdump on lo, I see that epmd is contacted after which some  
 traffic was sent to FS:
 
 13:19:09.535293 IP 172.31.0.13.34678  172.31.0.13.4369: S  
 2875169966:2875169966(0) win 32792 mss 16396,sackOK,timestamp  
 17946545 0,nop,wscale 6
 ...
 13:19:09.536834 IP 172.31.0.13.4369  172.31.0.13.34678: . ack 15 win  
 512 nop,nop,timestamp 17946546 17946546
 13:19:09.536923 IP 172.31.0.13.47054  172.31.0.13.8031: S  
 2868322908:2868322908(0) win 32792 mss 16396,sackOK,timestamp  
 

Re: [Freeswitch-users] mod_erlang_event compile problem

2009-02-22 Thread Andrew Thompson
Leon,

I can't replicate your issue, at the very least I'd expect you to see
the Ignorable error in ei_accept - probable bad client version, bad
cookie or bad nodename warning. What OS/Erlang version are you using?

Andrew

___
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


Re: [Freeswitch-users] mod_erlang_event compile problem

2009-02-21 Thread Leon de Rooij
Hi Andrew,

Thanks for your help so far, I hope you can help me a bit further as I  
don't get any reply from the FS erlang node, or so it seems.. Here is  
what I've done:

- The erlang_event.conf.xml is unchanged:

configuration name=erlang_event.conf description=Erlang Socket  
Client
   settings
 param name=listen-ip value=127.0.0.1/
 param name=listen-port value=8031/
 param name=nodename value=freeswitch/
 param name=cookie value=ClueCon/
 param name=shortname value=true/
 param name=encoding value=string/
   /settings
/configuration

- mod_erlang_event is not loaded in FS.

- First I start epmd -d -d

epmd: Sat Feb 21 13:12:56 2009: epmd running - daemon = 0
epmd: Sat Feb 21 13:12:56 2009: try to initiate listening port 4369
epmd: Sat Feb 21 13:12:56 2009: starting
epmd: Sat Feb 21 13:12:56 2009: entering the main select() loop

- After that I load mod_erlang_event in FS:

2009-02-21 13:13:36 [DEBUG] mod_erlang_event.c:1324  
mod_erlang_event_load() sections 16
2009-02-21 13:13:36 [CONSOLE] switch_loadable_module.c:858  
switch_loadable_module_load_file() Successfully Loaded  
[mod_erlang_event]
2009-02-21 13:13:36 [NOTICE] switch_loadable_module.c:240  
switch_loadable_module_process() Adding Application 'erlang'
2009-02-21 13:13:36 [NOTICE] switch_loadable_module.c:260  
switch_loadable_module_process() Adding API Function 'erlang'
2009-02-21 13:13:36 [DEBUG] mod_erlang_event.c:1401  
mod_erlang_event_runtime() Socket up listening on 127.0.0.1:8031
2009-02-21 13:13:36 [DEBUG] mod_erlang_event.c:1426  
mod_erlang_event_runtime() Connected and published erlang cnode at  
freeswi...@erlyfs

- For which epmd gives the following output:

epmd: Sat Feb 21 13:13:36 2009: opening connection on file descriptor 4
epmd: Sat Feb 21 13:13:36 2009: got 25 bytes
*   00 17 78 1f 5f 68 00 00  05 00 01 00 0a 66 72 65   
|..x._h...fre|
* 0010  65 73 77 69 74 63 68 00  00   | 
eswitch..|
epmd: Sat Feb 21 13:13:36 2009: ** got ALIVE2_REQ
epmd: Sat Feb 21 13:13:36 2009: registering 'freeswitch:1', port 8031
epmd: Sat Feb 21 13:13:36 2009: type 104 proto 0 highvsn 5 lowvsn 1
epmd: Sat Feb 21 13:13:36 2009: got 4 bytes
*   79 00 00 01   |y...|
epmd: Sat Feb 21 13:13:36 2009: ** sent ALIVE2_RESP for freeswitch

- Then I start an erl shell on that same machine with erl -sname ldr - 
setcookie ClueCon. Output of epmd:

epmd: Sat Feb 21 13:16:24 2009: opening connection on file descriptor 5
epmd: Sat Feb 21 13:16:24 2009: got 18 bytes
*   00 10 78 8e 2c 4d 00 00  05 00 05 00 03 6c 64 72   
|..x.,M...ldr|
* 0010  00 00 |..|
epmd: Sat Feb 21 13:16:24 2009: ** got ALIVE2_REQ
epmd: Sat Feb 21 13:16:24 2009: registering 'ldr:1', port 36396
epmd: Sat Feb 21 13:16:24 2009: type 77 proto 0 highvsn 5 lowvsn 5
epmd: Sat Feb 21 13:16:24 2009: got 4 bytes
*   79 00 00 01   |y...|
epmd: Sat Feb 21 13:16:24 2009: ** sent ALIVE2_RESP for ldr

As far as I understand the freeswi...@erlyfs node cannot be seen with  
nodes() ? So does that mean that I also cannot net_adm:ping() it ?

Anyway, I tried sending some tuples as is shown on the wiki, but I get  
no reply:

(l...@erlyfs)1 {foo, freeswi...@erlyfs} ! {api, status, }, receive X  
- X after 1000 - timeout end.
timeout
(l...@erlyfs)2

- Epmd gives some logs:

epmd: Sat Feb 21 13:19:09 2009: opening connection on file descriptor 6
epmd: Sat Feb 21 13:19:09 2009: got 13 bytes
*   00 0b 7a 66 72 65 65 73  77 69 74 63 68
|..zfreeswitch|
epmd: Sat Feb 21 13:19:09 2009: ** got PORT2_REQ
epmd: Sat Feb 21 13:19:09 2009: got 23 bytes
*   77 00 1f 5f 68 00 00 05  00 01 00 0a 66 72 65 65  | 
w.._h...free|
* 0010  73 77 69 74 63 68 00  | 
switch.|
epmd: Sat Feb 21 13:19:09 2009: ** sent PORT2_RESP (ok) for freeswitch
epmd: Sat Feb 21 13:19:09 2009: closing connection on file descriptor 6

- And in tcpdump on lo, I see that epmd is contacted after which some  
traffic was sent to FS:

13:19:09.535293 IP 172.31.0.13.34678  172.31.0.13.4369: S  
2875169966:2875169966(0) win 32792 mss 16396,sackOK,timestamp  
17946545 0,nop,wscale 6
...
13:19:09.536834 IP 172.31.0.13.4369  172.31.0.13.34678: . ack 15 win  
512 nop,nop,timestamp 17946546 17946546
13:19:09.536923 IP 172.31.0.13.47054  172.31.0.13.8031: S  
2868322908:2868322908(0) win 32792 mss 16396,sackOK,timestamp  
17946546 0,nop,wscale 6
13:19:09.536935 IP 172.31.0.13.8031  172.31.0.13.47054: R 0:0(0) ack  
2868322909 win 0

Shouldn't FS then send a message back to the process in my erl shell ?

I tried logging all events in fs_cli, by entering /event plain all,  
but I see no events at all coming from erlang, just some heartbeats..

Also, I recompiled the module with EI_DEBUG defined as suggested on  
the wiki. Still I don't see anything in the CLI 

[Freeswitch-users] mod_erlang_event compile problem

2009-02-20 Thread Leon de Rooij
Hi,

I wanted to try out the mod_erlang_event module. I have Erlang R12B5  
compiled and it's in the same location as the Makefile specifies (/usr/ 
local/lib/erlang/...), but running make in the src/mod/event_handlers/ 
mod_erlang_event goes wrong:

Compiling handle_msg.c...
cc1: warnings being treated as errors
handle_msg.c: In function 'handle_msg_sendmsg':
handle_msg.c:429: warning: the address of 'uuid' will always evaluate  
as 'true'
handle_msg.c: In function 'handle_msg_handlecall':
handle_msg.c:541: warning: the address of 'uuid_str' will always  
evaluate as 'true'
make[1]: *** [handle_msg.o] Error 1
make: *** [all] Error 1

At line 429 in handle_msg.c it says:

if (!switch_strlen_zero(uuid)  (session =  
switch_core_session_locate(uuid))) {

(at line 541 is the same problem)

Is this a bug ? I tried removing the first part ! 
switch_strlen_zero(uuid)  after which it compiles fine, but since I  
don't fully understand what's going on, I'm sure this is not the  
solution.. Also, after this, FS goes haywire after loading the module  
and spews out these messages continuously:

2009-02-20 14:15:48 [ERR] mod_erlang_event.c:1417  
mod_erlang_event_runtime() Failed to start empd manually
2009-02-20 14:15:48 [DEBUG] mod_erlang_event.c:1401  
mod_erlang_event_runtime() Socket up listening on 127.0.0.1:8031
2009-02-20 14:15:48 [WARNING] mod_erlang_event.c:1415  
mod_erlang_event_runtime() Failed to publish port to empd, trying to  
start empd manually
2009-02-20 14:15:48 [ERR] mod_erlang_event.c:1417  
mod_erlang_event_runtime() Failed to start empd manually
2009-02-20 14:15:48 [DEBUG] mod_erlang_event.c:1401  
mod_erlang_event_runtime() Socket up listening on 127.0.0.1:8031
2009-02-20 14:15:48 [WARNING] mod_erlang_event.c:1415  
mod_erlang_event_runtime() Failed to publish port to empd, trying to  
start empd manually
etc..

Can someone help me and point out what's wrong ?

thanks  kind regards,

Leon de Rooij


___
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


Re: [Freeswitch-users] mod_erlang_event compile problem

2009-02-20 Thread Andrew Thompson
On Fri, Feb 20, 2009 at 05:19:25PM +0100, Leon de Rooij wrote:
 Hi,
 
 I wanted to try out the mod_erlang_event module. I have Erlang R12B5  
 compiled and it's in the same location as the Makefile specifies (/usr/ 
 local/lib/erlang/...), but running make in the src/mod/event_handlers/ 
 mod_erlang_event goes wrong:
 

Yeah, this was a gcc4 thing, I've done most of my testing on gcc3 so it
didn't show up for me. Thanks to MikeJ for the fix suggestion.

 Also, after this, FS goes haywire after loading the module  
 and spews out these messages continuously:


You don't have the erlang port mapper daemon running (epmd).
mod_erlang_event needs it to be running in order to be able to register
itself as an erlang node. On your system; epmd isn't in $PATH so my
system() call that tries to start it fails. I've made the module init
system fail properly instead of looping indefinitely as well as print a
slightly more helpful error message now. Let me know if you have any
better luck :) The fix is in-tree as of r12192.

Thanks again for the bug report.

Andrew

___
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


Re: [Freeswitch-users] mod_erlang_event compile problem

2009-02-20 Thread Leon de Rooij
Hi Andrew,

Thanks! it compiles fine now.. Also thanks for the tip about empd, got  
it running without errors now :-)

regards,

Leon


On Feb 20, 2009, at 8:08 PM, Andrew Thompson wrote:

 On Fri, Feb 20, 2009 at 05:19:25PM +0100, Leon de Rooij wrote:
 Hi,

 I wanted to try out the mod_erlang_event module. I have Erlang R12B5
 compiled and it's in the same location as the Makefile specifies (/ 
 usr/
 local/lib/erlang/...), but running make in the src/mod/ 
 event_handlers/
 mod_erlang_event goes wrong:


 Yeah, this was a gcc4 thing, I've done most of my testing on gcc3 so  
 it
 didn't show up for me. Thanks to MikeJ for the fix suggestion.

 Also, after this, FS goes haywire after loading the module
 and spews out these messages continuously:


 You don't have the erlang port mapper daemon running (epmd).
 mod_erlang_event needs it to be running in order to be able to  
 register
 itself as an erlang node. On your system; epmd isn't in $PATH so my
 system() call that tries to start it fails. I've made the module init
 system fail properly instead of looping indefinitely as well as  
 print a
 slightly more helpful error message now. Let me know if you have any
 better luck :) The fix is in-tree as of r12192.

 Thanks again for the bug report.

 Andrew

 ___
 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


___
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