[OpenSIPS-Users] Problem with siptrace module

Diego Barberio diego.barberio at redmondsoftware.com
Tue Jul 12 20:09:05 CEST 2011


Hi All,

 

I'm having a minnor configuration problem with the siptrace.

I'm trying to trace all the messages and their responses, but I'm only able
to log the methods (INVITE, ACK and BYE) but not the responses.

This is my configuration script.

 

##Global Parameters #########

 

debug=3

#log_facility=LOG_LOCAL6

 

fork=yes

children=4

 

/* uncomment the following lines to enable debugging */

#debug=6

#fork=no

#log_stderror=yes

 

/* uncomment the next line to disable TCP (default on) */

disable_tcp=yes

 

port=5060

 

/* uncomment and configure the following line if you want opensips to

   bind on a specific interface/port/proto (default bind on all available)
*/

listen=udp:192.168.2.154:5060

 

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

mpath="/usr/local/lib/opensips/modules/"

loadmodule "maxfwd.so"

loadmodule "sl.so"

loadmodule "tm.so"

loadmodule "dispatcher.so"

loadmodule "mi_fifo.so"

loadmodule "signaling.so"

loadmodule "options.so"

loadmodule "textops.so"

loadmodule "db_mysql.so"

loadmodule "siptrace.so"

#loadmodule "acc.so"

# ----------------- setting module-specific parameters ---------------

# -- dispatcher params --

modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")

 

modparam("dispatcher", "ds_ping_from", "sip:proxy at 192.1.8.2.154")

modparam("dispatcher", "ds_ping_interval", 30)

modparam("dispatcher", "ds_probing_threshhold", 2)

modparam("dispatcher", "ds_probing_mode", 1)

modparam("dispatcher", "list_file",
"/usr/local/etc/opensips/dispatcher.list")

# modparam("dispatcher", "force_dst", 1)

 

modparam("siptrace", "db_url",
"mysql://root:Viamonte1621@localhost/opensips")

modparam("siptrace", "enable_ack_trace", 1)

modparam("siptrace", "trace_on", 1)

modparam("siptrace", "table", "sip_trace")

modparam("siptrace", "trace_flag", 22)

 

#modparam("acc", "log_level", 1)

#modparam("acc", "log_flag", 1)

#modparam("acc", "db_url", "mysql://root:Viamonte1621@localhost/opensips")

 

route{

        setflag(22);

        setbflag(22);

        sip_trace();

        

        if ( !mf_process_maxfwd_header("10") )

        {

               sl_send_reply("483","To Many Hops");

               drop();

        };

 

        if (is_method("OPTIONS")) {

                options_reply();

                exit;

        }

        

        ds_select_dst("1", "0");

        

        if ($retcode<0) {

                xlog("[Redmond] Service full\n");

                sl_send_reply("500","Service full");

                exit;

        }

        

        forward();

        #t_relay();

        #sip_trace();

}

 

failure_route[1] {

        if (t_check_status("(408)|(5[0-9][0-9])")) {

                ds_mark_dst();

                if (ds_select_dst("1", "0")) {

                        forward();

                } else {

                       t_reply("503", "Service Unavailable");

                }

        }

}

 

onreply_route {

        setflag(22);

        setflag(22);

        sip_trace();

}

 

Thanks

Diego

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110712/e5bd6260/attachment-0001.htm>


More information about the Users mailing list