Hello, All! I'm trying to use openser as SIP-router and SEMS as voicemail/conference/etc. But then I tried it the following error occured then openSER tried to contact SEMS:
0(31580) ERROR: tsend_datagram_ev: failed to send: (12) Cannot allocate memory 0(31580) ERROR:tm:write_to_unixsock: writev failed: Cannot allocate memory 0(31580) ERROR:tm:t_write_unix: write_to_unixsock failed
I pointed right SEMS socked in OpenSER config, but looks like no one single byte wasn't written in in.
omega1 ~ # openser -V version: openser 1.2.0-dev18-notls (x86_64/linux) flags: STATS: Off, USE_IPV6, USE_TCP, DISABLE_NAGLE, USE_MCAST, SHM_MEM, SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535 poll method support: poll, epoll_lt, epoll_et, sigio_rt, select. @(#) $Id: main.c,v 1.27 2007/01/11 10:58:47 bogdan_iancu Exp $ main.c compiled on 15:27:13 Jan 15 2007 with gcc 3.4.6 omega1 ~ #
I'm using latest SEMS from SVN (rev. 192), but stable release don't work also.
Here is my openser.cfg:
========================================
if (!t_newtran()){ sl_send_reply("500","could not create transaction"); return; }; if (method=="INVITE"){ # avp_db_load("$ru", "$avp(email)"); if(!t_write_unix("/tmp/sems_sock","conference")) { t_reply("500","error contacting sems"); }; } return;
========================================
What I'm dong wrong?
Hi Peter,
do you get this error all the time? have you tried on a different machine? I guess the error is not related to SEMS specifically, as it is generated by "writev" in openser.
any additional info will be helpful.
regards, bogdan
Peter Lemenkov wrote:
Hello, All! I'm trying to use openser as SIP-router and SEMS as voicemail/conference/etc. But then I tried it the following error occured then openSER tried to contact SEMS:
0(31580) ERROR: tsend_datagram_ev: failed to send: (12) Cannot allocate memory 0(31580) ERROR:tm:write_to_unixsock: writev failed: Cannot allocate memory 0(31580) ERROR:tm:t_write_unix: write_to_unixsock failed
I pointed right SEMS socked in OpenSER config, but looks like no one single byte wasn't written in in.
omega1 ~ # openser -V version: openser 1.2.0-dev18-notls (x86_64/linux) flags: STATS: Off, USE_IPV6, USE_TCP, DISABLE_NAGLE, USE_MCAST, SHM_MEM, SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535 poll method support: poll, epoll_lt, epoll_et, sigio_rt, select. @(#) $Id: main.c,v 1.27 2007/01/11 10:58:47 bogdan_iancu Exp $ main.c compiled on 15:27:13 Jan 15 2007 with gcc 3.4.6 omega1 ~ #
I'm using latest SEMS from SVN (rev. 192), but stable release don't work also.
Here is my openser.cfg:
========================================
if (!t_newtran()){ sl_send_reply("500","could not create
transaction"); return; }; if (method=="INVITE"){ # avp_db_load("$ru", "$avp(email)"); if(!t_write_unix("/tmp/sems_sock","conference")) { t_reply("500","error contacting sems"); }; } return;
========================================
What I'm dong wrong?
2007/1/16, Bogdan-Andrei Iancu bogdan@voice-system.ro:
Hi Peter,
do you get this error all the time?
Yes. Everytime I tried....
have you tried on a different machine?
Yes. I tried also at Fedora Core 6 box and everything works fine.
I guess the error is not related to SEMS specifically, as it is generated by "writev" in openser. any additional info will be helpful.
I've found the solution. Using strace Isaw that OpenSER tried to allocate too many (doesn't matte how many - this definitely an erroneous value) memory then tried to write to unix-socket. Googling for similar bugs I've found that's a known one with GCC 3.4.x and Glibc 2.3.x (not gentoo-specific as I understand).
I didn't want to find out a solution for an ancient gcc and ancient glibc, so I just upgraded them - the bug was gone...
Hi Peter,
it is good to know that a solution was found. Now we have an answer for people reporting similar problems.
Thanks and regards, bogdan
Peter Lemenkov wrote:
2007/1/16, Bogdan-Andrei Iancu bogdan@voice-system.ro:
Hi Peter,
do you get this error all the time?
Yes. Everytime I tried....
have you tried on a different machine?
Yes. I tried also at Fedora Core 6 box and everything works fine.
I guess the error is not related to SEMS specifically, as it is generated by "writev" in openser. any additional info will be helpful.
I've found the solution. Using strace Isaw that OpenSER tried to allocate too many (doesn't matte how many - this definitely an erroneous value) memory then tried to write to unix-socket. Googling for similar bugs I've found that's a known one with GCC 3.4.x and Glibc 2.3.x (not gentoo-specific as I understand).
I didn't want to find out a solution for an ancient gcc and ancient glibc, so I just upgraded them - the bug was gone...