[OpenSIPS-Users] FW: problem with hep tracing.

Pasan Meemaduma pasandev at ymail.com
Mon Oct 1 01:24:15 EDT 2018


 Hi Johan,
Whats your opensips capturer server config looks like ? Are you using the default opensips config pack with homer installation ?

    On Friday, 28 September 2018, 1:41:58 AM GMT+5:30, johan de clercq <johan at democon.be> wrote:  
 
 <!--#yiv8427216694 _filtered #yiv8427216694 {font-family:Helvetica;panose-1:2 11 6 4 2 2 2 2 2 4;} _filtered #yiv8427216694 {font-family:"Cambria Math";panose-1:2 4 5 3 5 4 6 3 2 4;} _filtered #yiv8427216694 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}#yiv8427216694 #yiv8427216694 p.yiv8427216694MsoNormal, #yiv8427216694 li.yiv8427216694MsoNormal, #yiv8427216694 div.yiv8427216694MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv8427216694 a:link, #yiv8427216694 span.yiv8427216694MsoHyperlink {color:#0563C1;text-decoration:underline;}#yiv8427216694 a:visited, #yiv8427216694 span.yiv8427216694MsoHyperlinkFollowed {color:#954F72;text-decoration:underline;}#yiv8427216694 p.yiv8427216694msonormal0, #yiv8427216694 li.yiv8427216694msonormal0, #yiv8427216694 div.yiv8427216694msonormal0 {margin-right:0in;margin-left:0in;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv8427216694 span.yiv8427216694EmailStyle18 {font-family:"Calibri", sans-serif;color:windowtext;}#yiv8427216694 span.yiv8427216694EmailStyle19 {font-family:"Calibri", sans-serif;color:windowtext;}#yiv8427216694 span.yiv8427216694EmailStyle21 {font-family:"Calibri", sans-serif;color:windowtext;}#yiv8427216694 .yiv8427216694MsoChpDefault {font-size:10.0pt;} _filtered #yiv8427216694 {margin:1.0in 1.0in 1.0in 1.0in;}#yiv8427216694 div.yiv8427216694WordSection1 {}-->
 

  

Hi, 

Using opensips 2.4, 

  

I try to send all the sip messages to a homer server (5.0.5).  I made the opensips config like this:

#### HEP

loadmodule "proto_hep.so"

modparam("proto_hep", "hep_id","[hep_dst]192.168.0.3:9060; version=2")

### activate homer5 CSV like format for the payload

modparam("proto_hep", "homer5_on", 1)

### set the delimiter for the payload 

modparam("proto_hep", "homer5_delim", "##")

#### SIPtrace

loadmodule "siptrace.so"

modparam("siptrace", "trace_id", "[hep_id]uri=hep:hep_dst")

  

… 

Route 

{

…

    if (is_method("REGISTER"))

    {

        sip_trace("hep_id","t","sip");

        if (!www_authorize("", "subscriber"))

        {

            www_challenge("", "0");

            exit;

        }

        

        if (!save("location")){

            sl_reply_error();

            exit;

        }

        exit;

    }

…

    ##initial INVITE

    if (is_method("INVITE") && !has_totag())

    {

        xlog("callid=$ci: Route[0]: initial INVITE is coming in from A: $fU to B: $rU");

        xlog("callid=$ci: Route[0]: let's do accounting first");

        do_accounting("db","cdr");

        sip_trace("hep_id","d","sip");

… 

}

  

Opensips sends the packets correctly, see attached file. 

Unfortunately, homer keeps complaining …. 

Sep 27 18:29:49 ns3019374 homer[22750]: ERROR: <core> [core/lvalue.c:346]: lval_pvar_assign(): non existing right pvar

Sep 27 18:29:49 ns3019374 homer[22750]: ERROR: <core> [core/lvalue.c:404]: lval_assign(): assignment failed at pos: (1049,30-1049,40)

Sep 27 18:29:49 ns3019374 homer[22750]: ERROR: <script>: ANOTHER HEP CHUNK TYPE: ;

Sep 27 18:29:49 ns3019374 homer[22753]: ERROR: <script>: ANOTHER HEP CHUNK TYPE: ;

Sep 27 18:29:49 ns3019374 homer[22751]: ERROR: <script>: ANOTHER HEP CHUNK TYPE: ;

Sep 27 18:29:49 ns3019374 homer[22752]: ERROR: <script>: ANOTHER HEP CHUNK TYPE: ;

Sep 27 18:29:49 ns3019374 homer[22749]: ERROR: <script>: ANOTHER HEP CHUNK TYPE: ;

Sep 27 18:29:49 ns3019374 homer[22750]: ERROR: <script>: ANOTHER HEP CHUNK TYPE: ;

Sep 27 18:29:49 ns3019374 homer[22753]: ERROR: <script>: ANOTHER HEP CHUNK TYPE: ;

Sep 27 18:29:49 ns3019374 homer[22751]: ERROR: <script>: ANOTHER HEP CHUNK TYPE: ;

Sep 27 18:29:49 ns3019374 homer[22752]: ERROR: <script>: ANOTHER HEP CHUNK TYPE: ;

Sep 27 18:29:49 ns3019374 homer[22750]: ERROR: <script>: ANOTHER HEP CHUNK TYPE: ;

Sep 27 18:29:49 ns3019374 homer[22749]: ERROR: db_mysql [km_dbase.c:127]: db_mysql_submit_query(): driver error on query: Incorrect string value: '\xC4\x1$

Sep 27 18:29:49 ns3019374 homer[22749]: ERROR: <core> [db_query.c:235]: db_do_insert_cmd(): error while submitting query

Sep 27 18:29:49 ns3019374 homer[22749]: ERROR: db_mysql [km_dbase.c:127]: db_mysql_submit_query(): driver error on query: Incorrect string value: '\xC4\x1$

Sep 27 18:29:49 ns3019374 homer[22749]: ERROR: <core> [db_query.c:235]: db_do_insert_cmd(): error while submitting query

Sep 27 18:29:49 ns3019374 homer[22749]: ERROR: db_mysql [km_dbase.c:127]: db_mysql_submit_query(): driver error on query: Incorrect string value: '\xC4\x1$

Sep 27 18:29:49 ns3019374 homer[22749]: ERROR: <core> [db_query.c:235]: db_do_insert_cmd(): error while submitting query

Sep 27 18:29:49 ns3019374 homer[22749]: ERROR: db_mysql [km_dbase.c:127]: db_mysql_submit_query(): driver error on query: Incorrect string value: '\xC4\x1$

Sep 27 18:29:49 ns3019374 homer[22749]: ERROR: <core> [db_query.c:235]: db_do_insert_cmd(): error while submitting query

Sep 27 18:29:49 ns3019374 homer[22750]: ERROR: <core> [core/lvalue.c:346]: lval_pvar_assign(): non existing right pvar

Sep 27 18:29:49 ns3019374 homer[22750]: ERROR: <core> [core/lvalue.c:404]: lval_assign(): assignment failed at pos: (1049,30-1049,40)

  

Can somebody please tell me what I am overlooking ? 

  

I know that this should go to the homer guys, unfortunately their reply was “Hi @johandeclercqdemocon this would suggest non-HEP packets are entering the circuit ... could be keep alives or anything really. Are valid messages captured and displayed correctly?”

As I am quite sure that opensips is correct, what could be the problem ?

  



Johan De Clercq, Managing Director
Democon bvba - Ooigemstraat 41 - 8780 Oostrozebeke

Tel +3256980990 – GSM +32478720104

  
_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20181001/476558c7/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 15602 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20181001/476558c7/attachment-0001.png>


More information about the Users mailing list