Dear Sender,

Thank you for your email. I am no longer working for Dstny.
Any emails sent to this address will remain unread.

Kindly forward your correspondence to  [email protected].


Thank you and best regards,

Dstny

This electronic transmission (and any attached document) is intended exclusively for the person or entity to whom it is addressed and may contain confidential and/or privileged material. Any disclosure, copying, distribution or other action based upon the information by persons or entities other than the intended recipient is prohibited. If you receive this message in error, please contact the sender and delete the material from any and all computers. Dstny does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays.

 



From: [email protected]
Sent: 12/17/2025 6:03:38 AM +00:00
To: [email protected]
Subject: [OpenSIPS-Users] I need some help on a beb config of opensips .

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
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to