Solved

Is there a console for troubleshooting Kamailio?

Posted on 2010-09-09
5
1,824 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Although VoiceOver IP has been around for a while, internet connections have only recently become fast enough to provide good call quality. Now, VoIP has become a real option for businesses looking at ways to improve their business model. In this ar…
As companies replace their old PBX phone systems with Unified IP Communications, many are finding out that legacy applications such as fax do not work well with VoIP. Fortunately, Cloud Faxing provides a cost-effective alternative that works over an…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

749 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