Hello
I try to use OpenSer 1.3 with SEMS 0.10 for voice announcements and i
get a sems error which I don't understand.
(49239) ERROR: open (AmAudio.cpp:532): open returned -1
(49239) ERROR: run (AmSession.cpp:319):
AnnouncementDialog::onSessionStart: Cannot open file
(49239) ERROR: run (AmSession.cpp:327): 500 unexpected exception.
(49239) DEBUG: destroy (AmSession.cpp:350): AmSession::destroy()
SEMS is compiled with -DOpenSER and the communication between the two
seems to work.
SER COnfig:
===========
listen=212.101.4.3
port=5060
loadmodule "mi_datagram.so"
modparam("mi_datagram", "socket_name", "/tmp/openser_sock")
modparam("mi_datagram", "unix_socket_mode", 0600)
modparam("mi_datagram", "unix_socket_user", "root")
modparam("mi_datagram", "unix_socket_group", "wheel")
INVITE ROUTE:
if (uri=~"^sip:666@") {
if(!t_write_unix("/tmp/sems_sock","announcement")) {
t_reply("500","error contacting sems");
};
};
SEMS Config:
============
plugin_config_path=/usr/local/etc/sems//etc/
#fork=yes
#stderr=no
fork=no
stderr=yes
# - sets log level (error=0, warning=1, info=2, debug=3)
loglevel=3
default_application = announcement
socket_name=/tmp/sems_sock
reply_socket_name=/tmp/sems_resp_sock
ser_socket_name=/tmp/openser_sock
plugin_path=/usr/local/lib/sems/plug-in/
# - sets lowest for RTP used port
rtp_low_port=50000
rtp_high_port=60000
media_processor_threads=1
listen=212.101.4.3
sip_port=5060
SEMS-DEBUG:
===========
(49649) DEBUG: execute (AmInterfaceHandler.cpp:172): Request OK:
dispatch it!
(49649) DEBUG: getAnnounceFile (Announcement.cpp:79): trying
'/usr/local/lib/sems/audio/666.wav'
(49649) DEBUG: setLocalTag (AmSession.cpp:205):
AmSession::setLocalTag(240BFB44-47D000440002686F-28401100)
(49649) DEBUG: start (AmThread.cpp:135): Thread 0 is just created.
...
(49649) DEBUG: onSessionStart (Announcement.cpp:142):
AnnouncementDialog::onSessionStart
(49649) DEBUG: wav_read_header (wav_hdr.c:100): trying to read WAV file
(49649) DEBUG: wav_read_header (wav_hdr.c:103): tag = <RIFF>
(49649) DEBUG: wav_read_header (wav_hdr.c:111): file size = <2935619840>
(49649) DEBUG: wav_read_header (wav_hdr.c:114): tag = <WAVE>
(49649) DEBUG: wav_read_header (wav_hdr.c:121): tag = <fmt >
(49649) DEBUG: wav_read_header (wav_hdr.c:129): chunk_size = <301989888>
(49649) DEBUG: wav_read_header (wav_hdr.c:133): fmt = <100>
(49649) DEBUG: wav_read_header (wav_hdr.c:137): channels = <256>
(49649) DEBUG: wav_read_header (wav_hdr.c:141): rate = <1075773440>
(49649) DEBUG: wav_read_header (wav_hdr.c:148): bits/sample = <4096>
(49649) ERROR: open (AmAudio.cpp:532): open returned -1
(49649) ERROR: run (AmSession.cpp:319):
AnnouncementDialog::onSessionStart: Cannot open file
(49649) ERROR: run (AmSession.cpp:327): 500 unexpected exception.
(49649) DEBUG: destroy (AmSession.cpp:350): AmSession::destroy()
As you can see the file exists, but nothing happens. :( Full debug on
request.
Thank you very much for your help
Regards
Erich
--
* Erich Hohermuth IP Engineer - SolNet (AS 9044) PGPKEY-46A08FCB *
* phone: +41 32 517 6220 / sip:9044*463@inoc-dba.pch.net *