Solved

Is there a console for troubleshooting Kamailio?

Posted on 2010-09-09
5
1,791 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever wanted to query Cisco Call Manager CDR records from MS SQL Server? Here's how! CUCM can be configured to upload a CDR file to a given FTP server every minute. This article will show you how to set this up, schedule the import of this data an…
The point of this post is to give you a copy/paste installation solution to setting up Asterisk 1.6 on Ubuntu 9.04 (or similar) server. # Setup the system apt-get install subversion apt-get install make apt-get install linux-source kernel-p…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

823 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