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
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@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] Im Auftrag von Peter Kaszas Gesendet: Donnerstag, 28. Juli 2011 22:28 An: sr-users@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
Hello Timo,
Thank you for your reply. It works!
Regrads,
Peter
On 29 July 2011 08:33, Timo Klecker klecker@decoit.de wrote:
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@lists.sip-router.org [mailto: sr-users-bounces@lists.sip-router.org] *Im Auftrag von *Peter Kaszas *Gesendet:* Donnerstag, 28. Juli 2011 22:28 *An:* sr-users@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****
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hello Peter,
when you use the default kamailio cfg there will be one BYE missing.
[..]
# Handle requests within SIP dialogs
route[WITHINDLG] {
if (has_totag()) {
# sequential request withing a dialog should
# take the path determined by record-routing
if (loose_route()) {
if (is_method("BYE")) {
setflag(FLT_ACC); # do accounting ...
setflag(FLT_ACCFAILED); # ... even if the transaction fails
sip_trace();
}
route(RELAY);
[..]
Kind regards
Timo Klecker
Von: sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] Im Auftrag von Peter Kaszas Gesendet: Freitag, 29. Juli 2011 10:09 An: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List Betreff: Re: [SR-Users] problem with siptrace outgoing SIP message logging
Hello Timo,
Thank you for your reply. It works!
Regrads,
Peter
On 29 July 2011 08:33, Timo Klecker klecker@decoit.de wrote:
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@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] Im Auftrag von Peter Kaszas Gesendet: Donnerstag, 28. Juli 2011 22:28 An: sr-users@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
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users