[OpenSIPS-Users] siptrace missing inbound requests from caller

Vlad Paiu vladpaiu at opensips.org
Thu Aug 18 17:11:14 CEST 2011


Hello,

You must have the trace_flag set in the message before calling the 
sip_trace() function. Please change the order of sip_trace() and 
setflag(8) and see if that works for you.

Also, you might want to check out the trace_dialog() function exported 
by the siptrace module, if that  dlg_flag's only purpose in your script 
is to remember to do the tracing.

Regards,

-- 
Vlad Paiu
OpenSIPS Developer



On 08/18/2011 06:03 PM, John Quick wrote:
> Using the siptrace module in version 1.6.4-2-notls it never writes a record
> to the sip_trace table for the initial INVITE request that it received from
> the calling UAC. I have records in the table for the onward request to the
> callee, the responses from the callee, the responses being forwarded to the
> caller but never for anything sent to OpenSIPS by the calling device.
>
> The module parameters I am using are:
> modparam("siptrace", "trace_flag", 8)
> modparam("siptrace", "trace_on", 1)
> modparam("siptrace", "enable_ack_trace", 0)
>
> Here is the basic code for the Invite handler:
> route[3] {
>      #
>      # -- General Requests handler
>      #
>      if (method=="INVITE") {
>          # create a dialog record
>          setflag(4);
>          # activate sip trace
>          sip_trace();
>          setflag(8);
>
>         # Use a dialog flag to remember that this call is being traced
>         create_dialog();
>         set_dlg_flag("1");
>      }
>
> I also tried without calling sip_trace() in the route block, but it makes no
> difference.
>
> John Quick
> Smartvox Limited
> Web: www.smartvox.co.uk
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users





More information about the Users mailing list