Module: kamailio Branch: master Commit: 5aaea015c320423f08a92f60fb8b2bae59b40936 URL: https://github.com/kamailio/kamailio/commit/5aaea015c320423f08a92f60fb8b2bae59b40936
Author: Kamailio Dev <kamailio....@kamailio.org> Committer: Kamailio Dev <kamailio....@kamailio.org> Date: 2017-02-06T11:16:13+01:00 modules: readme files regenerated - cfgt ... [skip ci] --- Modified: src/modules/cfgt/README --- Diff: https://github.com/kamailio/kamailio/commit/5aaea015c320423f08a92f60fb8b2bae59b40936.diff Patch: https://github.com/kamailio/kamailio/commit/5aaea015c320423f08a92f60fb8b2bae59b40936.patch --- diff --git a/src/modules/cfgt/README b/src/modules/cfgt/README index d65d560..8a098a6 100644 --- a/src/modules/cfgt/README +++ b/src/modules/cfgt/README @@ -30,6 +30,7 @@ Victor Seva 3.3. callid_prefix (string) 4. Usage + 5. Report format List of Examples @@ -54,6 +55,7 @@ Chapter 1. Admin Guide 3.3. callid_prefix (string) 4. Usage + 5. Report format 1. Overview @@ -157,3 +159,36 @@ modparam("debugger", "log_level_name", "exec") modparam("debugger", "cfgtest", 1) #!endif ... + +5. Report format + + cfgt generates a json file per request processed. The files are created + at <basedir>/<prefix>/<message_id>.json. The âmessage_idâ is a sequence + starting with 1 per scenario defined by âprefixâ module parameter. + + The json report has three top members, âflowâ, âsip_inâ and âsip_outâ + describing, the flow of the configuration routes, the SIP message + processed and the SIP messages sent during that process execution. + + The flow of the configuration routes is defined by an array of routes + with the content of the variables controled by âmaskâ module parameter. + + Each routename has a prefix as âstart|â, âreturn|â, when the route + finish its execution and âexit|â or âdrop|â if the route finish its + execution with exit or drop. +{ + "flow": [{ + "start|DEFAULT_ROUTE": { + "$var(userprov_domain)": "spce.test", + "$fU": "testuser1002", + [...]}, + "start|ROUTE_NET_INFO": {[...]}, + "return|ROUTE_NET_INFO": {[...]}, + [...] + "start|ROUTE_AUTH": {[...]}, + "exit|ROUTE_AUTH": {[...]}, + }, + "sip_in": ["INVITE sip:4311...@spce.test SIP/2.0\r\nRecord-Route: [...]\r\n"], + "sip_out": ["SIP/2.0 100 Trying\r\nVia: SIP/2.0/UDP 127.0.0.1[...]\r\n", "SIP/2 +.0 407 Proxy Authentication Required[...]\r\n"] +}
_______________________________________________ sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev