[Users] openser & sems memory error
Ibrahim TUNALI
ibrahim.tunali at comturk.com
Thu Feb 23 16:32:17 CET 2006
Hi,
i installed openser (1.0 stable) and sems (0.9 stable). I recive
"ERROR:tm:write_to_fifo: writev failed: Cannot allocate memory" error
when openser send request to sems voice mail. Is it compile error or do
you have any solution for this.
regards
openser voicemail seciton;
--------------------------
# switch to stateful mode:
if (!t_newtran()){
sl_send_reply("500","could not create transaction");
return;
};
# prevent timeout on the other side:
t_reply("100","Trying - just wait a minute !");
# actively absorb ACKs
if (method == "ACK") {
t_relay();
return;
}
if (method=="INVITE"){
# no service number, redirect to voicemail.
# do not forget to load AVPs so that voicemail gets the
# callee's email address.
avp_db_load("$ruri","i:34/$email_scheme");
if(!t_write_req("/tmp/am_fifo","voicemail/vm_email")) {
t_reply("500","error contacting sems");
};
return;
}
else if (method=="BYE" || method=="CANCEL") {
# Sems should already know which plug-in is handling that
# call. "bye" is no plug-in name. It is a reserved name
which
# tells Sems to terminate the call.
if(!t_write_req("/tmp/am_fifo","bye")) {
t_reply("500","error contacting sems");
};
};
openser log;
------------
Feb 23 17:18:17 voip /usr/sbin/openser[28398]: ERROR:tm:write_to_fifo:
writev failed: Cannot allocate memory
Feb 23 17:18:17 voip /usr/sbin/openser[28398]: ERROR:tm:t_write_req:
write_to_fifo failed
Feb 23 17:18:17 voip /usr/sbin/openser[28396]: Warning: sl_send_reply: I
won't send a reply for ACK!!
Feb 23 17:18:18 voip /usr/sbin/openser[28392]: Warning: sl_send_reply: I
won't send a reply for ACK!!
Feb 23 17:18:20 voip /usr/sbin/openser[28396]: Warning: sl_send_reply: I
won't send a reply for ACK!!
Feb 23 17:18:24 voip /usr/sbin/openser[28398]: Warning: sl_send_reply: I
won't send a reply for ACK!!
Feb 23 17:18:28 voip /usr/sbin/openser[28394]: Warning: sl_send_reply: I
won't send a reply for ACK!!
Feb 23 17:18:32 voip /usr/sbin/openser[28398]: Warning: sl_send_reply: I
won't send a reply for ACK!!
Feb 23 17:18:36 voip /usr/sbin/openser[28394]: Warning: sl_send_reply: I
won't send a reply for ACK!!
Feb 23 17:18:40 voip /usr/sbin/openser[28398]: Warning: sl_send_reply: I
won't send a reply for ACK!!
Feb 23 17:18:44 voip /usr/sbin/openser[28394]: Warning: sl_send_reply: I
won't send a reply for ACK!!
sems log;
------------
Feb 23 17:19:45 voip Sems[28477]: Error: (AmUtils.cpp)(str2i)(147):
str2i: unexpected char s in ser
Feb 23 17:19:45 voip Sems[28477]: Error: (AmUtils.cpp)(str2i)(147):
str2i: unexpected char s in ser
Feb 23 17:19:45 voip Sems[28480]: Debug: (sems.cpp)(main)(386): Loading
application plug-ins
Feb 23 17:19:45 voip Sems[28480]: Debug: (AmPlugIn.cpp)(load)(87):
loading /usr/lib/sems/plug-in/apps/announcement.so ...
Feb 23 17:19:45 voip Sems[28480]: Debug:
(AmPlugIn.cpp)(loadAppPlugIn)(281): application 'announcement' loaded.
Feb 23 17:19:45 voip Sems[28480]: Debug:
(SemsConfiguration.cpp)(reloadModuleConfig)(70): using inline
configuration for module announcement
Feb 23 17:19:45 voip Sems[28480]: Debug: (AmPlugIn.cpp)(load)(87):
loading /usr/lib/sems/plug-in/apps/bot.so ...
Feb 23 17:19:45 voip Sems[28480]: Debug:
(AmPlugIn.cpp)(loadAppPlugIn)(281): application 'bot' loaded.
Feb 23 17:19:45 voip Sems[28480]: Debug:
(AmServer.cpp)(registerFct)(401): AmUnServer::registerFct: function
'bot_start' has been registered.
Feb 23 17:19:45 voip Sems[28480]: Debug:
(AmServer.cpp)(registerFct)(208): AmFifoServer::registerFct: function
'bot_start' has been registered.
Feb 23 17:19:45 voip Sems[28480]: Debug: (AmPlugIn.cpp)(load)(87):
loading /usr/lib/sems/plug-in/apps/conference.so ...
Feb 23 17:19:45 voip Sems[28482]: Debug: (AmThread.cpp)(_start)(63):
Thread 28482 is starting.
Feb 23 17:19:45 voip Sems[28480]: Debug: (AmThread.cpp)(start)(85):
Thread 28482 is just created.
Feb 23 17:19:45 voip Sems[28480]: Debug:
(AmPlugIn.cpp)(loadAppPlugIn)(281): application 'conference' loaded.
Feb 23 17:19:45 voip Sems[28480]: Debug:
(SemsConfiguration.cpp)(reloadModuleConfig)(70): using inline
configuration for module conference
Feb 23 17:19:45 voip Sems[28480]: Warning: (Conference.cpp)(onLoad)(77):
no join_sound specified in configuration
Feb 23 17:19:45 voip Sems[28480]: Warning: (Conference.cpp)(onLoad)(78):
file for module conference.
Feb 23 17:19:45 voip Sems[28480]: Warning: (Conference.cpp)(onLoad)(84):
no drop_sound specified in configuration
Feb 23 17:19:45 voip Sems[28480]: Warning: (Conference.cpp)(onLoad)(85):
file for module conference.
Feb 23 17:19:45 voip Sems[28480]: Debug: (AmPlugIn.cpp)(load)(87):
loading /usr/lib/sems/plug-in/apps/echo.so ...
Feb 23 17:19:45 voip Sems[28480]: Debug:
(AmPlugIn.cpp)(loadAppPlugIn)(281): application 'echo' loaded.
Feb 23 17:19:45 voip Sems[28480]: Debug: (AmPlugIn.cpp)(load)(87):
loading /usr/lib/sems/plug-in/apps/isdngw.so ...
Feb 23 17:19:45 voip Sems[28480]: Info:
(IsdnConfiguration.cpp)(reload)(91): isdngw version 0.2 loading
(supported backends: isdn4linux) ...
Feb 23 17:19:45 voip Sems[28480]: Warning:
(SemsConfiguration.cpp)(reloadModuleConfig)(66): no configuration found
for module isdngw, maybe you want to specify config.isdngw in config file.
Feb 23 17:19:45 voip Sems[28480]: Info:
(IsdnGatewayFactory.cpp)(IsdnGatewayFactory)(81): isdngw: isdn4linux
support disabled in configuration
Feb 23 17:19:45 voip Sems[28480]: Info:
(IsdnGatewayFactory.cpp)(IsdnGatewayFactory)(148): isdngw initialization
successful.
Feb 23 17:19:45 voip Sems[28480]: Debug:
(AmPlugIn.cpp)(loadAppPlugIn)(281): application 'isdngw' loaded.
Feb 23 17:19:45 voip Sems[28480]: Debug:
(IsdnGatewayFactory.cpp)(onLoad)(199): registering fifo function
isdninfo for web access...
Feb 23 17:19:45 voip Sems[28480]: Debug:
(AmServer.cpp)(registerFct)(208): AmFifoServer::registerFct: function
'isdninfo' has been registered.
Feb 23 17:19:45 voip Sems[28480]: Debug: (AmPlugIn.cpp)(load)(87):
loading /usr/lib/sems/plug-in/apps/number_reader.so ...
Feb 23 17:19:45 voip Sems[28480]: Debug:
(AmPlugIn.cpp)(loadAppPlugIn)(281): application 'number_reader' loaded.
Feb 23 17:19:45 voip Sems[28480]: Debug:
(SemsConfiguration.cpp)(reloadModuleConfig)(70): using inline
configuration for module number_reader
Feb 23 17:19:45 voip Sems[28480]: Debug: (AmPlugIn.cpp)(load)(87):
loading /usr/lib/sems/plug-in/apps/voicemail.so ...
Feb 23 17:19:45 voip Sems[28480]: Debug:
(AmPlugIn.cpp)(loadAppPlugIn)(281): application 'voicemail' loaded.
Feb 23 17:19:45 voip Sems[28480]: Debug:
(SemsConfiguration.cpp)(reloadModuleConfig)(70): using inline
configuration for module voicemail
Feb 23 17:19:45 voip Sems[28480]: Debug:
(AnswerMachine.cpp)(loadEmailTemplates)(103): loading
/etc/sems//default.template ...
Feb 23 17:19:45 voip Sems[28480]: Debug: (sems.cpp)(main)(390): Loading
audio plug-ins
Feb 23 17:19:45 voip Sems[28480]: Debug: (AmPlugIn.cpp)(load)(87):
loading /usr/lib/sems/plug-in/audio/gsm.so ...
Feb 23 17:19:45 voip Sems[28480]: Debug:
(AmPlugIn.cpp)(loadAudioPlugIn)(218): codec id 3 inserted
Feb 23 17:19:45 voip Sems[28480]: Debug:
(AmPlugIn.cpp)(loadAudioPlugIn)(233): payload 'GSM'inserted with id 3
Feb 23 17:19:45 voip Sems[28480]: Debug: (AmPlugIn.cpp)(load)(87):
loading /usr/lib/sems/plug-in/audio/ilbc.so ...
Feb 23 17:19:45 voip Sems[28480]: Debug:
(AmPlugIn.cpp)(loadAudioPlugIn)(218): codec id 4 inserted
Feb 23 17:19:45 voip Sems[28480]: Debug:
(AmPlugIn.cpp)(loadAudioPlugIn)(237): payload 'iLBC'inserted with id 96
Feb 23 17:19:45 voip Sems[28480]: Debug:
(AmPlugIn.cpp)(loadAudioPlugIn)(257): file format iLBC inserted
Feb 23 17:19:45 voip Sems[28480]: Debug: (AmPlugIn.cpp)(load)(87):
loading /usr/lib/sems/plug-in/audio/speex.so ...
Feb 23 17:19:45 voip Sems[28480]: Debug:
(AmPlugIn.cpp)(loadAudioPlugIn)(218): codec id 6 inserted
Feb 23 17:19:45 voip Sems[28480]: Debug:
(AmPlugIn.cpp)(loadAudioPlugIn)(237): payload 'speex'inserted with id 96
Feb 23 17:19:45 voip Sems[28480]: Debug: (AmPlugIn.cpp)(load)(87):
loading /usr/lib/sems/plug-in/audio/wav.so ...
Feb 23 17:19:45 voip Sems[28480]: Debug:
(AmPlugIn.cpp)(loadAudioPlugIn)(218): codec id 1 inserted
Feb 23 17:19:45 voip Sems[28480]: Debug:
(AmPlugIn.cpp)(loadAudioPlugIn)(218): codec id 2 inserted
Feb 23 17:19:45 voip Sems[28480]: Debug:
(AmPlugIn.cpp)(loadAudioPlugIn)(233): payload 'PCMU'inserted with id 0
Feb 23 17:19:45 voip Sems[28480]: Debug:
(AmPlugIn.cpp)(loadAudioPlugIn)(233): payload 'PCMA'inserted with id 8
Feb 23 17:19:45 voip Sems[28480]: Debug:
(AmPlugIn.cpp)(loadAudioPlugIn)(257): file format Wav inserted
Feb 23 17:19:45 voip Sems[28480]: Debug: (sems.cpp)(main)(394): Starting
session container
Feb 23 17:19:45 voip Sems[28486]: Debug: (AmThread.cpp)(_start)(63):
Thread 28486 is starting.
Feb 23 17:19:45 voip Sems[28480]: Debug: (AmThread.cpp)(start)(85):
Thread 28486 is just created.
Feb 23 17:19:45 voip Sems[28480]: Debug: (sems.cpp)(main)(397): Starting
mailer
Feb 23 17:19:45 voip Sems[28480]: Debug: (AmThread.cpp)(start)(85):
Thread 0 is just created.
Feb 23 17:19:45 voip Sems[28480]: Debug: (sems.cpp)(main)(400): Starting
RTP scheduler
Feb 23 17:19:45 voip Sems[28480]: Debug: (AmThread.cpp)(start)(85):
Thread 0 is just created.
Feb 23 17:19:45 voip Sems[28480]: Debug: (sems.cpp)(main)(403): Starting
ICMP watcher
Feb 23 17:19:45 voip Sems[28480]: Debug: (AmThread.cpp)(start)(85):
Thread 0 is just created.
Feb 23 17:19:45 voip Sems[28480]: Debug: (AmThread.cpp)(start)(85):
Thread 0 is just created.
Feb 23 17:19:45 voip Sems[28480]: Info: (AmServer.cpp)(run)(147): FIFO
server started
Feb 23 17:19:45 voip Sems[28487]: Debug: (AmThread.cpp)(_start)(63):
Thread 28487 is starting.
Feb 23 17:19:45 voip Sems[28488]: Debug: (AmThread.cpp)(_start)(63):
Thread 28488 is starting.
Feb 23 17:19:45 voip Sems[28489]: Debug: (AmThread.cpp)(_start)(63):
Thread 28489 is starting.
Feb 23 17:19:45 voip Sems[28489]: Error: (AmIcmpWatcher.cpp)(run)(47):
ICMP Watcher: could not create RAW socket: Operation not permitted
Feb 23 17:19:45 voip Sems[28489]: Error: (AmIcmpWatcher.cpp)(run)(48):
ICMP Watcher: try to run SEMS as root or suid.
Feb 23 17:19:45 voip Sems[28489]: Debug: (AmThread.cpp)(_start)(68):
Thread 28489 is ending.
Feb 23 17:19:45 voip Sems[28490]: Debug: (AmThread.cpp)(_start)(63):
Thread 28490 is starting.
Feb 23 17:19:45 voip Sems[28490]: Info: (AmServer.cpp)(run)(321): Unix
socket server started
More information about the Users
mailing list