diff --git a/src/modules/sipcapture/doc/sipcapture_admin.xml b/src/modules/sipcapture/doc/sipcapture_admin.xml index c5590b3c1c5..8dc500d0cf3 100644 --- a/src/modules/sipcapture/doc/sipcapture_admin.xml +++ b/src/modules/sipcapture/doc/sipcapture_admin.xml @@ -203,7 +203,7 @@ modparam("sipcapture", "capture_on", 1)
- <varname>capture_mode</varname> (integer) + <varname>capture_mode</varname> (str) This parameter can be used for defining a capture mode which can be used in the sip_capture calls as a parameter. A capture mode has a name and some parameters. @@ -518,7 +518,7 @@ modparam("sipcapture", "nonsip_hook", 1) Functions
- <function moreinfo="none">sip_capture([table])</function> + <function moreinfo="none">sip_capture([table], [cmode])</function> Store the current processed HEP/IPIP SIP message in database. It is stored in the @@ -532,10 +532,14 @@ modparam("sipcapture", "nonsip_hook", 1) as an argument of the sip_capture function. + + cmode - The reference to the capture_mode + parameter. + + - This function can be used from REQUEST_ROUTE, FAILURE_ROUTE, - ONREPLY_ROUTE, BRANCH_ROUTE. + This function can be used from ANY_ROUTE. Default value is "NULL". @@ -548,12 +552,14 @@ sip_capture(); ... sip_capture("sip_capture_call_20160124"); ... +sip_capture("", "cmode"); +...
- <function moreinfo="none">report_capture([table],[data])</function> + <function moreinfo="none">report_capture([table], [cid], [data])</function> Store the current processed HEP REPORT message in database. @@ -563,13 +569,18 @@ sip_capture("sip_capture_call_20160124"); table - The table where REPORT message will be stored. - data - The custom report data. + + + cid - The correlation id. + + + + data - The custom report data in JSON format. - This function can be used from REQUEST_ROUTE, FAILURE_ROUTE, - ONREPLY_ROUTE, BRANCH_ROUTE. + This function can be used from ANY_ROUTE. Default value is "NULL". @@ -580,14 +591,32 @@ sip_capture("sip_capture_call_20160124"); ... report_capture(); ... -report_capture("report_data"); +report_capture("report_data", "$ci"); ... -report_capture("report_data", "{\"MOS\":4.1,\"PACKET_LOST\":100"}); +report_capture("report_data", "$ci", "{\"MOS\":4.1,\"PACKET_LOST\":100"}); ...
- +
+ + <function moreinfo="none">float2int(fval, ival)</function> + + + Return the value of atof(fval) * atoi(ival). On case the result is 0, + then -1 is returned. + + + This function can be used from ANY_ROUTE. + + + <function>report_capture()</function> usage + +... +$var(res) = float2int("10.5", "1"); +... + +