From notifications@github.com Fri Oct 5 17:01:54 2018 From: Marco Capetta To: sr-dev@lists.kamailio.org Subject: [sr-dev] [kamailio/kamailio] cfgtrace reports strange call route (#1668) Date: Fri, 05 Oct 2018 08:01:45 -0700 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1612478150==" --===============1612478150== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Kamailio version: 5.1.6 (x86_64/linux) cfgtrace reports strange call route flow going back and forward from the pare= nt route. For example, if the cfg file looks like the following: ############################################### loadmodule "cfgt.so" modparam("cfgt", "mask", 30) modparam("cfgt", "basedir", "/tmp/cfgtest/") loadmodule "debugger.so" modparam("debugger", "cfgtrace", 1) modparam("debugger", "mod_level_mode", 1) modparam("debugger", "mod_hash_size", 4) modparam("debugger", "mod_level", "core=3D3") modparam("debugger", "cfgtest", 1) request_route { route(ENTRY); route(TEST_1); } route[ENTRY] { xlog("L_NOTICE", "New request\n"); } route[TEST_2] { xlog("L_NOTICE", "End\n"); } route[TEST_1] { xlog("L_NOTICE", "I'm here\n"); if(is_method("BYE")) { xlog("L_NOTICE", "I'm here, again\n"); route(TEST_2); } xlog("L_NOTICE", "I'm still here\n"); return; } ############################################### If I send an INVITE message, I get the following cfgtrace: DEBUG: [core/parser/msg_parser.c:89]: get_hdr_field(): found end of he= ader ERROR: *** cfgtrace:request_route=3D[DEFAULT_ROUTE] c=3D[/etc/kamailio/proxy/= kamailio.cfg] l=3D472 a=3D5 n=3Droute ERROR: *** cfgtrace:request_route=3D[ENTRY] c=3D[/etc/kamailio/proxy/kamailio= .cfg] l=3D479 a=3D26 n=3Dxlog NOTICE: