[Kamailio-Users] simple question: log 180, 200 responses

Alex Balashov abalashov at evaristesys.com
Mon Aug 11 16:05:03 CEST 2008


Responses arrive as reply routes, not as request routes.  So, you won't 
catch them out of the main routing block.

See:

http://www.kamailio.org/docs/modules/1.3.x/tm.html#AEN535

Ali Soltani wrote:

> Hi,
>  
> I am using openSER as a simple sip proxy for calls between two sip 
> end-points. By snooping the traffic I can verify that the openSER 
> proxies ALL sip messages/responses but non of the following 
> log statements do not log the response messages (180, 200).  Am I 
> missing anything.
>  
>  
> route
> {
>  
>    xlog("(route) usr=$ru method=$rm request_port=$rp received_port=$Rp 
> original port=$op destination_port=$dp src_port=$sp");
>    xlog("(route) reply_status=$rs");
>  
>     if(status=="180")
>     {
>         xlog("this is a 180 Ringing reply");
>     };
>     if(status=="200")
>     {
>         xlog("this is a 200 OK reply");
>     };
> .....
>  
> }
>  
> Thanks,
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Users mailing list
> Users at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users


-- 
Alex Balashov
Evariste Systems
Web    : http://www.evaristesys.com/
Tel    : (+1) (678) 954-0670
Direct : (+1) (678) 954-0671
Mobile : (+1) (706) 338-8599




More information about the Users mailing list