[OpenSIPS-Users] I need some help on a beb config of opensips .
Bogdan-Andrei Iancu
bogdan at opensips.org
Mon Dec 29 09:01:20 UTC 2025
Hi,
Try using a local_route{} and do tracing also from there.
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
https://www.opensips-solutions.com
https://www.siphub.com
On 17.12.2025 08:01, Sasmita Panda via Users wrote:
> Hi All ,
>
> I have implemented one openisps b2b config with event_datagram and
> mi_datagram module . Openisps receives the INvite and publishes the
> data in the event socket and another app listens to that and answers
> the call .
>
> I am trying to capture the call flow with the tracer and hep module to
> see the data in Homer GUI . I am not able to capture the BYE message
> when opensips is generating the BYE . If its receiving BYE that is
> getting capture although .
>
> Below is my config :
>
>
> ####### Global Parameters #########
>
> log_level=5
> xlog_level=2
> stderror_enabled=yes
> syslog_enabled=yes
> syslog_facility=LOG_LOCAL0
> udp_workers=tcpworker
> tcp_workers=tcpworker
>
> socket=udp:private-ip:5070
> socket=tcp:private-ip:5070
> ####### Modules Section ########
>
> socket=hep_tcp:private-ip:6061
> socket=hep_udp:private-ip:6062
>
>
> #set module path
> mpath="/usr/lib/x86_64-linux-gnu/opensips/modules/"
>
> loadmodule "tm.so"
> loadmodule "rr.so"
> loadmodule "sipmsgops.so"
> loadmodule "signaling.so"
> loadmodule "cfgutils.so"
> loadmodule "mi_fifo.so"
> loadmodule "proto_tcp.so"
> loadmodule "proto_udp.so"
> loadmodule "sl.so"
> loadmodule "event_datagram.so"
> loadmodule "mi_datagram.so"
> loadmodule "b2b_entities.so"
>
> #loadmodule "dialog.so"
>
> modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")
>
> modparam("tm", "fr_timeout", 2)
> modparam("tm", "fr_inv_timeout", 3)
> modparam("tm", "restart_fr_on_each_reply", 0)
> modparam("tm", "onreply_avp_mode", 1)
>
> loadmodule "mi_http.so"
> loadmodule "httpd.so"
>
>
> modparam("httpd", "ip", "private-ip")
> modparam("httpd", "port", 8000)
>
> modparam("mi_datagram", "socket_name", "udp:private-ip:8002")
>
>
> modparam("b2b_entities", "script_req_route", "b2b_request_route")
>
> modparam("b2b_entities", "script_reply_route", "b2b_reply_trace")
>
> ## modules for homer
> #loadmodule "sipcapture.so"
> loadmodule "tracer.so"
> loadmodule "proto_hep.so"
> loadmodule "proto_tcp.so"
>
>
> modparam("proto_hep", "hep_async", 1)
> #modparam("proto_hep", "homer5_on", 1)
> modparam("proto_hep", "hep_capture_id", 1)
>
> modparam("proto_hep", "hep_id","[hep_dst] homer-domain:homer-port;
> transport=udp; version=3")
>
> modparam("tracer", "trace_on", 1)
> modparam("tracer", "trace_id", "[tid]uri=hep:hep_dst")
>
>
> ####### Routing Logic ########
>
> route {
>
>
> #route(to_homer);
> #$var(trace_id) = "tid";
>
>
> if (!is_method("INVITE") || has_totag()) {
> send_reply(405, "Method not allowed!\n");
> exit;
> }
>
> if (is_method("INVITE") && !has_totag()) {
> trace("tid", "t");
> }
>
> ua_session_server_init($var(b2b_key), "drbh");
> xlog("Started new call for $var(b2b_key)\n");
> exit;
> }
>
> route[b2b_request_route] {
> # This route is called specifically for B2B internal requests like BYE
> trace("tid", "t", "sip|xlog");
>
> # Arm a specific reply route for the 200 OK of this BYE
> if (is_method("BYE")) {
> t_on_reply("trace_bye_reply");
> }
> }
>
> onreply_route[trace_bye_reply] {
> # This will capture the 200 OK for the BYE
> trace("tid", "m", "sip|xlog");
> }
>
> route[b2b_reply_trace] {
> # Trace the 180, 200 OK, etc.
> # This replaces your failing onreply_route logic
> trace("tid", "t", "sip|xlog");
> }
>
> I know I may be missing a very basic thing . But I have tried so many
> options and it's still not working . Please help .
>
> */Thanks & Regards/*
> /Sasmita Panda/
> /Senior Network Testing and Software Engineer/
> /3CLogic , ph:07827611765/
>
> _______________________________________________
> 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/20251229/621a2380/attachment-0001.html>
More information about the Users
mailing list