[Freeswitch-users] new socket module

Jonas Gauffin jonas.gauffin at gmail.com
Fri Mar 21 01:30:37 PDT 2008


Hello,

I'm trying to do a new socket module and I got a problem that is driving me mad.
It's probably a really stupid thing.

I got a (tcp) server that the module connects to. Then it sends a
"hello" message that the server responds to.
The module reads the response OK, but after that everything fails with
error 730038 ("An operation was attempted on something that is not a
socket.").

I can't understand why, the socket descriptor is the same all the time.

Got any general hints on what might cause it?


2008-03-21 09:23:59 [DEBUG] mod_ivr_socket.c:859 ivr_socket()
Connecting to: localhost:8123.
2008-03-21 09:23:59 [DEBUG] mod_ivr_socket.c:639 socket_send_event()
send 'event;session;voicemail;sofia/default/jonas at 192.168.0.58:5060;acf42337-a1ad-f84e-af01-4b7c633840dc;XML;CS_EXECUTE;jonas;jonas
 gaff;192.168.0.58;;;8331;
', len 152 on 21485136
2008-03-21 09:23:59 [DEBUG] mod_ivr_socket.c:641 socket_send_event()
Bytes sent 152
2008-03-21 09:23:59 [DEBUG] mod_ivr_socket.c:708 socket_read()
Reading, buffersize 4195 bytes from 21485136.
2008-03-21 09:23:59 [DEBUG] mod_ivr_socket.c:713 socket_read() Bytes
received 15.
2008-03-21 09:23:59 [DEBUG] mod_ivr_socket.c:775 socket_loop() Read:
action;answer;

2008-03-21 09:23:59 [DEBUG] mod_ivr_socket.c:708 socket_read()
Reading, buffersize 4195 bytes from 21485136.
2008-03-21 09:23:59 [DEBUG] mod_ivr_socket.c:713 socket_read() Bytes received 0.
2008-03-21 09:23:59 [ERR] mod_ivr_socket.c:717 socket_read() socket
receive failed: 730038.

//Jonas




More information about the FreeSWITCH-users mailing list