Solved

Is there a console for troubleshooting Kamailio?

Posted on 2010-09-09
5
1,749 Views
Last Modified: 2013-12-27
I would like to see real time call routing from within Kamailio like the Asterisk Console provides.  Is there a feature for this built in?
0
Comment
Question by:jer2eydevil88
  • 3
  • 2
5 Comments
 
LVL 19

Expert Comment

by:feptias
ID: 33652801
I just use ngrep to capture the SIP packets. It is available as an RPM. Search for an ngrep RPM here:
http://rpm.pbone.net/

Once installed, you can run it direct from the command line:
ngrep -q <search_string> -W byline port 5060 -d any

... or you can install sipgrep which acts as a wrapper to ngrep, with slightly easier command line options and it displays the SIP packets with some elements highlighted in colour so they are easier to read.
http://cvs.berlios.de/cgi-bin/viewcvs.cgi/ser/sip_router/utils/sipgrep/

It is also possible to capture SIP packets using ethereal/wireshark:
http://w.e-e.com/WGwRNz

The only other option I know of (and this is opensips so kamailio may differ) is the monitor utility
opensipsctl moni

..but it only shows summary statistics for the number of SIP requests handled.
1
 
LVL 3

Accepted Solution

by:
jer2eydevil88 earned 0 total points
ID: 33674776
In my instance I was able to see traffic passing through the system by using TCPDump as an alternative to the Asterisk console.

tcpdump -i venet0 -vv -nn host INSERT_IP_ADDRES_OF_HOST and udp port 5060
0
 
LVL 19

Expert Comment

by:feptias
ID: 33676425
I'm glad that you found a solution, but not so pleased to be called "no one". Please bear in mind that the experts who contribute to EE do so voluntarily. The answers we post usually require a reasonable amount of time and effort.
0
 
LVL 3

Author Comment

by:jer2eydevil88
ID: 33676457
I apologize... I don't know how I didn't notice the solution posted on this question but I did, also I agree that they posted an adequate solution and should be awarded their points.
0
 
LVL 19

Expert Comment

by:feptias
ID: 33676643
Don't worry. If you really want to award points, then you'll have to cancel the close request as the process is automated. I've already got my required minimum quota of points for September so I'm happy.

I don't see many questions about opensips or kamailio on EE. If you have any more questions I'll try to help, but post them in the Asterisk topic area (in addition to the VoIP area) as that is where I tend to look most often.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

So you think no one can listen in on your VOIP conversations, eh? Well... if you haven't setup Secure Real Time Transport (SRTP), your voice communications can be hacked into by just about anyone! First, let's talk about the intended audience for…
I recently purchased a Bluetooth headset called the Music Jogger (model BSH10). The control buttons on it look like this: One of my goals is to use it as the microphone and speakers for Skype calls. In that respect, it works well. However, I …
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now