[OpenSIPS-Users] Problem with siptrace module
duane.larson at gmail.com
duane.larson at gmail.com
Tue Jul 12 23:06:59 CEST 2011
Sorry my gmail was hiding some of your text. I see that you have
siptrace.so loaded.
On Jul 12, 2011 4:05pm, duane.larson at gmail.com wrote:
> Do you not have the following in your config?
> loadmodule "siptrace.so"
> On Jul 12, 2011 4:00pm, Diego Barberio
> diego.barberio at redmondsoftware.com> wrote:
> > Hi Duane, Thanks for you quick response. I tried using trace_dialog()
> but it doesn't log any message. Below is the new version of my
> configuration script:BTW: This is my opensips version:opensips -Vversion:
> opensips 1.6.4-2-notls (i386/linux)flags: STATS: Off, USE_IPV6, USE_TCP,
> DISABLE_NAGLE, USE_MCAST, SHM_MEM, SHM_MMAP, PKG_MALLOC, F_MALLOC,
> FAST_LOCK-ADAPTIVE_WAITADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE
> 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535poll method
> support: poll, epoll_lt, epoll_et, sigio_rt, select.svnrevision:
> unknown@(#) $Id: main.c 7530 2010-12-13 19:07:53Z bogdan_iancu $main.c
> compiled on 14:20:52 May 2 2011 with gcc 4.1.2 ##Global Parameters
> ######### debug=3#log_facility=LOG_LOCAL6 fork=yeschildren=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"loadmodule "dialog.so"loadmodule "rr.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{ if ( !mf_process_maxfwd_header("10") ) { sl_send_reply("483","To
> Many Hops"); drop(); }; if (is_method("OPTIONS")) { options_reply();
> exit; } if(is_method("INVITE")) trace_dialog(); ds_select_dst("1", "0");
> if ($retcode xlog("[Redmond] Service full\n");
> sl_send_reply("500","Service full"); exit; } forward();} ThanksDiegoFrom:
> users-bounces at lists.opensips.org
> [mailto:users-bounces at lists.opensips.org] On Behalf Of
> duane.larson at gmail.com
> > Sent: martes, 12 de julio de 2011 05:01 pm
> > To: OpenSIPS users mailling list
> > Subject: Re: [OpenSIPS-Users] Problem with siptrace module
> > Not sure what version of OpenSIPS you are using but you might want to
> use this instead of sip_trace()
> > http://www.opensips.org/html/docs/modules/1.7.x/siptrace.html#id250195
> >
> > On Jul 12, 2011 1:09pm, Diego Barberio
> diego.barberio at redmondsoftware.com> wrote:
> > > 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=yeschildren=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 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();} ThanksDiego
> > >
> > >
> >
> >
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110712/8b4f243a/attachment-0001.htm>
More information about the Users
mailing list