[Serusers] problem with sems and ser

voip technocrat tech_voip at yahoo.co.in
Tue Apr 5 16:07:43 CEST 2005


Dear friends,

iam trying to use the sems and ser ser is of version
0.8.12 and sems is of 0.1.0 from berlios.de

i used the er-0.8.14 version also

now when make a call in debug mode of the sems iam
getting like this

(8313) DEBUG: run (AmServer.cpp:185): version= <0.2>
(8313) ERROR: run (AmServer.cpp:249): ## Wrong FIFO
Interface version ##


this is the ser.cfg iam useing

# $Id: ser.cfg,v 1.11 2003/07/03 12:17:56 rco Exp $
#
# iptel's voicemail config script
#
 
# ----------- global configuration parameters
------------------------
 
#debug=7                        # debug level (cmd
line: -dddddddddd)
fork=yes
 
log_stderror=yes        # (cmd line: -E)
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
----------------------------------
 
loadmodule "/usr/local/lib/ser/modules/sl.so"
loadmodule "/usr/local/lib/ser/modules/tm.so"
loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
loadmodule "/usr/local/lib/ser/modules/rr.so"
loadmodule "/usr/local/lib/ser/modules/textops.so"
loadmodule "/usr/local/lib/ser/modules/vm.so"
loadmodule "/usr/local/lib/ser/modules/dbtext.so"
loadmodule "/usr/local/lib/ser/modules/usrloc.so"
loadmodule "/usr/local/lib/ser/modules/registrar.so"
 
             
 
 
# ----------------- setting module-specific parameters
---------------
modparam("usrloc", "db_mode",   0)
 
modparam("voicemail",
"db_url","/root/ser/ser-0.8.12/modules/vm/db")
modparam("rr", "enable_full_lr", 1)
 
# -------------------------  request routing logic
-------------------
 
# main routing logic
 
route{
 
        # initial sanity checks -- messages with
        # max_forwars==0, or excessively long requests
        if (!mf_process_maxfwd_header("10")) {
                sl_send_reply("483","Too Many Hops");
                break;
        };
#       if (len_gt( max_len )) {
#               sl_send_reply("513", "Message too
big");
#               break;
#       };
 
        # we record-route all messages -- to make sure
that
        # subsequent messages will go through our
proxy; that's
        # particularly good if upstream and downstream
entities
        # use different transport protocol
        record_route();
        # loose-route processing
        loose_route();
 
        # Make MSN Messenger happy...
        if (method=="REGISTER") {
                log (0, "Regiseter Packet");
                sl_send_reply("200","ok");
                break;
        };
 
        if (uri == myself) {
 
                # Voicemail specific configuration -
begin
 
                if(method=="ACK" || method=="INVITE"
|| method=="BYE" || method=="REFER"){
 
                        if(t_newtran()){
 
                                t_reply("100","Trying
-- just wait a minute !");
 
                                if(method=="INVITE" ||
method=="REFER"){
                                       
log("**************** vm start - begin
******************\n");
                                        if( uri =~
"conference" ){
                                               
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" ){
                                               
if(!vm("/tmp/am_fifo","echo")){
                                                      
 log("could not contact echo\n");
                                                      
 t_reply("500","could not contact echo");
                                                };
                                        }
                                        else {
                                               
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"){
                                       
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
        }
        else {
                if (!t_relay()) {
                        sl_reply_error();
                };
        };
}
 

this is my sems.conf
---------------------

# $Id: sems.conf.sample,v 1.1.2.1 2003/08/28 19:13:25
rco Exp $
#
# sems.conf.sample
#
# Sip Express Media Server (sems)
#
# sample configuration file
#
#
# whitespaces (spaces and tabs) are ignored
# comments start with a "#" and may be used inline
#
# example: option=value1, value2  # i like this option
#
 
##################################
# global parameters              #
##################################
 
# optional parameter: fork={yes|no}
#
# - specifies if sems should run in daemon mode
(background)
fork=yes
 
# optional parameter: stderr={yes|no}
#
# - debug mode: do not fork and log to stderr
stderr=no
 
# optional parameter: loglevel={0|1|2|3}
#
# - sets log level (error=0, warning=1, info=2,
debug=3)
loglevel=1
 
# optional parameter: fifo_name=<filename>
#
# - path and file name of our fifo file
fifo_name=/tmp/am_fifo
 
# optional parameter: ser_fifo_name=<filename>
#
# - path and file name of Ser's fifo file
ser_fifo_name=/tmp/ser_fifo
 
# optional parameter: plugin_path=<path>
#
# - sets the path to the plug-ins
# - may be absolute or relative to CWD
plugin_path=/usr/local/lib/sems/plug-in/
 
 
##################################
# voicemail specific parameters  #
##################################
 
# optional parameter: announce_path=<path>
#
# - sets the path where announce files are searched
for
announce_path=/usr/local/lib/sems/audio/
 
# optional parameter: default_announce=<filename>
#
# - sets the name of the default announce WAV file
default_announce=default_en.wav
 
# optional parameter: max_record=<seconds>
#
# - maximum record time
max_record=30
 
# optional parameter: smtp_server=<hostname>
#
# - sets address of smtp server
smtp_server=localhost
 
# optional parameter: smtp_port=<port>
#
# - sets port of smtp server
smtp_port=25
 
 
##################################
# module specific parameters     #
##################################
 
# add more module configurations here (inline or
external):
#
# config.mymodule=<filename>
#  or
# config.mymodule=inline
# ...

with regards


________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony




More information about the sr-users mailing list