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,
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@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users