[OpenSIPS-Users] Trying to learn how to use siptrace

opensipslist at encambio.com opensipslist at encambio.com
Thu Dec 17 01:27:10 CET 2009


Hello list,

According to the online siptrace module docs:

  'Only messages processed with TM/SL are logged.'

First, I assume that is why when I do:

  modparam("siptrace", "trace_flag", 22)
  route{
    setflag(22);
    setbflag(22);
    [...]
  }

...that no REGISTERs are being traced. I assume that all other
messages will be traced by the above code.

Also, I see that I have the option of:

  if (is_method("INVITE") && !has_totag())
    trace_dialog();

...which seems to have the same effect (no REGISTERs traced.)
But if I do:

  route{
    sip_trace();
    [...]
  }

...then REGISTERs and INVITEs will be traced, right?

QUESTION

How do most people choose which of these three siptrace logging
methods to use? Is there ever a reason to definitely not use one
of them, and is it common to combine any of these three methods?

Thanks,
Brian



More information about the Users mailing list