[SR-Users] problem with siptrace outgoing SIP message logging

Timo Klecker klecker at decoit.de
Fri Jul 29 08:33:13 CEST 2011


Hey,

 

we use the following:

 

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

[..]

route {

                [..]

                # set the Flag for siptrace to log the messages in tm module

                setflag(22);

 

                # handle requests within SIP dialogs

                route(WITHINDLG);

 

                ### only initial requests (no To tag)

[..]

                # With setflag(22) the first Message is not traced. Trace it
here

                sip_trace();

                [..]

 

 

This works fine when you do not use forward().

 

Kind regards

Timo Klecker 

 

 

 

Von: sr-users-bounces at lists.sip-router.org
[mailto:sr-users-bounces at lists.sip-router.org] Im Auftrag von Peter Kaszas
Gesendet: Donnerstag, 28. Juli 2011 22:28
An: sr-users at lists.sip-router.org
Betreff: [SR-Users] problem with siptrace outgoing SIP message logging

 

Dear List members,

Im quite new to kamailio, and i got a problem with the siptrace module. I
read that siptrace module can capture and log all incoming and outgoing sip
messages. 

So i put to the config file the following lines:

loadmodule "siptrace.so"
.
.
.
#-------- siptrace paramas -----
modparam("siptrace", "db_url", DBURL)
modparam("siptrace", "table", "sip_trace")
modparam("siptrace", "trace_flag", 18)
modparam("siptrace", "trace_on", 1)
modparam("siptrace", "trace_sl_acks", 1)

.
.
. route {
sip_trace();

.......
}


Now I can capture all incoming SIP messages, but I none of the outgoing. 

Where can I put the sip_trace(); command to capture also the outgoing
messages?

Thank you,

Peter

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20110729/fee1dd94/attachment-0001.htm>


More information about the sr-users mailing list