[sr-dev] include entering/leaving blocks in debug level 7

Daniel-Constantin Mierla miconda at gmail.com
Mon Aug 31 18:40:05 CEST 2009


Hello,

On 31.08.2009 17:55 Uhr, Juha Heinanen wrote:
> would it be possible to enhance debug level 7 so that it would print
> entering/leaving of route/failure/... blocks?
>
> i'm in the middle  of debugging a mystery where syslog shows
>
> DBG:core:rewrite_uri: rewriting Request-URI with 'sip:foo.bar at ip-addr:5060;transport=UDP'
>
> but i cannot find in config file where that happens and debug doesn't
> tell what command caused the rewrite.
>   
you can add dbg messages around run_top_route() -- grep it, you should 
get some in core and tm -- and in action.c:do_action() around call of 
run_actions(). That will help to troubleshoot.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
* http://www.asipto.com/




More information about the sr-dev mailing list