Hello,
Carl wrote:
---------- Forwarded message ----------
From: Carl <s9134131(a)gmail.com>
Date: 2005/7/19 上午 11:51
Subject: sems + ser = trouble !! @@"
To: serusers(a)lists.iptel.org
hi everybody:
i have a ser + sems system. but there are some questions troubled me.
i don't know what my system happened!
now i have some question:
1.my voicemail can record voice message, but i can't listen the voice
before i left message(tell that you can begin talking).
have a look at these two
configuration options in sems.conf
config.voicemail section and verify whether the file exists
( e.g. /usr/local/lib/sems/audio/default_en.wav ):
# optional parameter: announce_path=<path>
#
# - sets the path where announce files are searched for
# - the file to be played is searched in the following order:
# <announce_path>/<domainname>/<username>.wav
# <announce_path>/<domainname>/<language>/<default_announce>
# <announce_path>/<domainname>/<default_announce>
# <announce_path>/<language>/<default_announce>
# <announce_path>/<default_announce>
# where <language> is taken from the body of P-Language header
# of the request (if any).
announce_path=/usr/local/lib/sems/audio/
# parameter: default_announce=<filename>
#
# - sets the name of the default announce WAV file
default_announce=default_en.wav
2.my ser is always forward all calls into voicemail, even if receiver
is online. i dont know how to confige ser.cfg, can anyone help me ?
do something
like this with your INVITE:
if (!lookup("location")) {
if(!t_newtran()){
log("could not create transaction\n");
sl_send_reply("500","could not create transaction");
}
if(!vm("/tmp/am_fifo","voicemail")){
log("could not contact voicemail erver\n");
t_reply("500","could not contact voicemail server");
}
}
}
3.there are some messages like this , what's going on ?
(5208) WARNING: reloadModuleConfig (SemsConfiguration.cpp:66): no
configuration found for module isdngw, maybe you want to specify
config.isdngw in config file.
(5208) WARNING: sig_usr (sems.cpp:75): signal 2 received
(5207) WARNING: sig_usr (sems.cpp:75): signal 2 received
(5207) WARNING: sig_usr (sems.cpp:75): signal 17 received
did you kill or
ctrl-break sems?
Stefan
thanks, Carl
the following are my ser.cfg and sems.conf
#--------------------------------------------------------------------------------------------------
#
# $Id: ser.cfg,v 1.21 2003/06/04 13:47:36 jiri Exp $
#
# simple quick-start config script
#
# ----------- global configuration parameters ------------------------
debug=3 # debug level (cmd line: -dddddddddd)
fork=yes
log_stderror=no # (cmd line: -E)
#Uncomment these lines to enter debugging mode
/*
debug=7
fork=no
log_stderror=yes
*/
check_via=no # (cmd. line: -v)
dns=no # (cmd. line: -r)
rev_dns=no # (cmd. line: -R)
port=5060
children=4
fifo="/tmp/ser_fifo"
# ------------------ module loading ----------------------------------
# Uncomment this if you want to use SQL database
loadmodule "/usr/local/lib/ser/modules/mysql.so"
loadmodule "/usr/local/lib/ser/modules/sl.so"
loadmodule "/usr/local/lib/ser/modules/tm.so"
loadmodule "/usr/local/lib/ser/modules/rr.so"
loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
loadmodule "/usr/local/lib/ser/modules/usrloc.so"
loadmodule "/usr/local/lib/ser/modules/registrar.so"
loadmodule "/usr/local/lib/ser/modules/vm.so"
# Uncomment this if you want digest authentication
# mysql.so must be loaded !
loadmodule "/usr/local/lib/ser/modules/auth.so"
loadmodule "/usr/local/lib/ser/modules/auth_db.so"
# ----------------- setting module-specific parameters ---------------
# -- usrloc params --
#modparam("usrloc", "db_mode", 0)
# Uncomment this if you want to use SQL database
# for persistent storage and comment the previous line
modparam("usrloc", "db_mode", 2)
# -- auth params --
# Uncomment if you are using auth module
#
modparam("auth_db", "calculate_ha1", yes)
#
# If you set "calculate_ha1" parameter to yes (which true in this config),
# uncomment also the following parameter)
#
modparam("auth_db", "password_column", "password")
# -- rr params --
# add value to ;lr param to make some broken UAs happy
modparam("rr", "enable_full_lr", 1)
# -- vm params --
modparam("voicemail",
"db_url","mysql://ser:heslo@localhost/ser")
modparam("voicemail", "subscriber_table", "subscriber")
modparam("voicemail", "email_column", "email_address")
# ------------------------- request routing logic -------------------
# main routing logic
route{
log(1, "entering main loop\n");
if (method=="REGISTER")
log(1, "REGISTER message received\n");
if (method=="INVITE")
log(1, "INVITE message received\n");
if (method=="ACK")
log(1, "ACK message received\n");
if (method=="BYE")
log(1, "BYE message received\n");
if (method=="CANCEL")
log(1, "CANCEL message received\n");
if (method=="SUBSCRIBE")
log(1, "SUBSCRIBE message received\n");
if (method=="NOTIFY")
log(1, "NOTIFY message received\n");
if (method=="OPTIONS")
log(1, "OPTIONS message received\n");
if (method=="INFO")
log(1, "INFO message received\n");
if (method=="MESSAGE")
log(1, "MESSAGE message received\n");
if (method=="REFER")
log(1, "REFER message received\n");
# lookup("aliases");
# initial sanity checks -- messages with
# max_forwards==0, or excessively long requests
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
break;
};
# check changed from 0.8.11 to 0.8.12
# if (len_gt( max_len )) {
if (msg:len > max_len) {
sl_send_reply("513", "Message too big");
break;
};
# if (!uri==myself) {
# sl_send_reply("404", "not reponsible for host in
request-uri");
# break;
# };
# Voicemail specific configuration - begin
if(method=="ACK" || method=="INVITE" ||
method=="BYE" ||
method=="REFER" || method=="CANCEL"){
log(1, "Entering voicemail processing\n");
log(1, "check if new transaction ... \n");
if(t_newtran()){
log(1, "... yes, new transaction\n");
t_reply("100","voicemail ser - Trying -- just
wait a minute !");
t_reply("100","voicemail ser - Trying 2 --
just wait a minute !");
if(method=="INVITE" || method=="REFER"){
log("**************** vm start
- begin ******************\n");
if( uri =~ "conference" ){
log(1, "incoming
conference call\n");
if(!vm("/tmp/am_fifo","conference")){
log("could not
contact conference server\n");
t_reply("500","could not contact conference server");
};
}
else if( uri =~ "echo" ){
log(1, "incoming echo call\n");
if(!vm("/tmp/am_fifo","echo")){
log("could not
contact echo\n");
t_reply("500","could not contact echo");
};
}
else {
log(1, "incoming
voicemail call\n");
if(!vm("/tmp/am_fifo","voicemail")){
log("could not
contact voicemail\n");
t_reply("500","could not contact voicemail");
};
};
log("**************** vm start
- end ******************\n");
break;
};
if(method=="BYE" || method=="CANCEL"){
log("**************** vm
end/refer - begin ******************\n");
if(!vm("/tmp/am_fifo","bye")){
log("could not contact
the media server\n");
t_reply("500","could
not contact the media server");
};
log("**************** vm
end/refer - end ********************\n");
break;
};
}
else {
log("could not create new transaction\n");
sl_send_reply("500","could not create new
transaction");
};
};
# Voicemail specific configuration - end
sl_send_reply("501", "method not understood here");
log(1, "method not understood here\n");
}
===========================================================
i dont have modified sems.conf
===========================================================
please help me !! thanks, Carl
------------------------------------------------------------------------
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
--
Fraunhofer Institut FOKUS Email:stefan.sayer@fokus.fraunhofer.de
Kaiserin-Augusta-Allee 31 Phone: +49 30 3463 7242
D-10589 Berlin, Germany
http://www.fokus.fraunhofer.de/research/cc/mobis