[OpenSIPS-Users] problem with hep tracing.

johan de clercq johan at democon.be
Thu Sep 27 14:56:38 EDT 2018


Oh I forgot to say : opensips version used is 2.4 

 

Best regards, 

 

From: johan de clercq <johan at democon.be> 
Sent: Thursday, September 27, 2018 8:54 PM
To: 'OpenSIPS users mailling list' <users at lists.opensips.org>
Subject: FW: problem with hep tracing. 

 

 

Hi, 

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 <https://github.com/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

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20180927/a3d833d9/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/20180927/a3d833d9/attachment-0001.png>


More information about the Users mailing list