[OpenSIPS-Users] Sending HEP Packets

Social Boh social at bohboh.info
Sun Nov 12 17:20:29 EST 2017


In my case don't work... My configuration (OpenSIPs 2.3.2):

listen=hep_udp:127.0.0.1:6060

#### PROTO_HEP Module
loadmodule "proto_hep.so"
modparam("proto_hep", "hep_id", "[homer] 1.2.3.4:9060; version=2")
modparam("proto_hep", "homer5_on", 1)
modparam("proto_hep", "homer5_delim", "#")
modparam("proto_hep", "hep_capture_id", 12345)

#### SIPTRACE Module
loadmodule "siptrace.so"
modparam("siptrace", "trace_on", 1)
modparam("siptrace", "trace_id", "[traceid]uri=hep:homer")

in the script for initial INVITE:

sip_trace("traceid","M","sip");

the Error:

ERROR:proto_hep:hep_udp_send: 
sendto(sock,0x7fb60874b710,1101,0,0x7fb608749bd0,16): Invalid argument(22)
CRITICAL:proto_hep:hep_udp_send: invalid sendtoparameters#012one 
possible reason is the server is bound to localhost and#012attempts to 
send to the net
ERROR:proto_hep:msg_send: send() to 1.2.3.4:9060 for proto hep_udp/8 failed
ERROR:proto_hep:send_hep_message: Cannot send hep message!
ERROR:siptrace:save_siptrace: Failed to duplicate with hep to <1.2.3.4:9060>

1.2.3.4 is the Homer SIP Capture Server remote IP

Any hint?

---
I'm SoCIaL, MayBe

El 06/11/2017 a las 03:59, Răzvan Crainea escribió:
> Hello!
>
> Shortly, you need to follow this logic:
> 1. Define a listener:
> listen=hep_udp:127.0.0.1:6060
>
> 2. Define a HEP destination to capture the traffic to[1].
> modparam("proto_hep", "hep_id", "[homer_id]1.2.3.4:9060 
> <http://1.2.3.4:9060>; version=2")
>
> 3. Next, define a tracing ID - an idea that describes where a specific 
> package should be sent[2]
> modparam("siptrace", "trace_id", "[to_homer_tid]uri=hep:homer_id")
>
> 4. Start tracing the data you want by calling sip_trace() with the 
> destination provisioned earlier and the scope you want:
> sip_trace("to_homer_tid", "m", "sip"); # this traces only the SIP message
>
> Hope it is clear now.
>
> [1] 
> http://www.opensips.org/html/docs/modules/2.4.x/proto_hep.html#idp232096
> [2] 
> http://www.opensips.org/html/docs/modules/2.4.x/siptrace.html#idp5904384
> [3] 
> http://www.opensips.org/html/docs/modules/2.4.x/siptrace.html#idp5914144
>
> Best regards,
> Răzvan Crainea
> OpenSIPS Developer
> www.opensips-solutions.com
> On 11/05/2017 09:56 AM, Karsten Horsmann wrote:
>> Hi,
>>
>> you need also to mark packets you are interested to be sipcaptured in 
>> your route.
>>
>> Kind regards
>> Karsten Horsmann
>>
>>
>> Am 03.11.2017 8:32 nachm. schrieb "Social Boh" <social at bohboh.info 
>> <mailto:social at bohboh.info>>:
>>
>>     Hello,
>>
>>     I think I don't completely understood the logic behind proto_hep
>>     and siptrace modules on OpenSIPs 2.3
>>
>>     I'd like send SIP traffic from OpenSIPs to a external Homer SIP
>>     Capture Server (with Kamailio) so I know I have to configure
>>     proto_hep and siptrace modules.
>>
>>     I think the logic is: Send SIP traffic from siptrace to hep listener:
>>
>>     modparam("siptrace", "trace_id", "[tid]uri=sip:127.0.0.1:6060
>>     <http://127.0.0.1:6060>")
>>
>>     listen=hep_udp:127.0.0.1:6060 <http://127.0.0.1:6060>
>>
>>     then from the proto_hep module send the HEP packets to Node Capture:
>>
>>     modparam("proto_hep", "hep_id", "[homer]1.2.3.4:9060
>>     <http://1.2.3.4:9060>; version=2")
>>
>>     This configuration not works.
>>
>>     This document not helping me very much:
>>
>>     http://www.opensips.org/Documentation/Tutorials-Tracing
>>     <http://www.opensips.org/Documentation/Tutorials-Tracing>
>>
>>     Any hint, please?
>>
>>     Thank you
>>
>>     -- 
>>     ---
>>     I'm SoCIaL, MayBe
>>
>>
>>     _______________________________________________
>>     Users mailing list
>>     Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>     <http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
>>
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________
> 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/20171112/e2b5878d/attachment.html>


More information about the Users mailing list