|
@@ -11,7 +11,7 @@ Daniel-Constantin Mierla
|
|
|
|
|
|
<[email protected]>
|
|
<[email protected]>
|
|
|
|
|
|
- Copyright © 2009 Daniel-Constantin Mierla
|
|
|
|
|
|
+ Copyright © 2009 Daniel-Constantin Mierla
|
|
__________________________________________________________________
|
|
__________________________________________________________________
|
|
|
|
|
|
Table of Contents
|
|
Table of Contents
|
|
@@ -147,7 +147,7 @@ Chapter 1. Admin Guide
|
|
3.7. t_suspend()
|
|
3.7. t_suspend()
|
|
3.8. t_continue(tindex, tlabel, rtname)
|
|
3.8. t_continue(tindex, tlabel, rtname)
|
|
|
|
|
|
-3.1. t_cancel_branches(which)
|
|
|
|
|
|
+3.1. t_cancel_branches(which)
|
|
|
|
|
|
Cancel branches of an active SIP transaction. The function can be
|
|
Cancel branches of an active SIP transaction. The function can be
|
|
called for a SIP reply that will identify the current branch.
|
|
called for a SIP reply that will identify the current branch.
|
|
@@ -166,7 +166,7 @@ if (t_cancel_branches("all")) {
|
|
}
|
|
}
|
|
...
|
|
...
|
|
|
|
|
|
-3.2. t_cancel_callid(callid, cseq, flag)
|
|
|
|
|
|
+3.2. t_cancel_callid(callid, cseq, flag)
|
|
|
|
|
|
Cancel first INVITE transaction identified by callid and cseq. It sets
|
|
Cancel first INVITE transaction identified by callid and cseq. It sets
|
|
the flag if the value is greater than zero
|
|
the flag if the value is greater than zero
|
|
@@ -185,7 +185,7 @@ if (t_cancel_callid("123qaz", "5", "22")) {
|
|
}
|
|
}
|
|
...
|
|
...
|
|
|
|
|
|
-3.3. t_reply_callid(callid, cseq, code, reason)
|
|
|
|
|
|
+3.3. t_reply_callid(callid, cseq, code, reason)
|
|
|
|
|
|
Send reply to first INVITE transaction identified by callid and cseq.
|
|
Send reply to first INVITE transaction identified by callid and cseq.
|
|
|
|
|
|
@@ -204,7 +204,7 @@ if (t_reply_callid("123qaz", "5", "458", "Replied remotely")) {
|
|
}
|
|
}
|
|
...
|
|
...
|
|
|
|
|
|
-3.4. t_flush_flags()
|
|
|
|
|
|
+3.4. t_flush_flags()
|
|
|
|
|
|
Flush the flags from current SIP message into the already created
|
|
Flush the flags from current SIP message into the already created
|
|
transaction. It make sense only in routing block if the transaction was
|
|
transaction. It make sense only in routing block if the transaction was
|
|
@@ -217,7 +217,7 @@ if (t_reply_callid("123qaz", "5", "458", "Replied remotely")) {
|
|
t_flush_flags();
|
|
t_flush_flags();
|
|
...
|
|
...
|
|
|
|
|
|
-3.5. t_is_failure_route()
|
|
|
|
|
|
+3.5. t_is_failure_route()
|
|
|
|
|
|
Returns true if the top-executed route block is failure_route.
|
|
Returns true if the top-executed route block is failure_route.
|
|
|
|
|
|
@@ -234,7 +234,7 @@ route[abc] {
|
|
}
|
|
}
|
|
...
|
|
...
|
|
|
|
|
|
-3.6. t_is_branch_route()
|
|
|
|
|
|
+3.6. t_is_branch_route()
|
|
|
|
|
|
Returns true if the top-executed route block is branch_route.
|
|
Returns true if the top-executed route block is branch_route.
|
|
|
|
|
|
@@ -251,7 +251,7 @@ route[abc] {
|
|
}
|
|
}
|
|
...
|
|
...
|
|
|
|
|
|
-3.7. t_suspend()
|
|
|
|
|
|
+3.7. t_suspend()
|
|
|
|
|
|
Suspend the execution of SIP request in a transaction. If transaction
|
|
Suspend the execution of SIP request in a transaction. If transaction
|
|
was not created yet, it is created by this function. Returns true in
|
|
was not created yet, it is created by this function. Returns true in
|
|
@@ -269,7 +269,7 @@ if(t_suspend())
|
|
}
|
|
}
|
|
...
|
|
...
|
|
|
|
|
|
-3.8. t_continue(tindex, tlabel, rtname)
|
|
|
|
|
|
+3.8. t_continue(tindex, tlabel, rtname)
|
|
|
|
|
|
Continue the execution of the transaction identified by tindex and
|
|
Continue the execution of the transaction identified by tindex and
|
|
tlabel with the actions defined in route[rtname].
|
|
tlabel with the actions defined in route[rtname].
|
|
@@ -293,6 +293,7 @@ tcontinue('123', '456', 'MYROUTE');
|
|
|
|
|
|
* $T_branch_idx
|
|
* $T_branch_idx
|
|
* $T_reply_code
|
|
* $T_reply_code
|
|
|
|
+ * $T_reply_reason
|
|
* $T_req(pv)
|
|
* $T_req(pv)
|
|
* $T_rpl(pv)
|
|
* $T_rpl(pv)
|
|
|
|
|
|
@@ -307,22 +308,22 @@ tcontinue('123', '456', 'MYROUTE');
|
|
5.4. t_reply
|
|
5.4. t_reply
|
|
5.5. t_reply_callid
|
|
5.5. t_reply_callid
|
|
|
|
|
|
-5.1. t_uac_dlg
|
|
|
|
|
|
+5.1. t_uac_dlg
|
|
|
|
|
|
Generates and sends a local SIP request.
|
|
Generates and sends a local SIP request.
|
|
|
|
|
|
Parameters:
|
|
Parameters:
|
|
* method - request method
|
|
* method - request method
|
|
* RURI - request SIP URI
|
|
* 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 "."
|
|
|
|
|
|
+ * 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.
|
|
if no value.
|
|
* headers - set of additional headers to be added to the request; at
|
|
* headers - set of additional headers to be added to the request; at
|
|
- least "From" and "To" headers must be specify)
|
|
|
|
|
|
+ least “From� and “To� headers must be specify)
|
|
* body - (optional, may not be present) request body (if present,
|
|
* body - (optional, may not be present) request body (if present,
|
|
- requires the "Content-Type" and "Content-length" headers)
|
|
|
|
|
|
+ requires the “Content-Type� and “Content-length� headers)
|
|
|
|
|
|
-5.2. t_uac_cancel
|
|
|
|
|
|
+5.2. t_uac_cancel
|
|
|
|
|
|
Generates and sends a CANCEL for an existing local SIP request.
|
|
Generates and sends a CANCEL for an existing local SIP request.
|
|
|
|
|
|
@@ -330,14 +331,14 @@ tcontinue('123', '456', 'MYROUTE');
|
|
* callid - callid of the INVITE request to be cancelled.
|
|
* callid - callid of the INVITE request to be cancelled.
|
|
* cseq - cseq of the INVITE request to be cancelled.
|
|
* cseq - cseq of the INVITE request to be cancelled.
|
|
|
|
|
|
-5.3. t_hash
|
|
|
|
|
|
+5.3. t_hash
|
|
|
|
|
|
Gets information about the load of TM internal hash table.
|
|
Gets information about the load of TM internal hash table.
|
|
|
|
|
|
Parameters:
|
|
Parameters:
|
|
* none
|
|
* none
|
|
|
|
|
|
-5.4. t_reply
|
|
|
|
|
|
+5.4. t_reply
|
|
|
|
|
|
Generates and sends a reply for an existing inbound SIP transaction.
|
|
Generates and sends a reply for an existing inbound SIP transaction.
|
|
|
|
|
|
@@ -347,11 +348,11 @@ tcontinue('123', '456', 'MYROUTE');
|
|
* trans_id - transaction identifier (has the hash_entry:label format)
|
|
* trans_id - transaction identifier (has the hash_entry:label format)
|
|
* to_tag - To tag to be added to TO header
|
|
* to_tag - To tag to be added to TO header
|
|
* new_headers - extra headers to be appended to the reply; use a dot
|
|
* new_headers - extra headers to be appended to the reply; use a dot
|
|
- (".") char only if there are no headers;
|
|
|
|
|
|
+ (“.�) char only if there are no headers;
|
|
* body - (optional, may not be present) reply body (if present,
|
|
* body - (optional, may not be present) reply body (if present,
|
|
- requires the "Content-Type" and "Content-length" headers)
|
|
|
|
|
|
+ requires the “Content-Type� and “Content-length� headers)
|
|
|
|
|
|
-5.5. t_reply_callid
|
|
|
|
|
|
+5.5. t_reply_callid
|
|
|
|
|
|
Generates and sends a reply for an existing inbound SIP transaction.
|
|
Generates and sends a reply for an existing inbound SIP transaction.
|
|
|
|
|
|
@@ -362,9 +363,9 @@ tcontinue('123', '456', 'MYROUTE');
|
|
* cseq - SIP CSeq header
|
|
* cseq - SIP CSeq header
|
|
* to_tag - To tag to be added to TO header
|
|
* to_tag - To tag to be added to TO header
|
|
* new_headers - extra headers to be appended to the reply; use a dot
|
|
* new_headers - extra headers to be appended to the reply; use a dot
|
|
- (".") char only if there are no headers;
|
|
|
|
|
|
+ (“.�) char only if there are no headers;
|
|
* body - (optional, may not be present) reply body (if present,
|
|
* body - (optional, may not be present) reply body (if present,
|
|
- requires the "Content-Type" and "Content-length" headers)
|
|
|
|
|
|
+ requires the “Content-Type� and “Content-length� headers)
|
|
|
|
|
|
6. Statistics
|
|
6. Statistics
|
|
|
|
|
|
@@ -381,7 +382,7 @@ tcontinue('123', '456', 'MYROUTE');
|
|
6.11. inuse_transactions
|
|
6.11. inuse_transactions
|
|
|
|
|
|
Exported statistics are listed in the next sections. All statistics
|
|
Exported statistics are listed in the next sections. All statistics
|
|
- except "inuse_transactions" can be reset.
|
|
|
|
|
|
+ except “inuse_transactions� can be reset.
|
|
|
|
|
|
6.1. received_replies
|
|
6.1. received_replies
|
|
|
|
|