[SR-Users] How to debug Kamailio

Remsik,Robert Robert.Remsik at colostate.edu
Fri May 5 16:56:00 CEST 2017


Fair enough.  :)  I wasn't sure what chunks of information would be needed, or if the entire cfg is required.  I'm pasting the sections that  I edited and that I think are relevent.


Thank you!


>From the kamailio.cfg log:

# *** To run in debug mode:
#     - define WITH_DEBUG
#!define WITH_DEBUG




### LOG Levels: 3=DBG, 2=INFO, 1=NOTICE, 0=WARN, -1=ERR
#!ifdef WITH_DEBUG
debug=4
log_stderror=yes
#!else
debug=2
log_stderror=no
#!endif

memdbg=5
memlog=5

log_facility=LOG_LOCAL0

/* number of SIP routing processes */
children=8

/* add local domain aliases */
#alias="sip.mydomain.com"

/* uncomment and configure the following line if you want Kamailio to
 * bind on a specific interface/port/proto (default bind on all available) */
# listen=udp:10.0.0.10:5060

/* port to listen to (default 5060 for udp, tcp, scrtp, or 5061 for tls)*/
# port=5060
listen=129.82.13.26:5060
listen=129.82.13.26:5065
listen=129.82.13.26:5066
listen=129.82.13.26:5067

.:: Routing Infomration ::.

route[WITHINDLG] {
        if (!has_totag()) return;

        # sequential request withing a dialog should
        # take the path determined by record-routing
        if (loose_route()) {
                route(DLGURI);
                if (is_method("BYE")) {
                        setflag(FLT_ACC); # do accounting ...
                        setflag(FLT_ACCFAILED); # ... even if the transaction fails
                } else if ( is_method("ACK") ) {
                        # ACK is forwarded statelessy
                        route(NATMANAGE);
                } else if ( is_method("NOTIFY") ) {
                        # Add Record-Route for in-dialog NOTIFY as per RFC 6665.
                        record_route();

                        # Copied code - maybe it'll work?
                        sl_send_reply("200", "OK");
                        rewritehost("otc.colostate.edu");
#                        t_relay("tcp:129.82.13.X:5066");
                        t_relay_to_tcp("129.82.13.X","5066");
                        exit;
                }
                route(RELAY);
                exit;
        }

... other stuff ...

}





Robert Remsik

ACNS

Desk Phone: 970 491 7120

Robert.Remsik at colostate.edu

________________________________
From: sr-users <sr-users-bounces at lists.kamailio.org> on behalf of Antony Stone <Antony.Stone at kamailio.open.source.it>
Sent: Friday, May 5, 2017 8:37:32 AM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] How to debug Kamailio

On Friday 05 May 2017 at 15:34:39, Remsik,Robert wrote:

> Hello!
>
> I've got a base install of Kamailio and I'm trying to have it forward
> packets generated by sipsak to a different proxy (a migration of an
> existing ruleset by opensips).  I can get the Kamailio process started but
> I can't figure out why Kamailio isn't forwarding the packet and I haven't
> been able to get debugging working to determine what's going on inside
> Kamailio to fix it.
>
> Can anyone please help me figure out how to debug this?

Only if you show us what you've tried so far.

For example, what changes have you made to the default configuration?


Antony.

--
<flopsie> yes, but this is #lbw, we don't do normal

                                                   Please reply to the list;
                                                         please *don't* CC me.

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170505/b4617eae/attachment.html>


More information about the sr-users mailing list