Table of Contents
List of Examples
Table of Contents
This module collects extensions from Kamailio TM module.
Kamailio TM (Transaction Management) module documentation is available at: http://www.kamailio.org/docs/modules/1.5.x/tm.html
The following modules must be loaded before this module:
tm - transaction management.
Cancel branches of an active SIP transaction. The function can be called for a SIP reply that will identify the current branch.
Parameter can be:.
all - cancel all branches.
others - cancel all branches but the current one.
this - cancel current branch.
This function can be used in ONREPLY_ROUTE.
Example 1.1. t_cancel_branches
usage
... if (t_cancel_branches("all")) { xlog("cancelled all branches\n"); } ...
$T_branch_idx
$T_reply_code
$T_req(pv)
$T_rpl(pv)
Exported pseudo-variables are documented at http://www.kamailio.org/dokuwiki/.
Generates and sends a local SIP request.
Parameters:
method - request method
RURI - request SIP URI
NEXT HOP - next hop SIP URI (OBP); use “.” if no value.
socket - local socket to be used for sending the request; use “.” if no value.
headers - set of additional headers to be added to the request; at least “From” and “To” headers must be specify)
body - (optional, may not be present) request body (if present, requires the “Content-Type” and “Content-length” headers)
Generates and sends a CANCEL for an existing local SIP request.
Parameters:
callid - callid of the INVITE request to be cancelled.
cseq - cseq of the INVITE request to be cancelled.
Generates and sends a reply for an existing inbound SIP transaction.
Parameters:
code - reply code
reason - reason phrase.
trans_id - transaction identifier (has the hash_entry:label format)
to_tag - To tag to be added to TO header
new_headers - extra headers to be appended to the reply; use a dot (“.”) char only if there are no headers;
body - (optional, may not be present) reply body (if present, requires the “Content-Type” and “Content-length” headers)
Exported statistics are listed in the next sections. All statistics except “inuse_transactions” can be reset.