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

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Oct 2 04:21:17 EDT 2018


Hi Johan,

Please make a pcap capture of the HEP packet that produces those errors 
in Homer.

Also, in the capturing server, what is the 1049 line in the script ?

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   http://www.opensips-solutions.com
OpenSIPS Bootcamp 2018
   http://opensips.org/training/OpenSIPS_Bootcamp_2018/

On 10/01/2018 05:49 PM, johan de clercq wrote:
>
> Bogdan,
>
> I changed the config like this.
>
> 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)
>
> #### SIPtrace
>
> loadmodule "siptrace.so"
>
> modparam("siptrace", "trace_id", "[hep_id]uri=hep:hep_dst")
>
> Result is the same nothing is captured.
>
> *From:*Bogdan-Andrei Iancu <bogdan at opensips.org>
> *Sent:* Monday, October 1, 2018 4:12 PM
> *To:* OpenSIPS users mailling list <users at lists.opensips.org>; Johan 
> De Clercq <Johan at democon.be>; Pasan Meemaduma <pasandev at ymail.com>
> *Subject:* Re: [OpenSIPS-Users] FW: problem with hep tracing.
>
> Hi Johan,
>
> Are you sure the HOMER capturing server is an OpenSIPS ?
>
> Also I see you use a non-standard HEP delimited when doing the tracing 
> in OpenSIPS - are you sure you aligned this with the capturing server 
> in Homer ??
>
> Regards,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developer
>    http://www.opensips-solutions.com
> OpenSIPS Bootcamp 2018
>    http://opensips.org/training/OpenSIPS_Bootcamp_2018/
>
> On 10/01/2018 04:22 PM, Johan De Clercq wrote:
>
>     All default.
>
>     On Mon, 1 Oct 2018, 07:33 Pasan Meemaduma via Users,
>     <users at lists.opensips.org <mailto:users at lists.opensips.org>> wrote:
>
>         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 <mailto:johan at democon.be>> wrote:
>
>         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
>         <http://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 ?
>
>         cid:F3100D46-F00D-4610-87ED-3E91DA790A82
>
>         Johan De Clercq, Managing Director
>         Democon bvba - Ooigemstraat 41 - 8780 Oostrozebeke
>
>         Tel +3256980990– GSM +32478720104
>
>         _______________________________________________
>         Users mailing list
>         Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>         http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>         _______________________________________________
>         Users mailing list
>         Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>         http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
>
>     _______________________________________________
>
>     Users mailing list
>
>     Users at lists.opensips.org <mailto: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/20181002/7379b261/attachment-0001.html>


More information about the Users mailing list