diff --git a/src/modules/tm/doc/functions.xml b/src/modules/tm/doc/functions.xml index 67cc5d017c9..ce0e84261c5 100644 --- a/src/modules/tm/doc/functions.xml +++ b/src/modules/tm/doc/functions.xml @@ -1845,6 +1845,24 @@ if (t_is_retr_async_reply()) { ... t_uac_send("OPTIONS", "sip:alice@kamailio.org", "", "", "From: bob@kamailio.org;tag=2w3e\r\nTo: bob@kamailio.org", ""); +... + + + +
+ + <function>t_get_status_code()</function> + + + Return the status code for transaction - the most relevant SIP reply status + code, or -1 in case of error or no status code was set. + + + <function>t_get_status_code</function> usage + +... +$var(ts) = t_get_status_code(); +if($var(ts) == 500) { ... } ...