Hello,
Erich Hohermuth wrote:
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.
endianness is not correctly detected
on your system. Can you please try
with svn trunk or a newer checkout (e.g. this one:
http://ftp.iptel.org/pub/sems/testing/sems_1.0.0-0pre1.tar.gz) ?
thanks
Stefan
P.S. you will probably receive quicker answers to sems related questions
on sems mailling lists:
http://lists.iptel.org/mailman/listinfo/sems
http://lists.iptel.org/mailman/listinfo/semsdev
(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
--
Stefan Sayer
VoIP Services
stefan.sayer(a)iptego.com
www.iptego.com
iptego GmbH
Am Borsigturm 40
13507 Berlin
Germany
Amtsgericht Charlottenburg, HRB 101010
Geschaeftsfuehrer: Alexander Hoffmann