[sr-dev] [kamailio/kamailio] siptrace: fix tracing messages to database when destination uri not set (#1951)

Juha Heinanen jh at tutpro.com
Tue May 14 10:11:04 CEST 2019


Ionut Ionita writes:

> Yes it works but the code in 5.2 is broken. Here's an example, maybe
> it's more clear:
> 
> sip_trace(); /* traces to database only no db url */
> sip_trace("", "$var(correlation_id)"); /* does not work; requires valid duplicate uri */
> // with my additions
> sip_trace("", "$var(correlation_id)", "d"); /* does not work; requires valid duplicate uri */
> 
> So there are basically 2 functions:
> - no arguments - trace to dabase only;
> - with any kind of arguments - trace to duplicate uri and(if set) to
> database;

Then leave implementation of the working part (sip_trace();) as is and
add code to fix the broken part.

-- Juha



More information about the sr-dev mailing list