Hi,
What is the Pseudo-variables for "Status-Line" filed of SIP response messages (2xx, 3xx,4xx,5xx,6xx)? i.e., is there a Pseudo-variables to display the SIP response code?
Thanks, R
On 12/29/2011 03:21 PM, Robert R wrote:
What is the Pseudo-variables for "Status-Line" filed of SIP response messages (2xx, 3xx,4xx,5xx,6xx)? i.e., is there a Pseudo-variables to display the SIP response code?
You can test it with tm function t_check_status(...) or get it in a config variable $T_reply_code:
http://www.kamailio.org/wiki/cookbooks/3.2.x/pseudovariables#t_reply_code
Thank a lot. $T_reply_code works. I tried all variables in pv doc ($rc, $err.rcode, $rs ... ) and none of them works,
On Thu, Dec 29, 2011 at 9:27 AM, Andrew Pogrebennyk < apogrebennyk@sipwise.com> wrote:
On 12/29/2011 03:21 PM, Robert R wrote:
What is the Pseudo-variables for "Status-Line" filed of SIP response messages (2xx, 3xx,4xx,5xx,6xx)? i.e., is there a Pseudo-variables to display the SIP response code?
You can test it with tm function t_check_status(...) or get it in a config variable $T_reply_code:
http://www.kamailio.org/wiki/cookbooks/3.2.x/pseudovariables#t_reply_code
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
On 12/29/2011 03:36 PM, Robert R wrote:
Thank a lot. $T_reply_code works. I tried all variables in pv doc ($rc, $err.rcode, $rs ... ) and none of them works,
Actually the $rs pseudo-variable should also work as described here: http://sip-router.org/wiki/cookbooks/pseudo-variables/devel#sip_reply_s_stat...
Good that it helps.
On 12/29/11 3:42 PM, Andrew Pogrebennyk wrote:
On 12/29/2011 03:36 PM, Robert R wrote:
Thank a lot. $T_reply_code works. I tried all variables in pv doc ($rc, $err.rcode, $rs ... ) and none of them works,
Actually the $rs pseudo-variable should also work as described here: http://sip-router.org/wiki/cookbooks/pseudo-variables/devel#sip_reply_s_stat...
Good that it helps.
$rs works in onreply_routes, but I guess Robert needed it in failure_route, where the $T_reply_code is the right option.
Cheers, Daniel