Dear all,
I am getting some trouble after adding the voice mail
support in my ser.cfg file...the problems are as given
below..

*********************************************************
Listening on
              127.0.0.1 [127.0.0.1]:5090
              210.251.64.168 [210.251.64.168]:5090
Aliases: xwavepda3.isr.co.jp:5090 localhost:5090
localhost.localdomain:5090 vovida:5090
WARNING: no fork mode  and more than one listen
address found (will use only the the first one)
 0(8171) DEBUG: init_mod: sl_module
stateless - initializing
 0(8171) DEBUG: register_fifo_cmd: new command
(sl_stats) registered
 0(8171) DEBUG: MD5 calculated:
3749ec7003921b5c92fe06c5dc660395
 0(8171) DEBUG: init_mod: maxfwd_module
Maxfwd module- initializing
 0(8171) DEBUG: init_mod: mysql
 0(8171) mysql - initializing
 0(8171) DEBUG: init_mod: voicemail
voicemail - initializing
 0(8171) DEBUG: register_fifo_cmd: new command
(vm_reply) registered
 0(8171) find_export: <load_tm> not found
 0(8171) ERROR: vm_start: could not find export
`load_tm'
 0(8171) Error: vm_mod_init: cann't load tm
 0(8171) init_mod(): Error while initializing module
voicemail
ERROR: error while initializing modules
 0(8171) shm_mem_destroy
 0(8171) destroying the shared memory lock
                                                      
    [????]


******************************************************

and my ser.cfg file is as given below..

*************************************************************

#
# $Id: voicemail.cfg,v 1.2 2003/10/10 06:27:18 jiri
Exp $
#
# this script is configured for use as voicemail UAS;
it processes
# INVITEs and BYEs and asks SEMS to record media via
"vm"; in this
# script, all record-routing and other constructs
known from proxy
# scripts are not present  -- it is a simple UAS 
#

# ----------- global configuration parameters
------------------------

#debug=                 # debug level (cmd line: -dddddddddd)
#fork=no
#log_stderror=yes       # (cmd line: -E)


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=5090
children=4
fifo="/tmp/vm_ser_fifo"

# ------------------ module loading
----------------------------------

loadmodule "/usr/local/lib/ser/modules/sl.so"
loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
loadmodule "/usr/local/lib/ser/modules/mysql.so"
loadmodule "/usr/local/lib/ser/modules/vm.so"
            
# ----------------- setting module-specific parameters
---------------

modparam("voicemail",
"db_url","sql://ser:[EMAIL PROTECTED]/ser")

# -------------------------  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;
#       };

        if (!uri==myself) {
                sl_send_reply("404", "not reponsible for host in
r-uri");
                break;
        };


        # Voicemail specific configuration - begin

        if(method=="ACK" || method=="INVITE" ||
method=="BYE"){

#               if (!t_newtran()) {
#                       log("could not create new transaction\n");
#                       sl_send_reply("500","could not create new
transaction");
#                       break;
#               };

        #       t_reply("100","Trying -- just wait a minute !");
                if(method=="INVITE"){
                        log("**************** vm start - begin
******************\n");
                        if (uri=~"sip:[EMAIL PROTECTED]" ||
uri=~"sip:[EMAIL PROTECTED]") {
                                if (!vm("/tmp/am_fifo",
"announcement")) {
                                        log("couldn't contact announcement
server\n");
                        #               t_reply("500", "couldn not contact announcement
server");
                                };
                        } else {
                                if(!vm("/tmp/am_fifo","voicemail")){
                                        log("could not contact the answer machine\n");
                        #               t_reply("500","could not contact the answer
machine");
                                };
                        };
                        log("**************** vm start - end
******************\n");
                } else if(method=="BYE"){
                        log("**************** vm end - begin
******************\n");
                        if(!vm("/tmp/am_fifo","bye")){
                                log("could not contact the answer machine\n");
                        #       t_reply("500","could not contact the answer
machine");
                        };
                        log("**************** vm end - end
******************\n");
                };
                break;
        };
        if (method=="CANCEL") {
                sl_send_reply("200", "cancels are junked here");
                break;
        };
        sl_send_reply("501", "method not understood here");
}

***********************************************************************

Please provide me your valuable suggestion what is the
cause for these problems..

I shall be highally greatfull if some one send me some
working ser.cfg file with voice mail supports
thanks in advance..

koyama





        
                
__________________________________
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!
http://advision.webevents.yahoo.com/yahoo/votelifeengine/
_______________________________________________
Sip-implementors mailing list
[EMAIL PROTECTED]
http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors

Reply via email to