Author Topic: Wireshark or alternative  (Read 3902 times)

Offline x-man

  • Hero Member
  • *****
  • Posts: 1129
  • Country: gb
  • Karma: +25/-0
    • View Profile
Wireshark or alternative
« on: February 01, 2017, 12:21:10 PM »
Hi Guys a bit of help please. I am being asked to do a wireshark trace to find the answer to a SIP trunk problem. Basic is that transferred calls cut off after 10.04 minutes on a very regular basis. I think its the RTP failing but can't find out why. My second line support is just as flumoxed. SP is asking for the wireshark trace because it contains media (RTP) packets.

So the question is believe it or not never needed to do this before how would I set this up on a CX? I don't really get involved in the IT on this site but I suspect that the IT guys are going to want hand holding. I would like to know how to port mirror  a CX (I assume this would have to be done on the switch its connected to?) and what to do if its a dumb switch?

Also I don't have wireshark is there something else that would do the job assuming that I am correct that the Mitel doesn't do any trace that contains RTP?

Hope someone can help.

TIA


Offline Dogbreath

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 389
  • Country: gb
  • Karma: +18/-0
    • View Profile
Re: Wireshark or alternative
« Reply #1 on: February 01, 2017, 12:57:01 PM »
MCD won't see the RTP because the handsets send the media streams to/from the SIP gateway [except if you're using the embedded call recording or the caller is leaving a voicemail]. If you really need to see the media stream then you need to port mirror or do your cap upstream of MCD.
For real-time SIP debugging [ie with a port mirror] I like sngrep [but it doesn't do media either].
Calls cutting off after the same length is almost certainly a firewall timeout issue.

You can do a SIP capture on MCD and FTP it off to open with wireshark:
http://mitelforums.com/forum/index.php?topic=2861.0

Offline iboyd

  • Jr. Member
  • **
  • Posts: 61
  • Country: us
  • Karma: +1/-0
    • View Profile
Re: Wireshark or alternative
« Reply #2 on: February 01, 2017, 03:31:03 PM »
No one has built a better mousetrap than Wireshark yet. 

I would ask your IT team to have a Wireshark Sniffer set to get data from the handset AND the SIP gateway.  Easiest way is a build a computer with 2 NICS and install Wireshark on it. Then plug the NIC's into different ports on a switch, then span the ports for the Gateway and the handset to the sniffer's ports and run Wireshark from there. The other helpful tip is to have the Phone and the Gateway on the same switch.

PCAP analysis is best done after you captured all the raw data.  Don't try to do it in real time.  So set your environment up, get your relevant IP's, and maybe run a few test Captures to see what your baseline traffic looks like.  Then get your problem child to make a call and run the PCAP at the same time.

-Ian

Offline x-man

  • Hero Member
  • *****
  • Posts: 1129
  • Country: gb
  • Karma: +25/-0
    • View Profile
Re: Wireshark or alternative
« Reply #3 on: February 01, 2017, 03:39:19 PM »
Thanks both. I have a pcap of the SIP signalling and that appears OK according to service provider.

Yes, having woken up a bit I realised the faux pas about mirroring the CX when I knew that RTP was between phone and endpoint.

Timeouts have all been adjusted to values way above 10 minutes on the firewall. And on the CX as well.

SP is suggesting that seeing the rtp stream on a trace will reveal all...I am not so sure but I must do it. IT will just have to play ball. I don't think the switches are managed so that will be the first hurdle.


any and all further comments are welcome.

Offline acejavelin

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4064
  • Country: us
  • Karma: +129/-0
  • High-tech, heavy metal redneck!
    • View Profile
    • Like what I do and wanna help out? Send me a donation!
Re: Wireshark or alternative
« Reply #4 on: February 01, 2017, 06:37:31 PM »
If you use an MBG the tool is built into it, it's in the MiVoice Border Gateway blade under Administration - Diagnostics, and select Packet Trace. This is one of the best things about the MBG, besides the seamless integration to the phone system.

Offline x-man

  • Hero Member
  • *****
  • Posts: 1129
  • Country: gb
  • Karma: +25/-0
    • View Profile
Re: Wireshark or alternative
« Reply #5 on: February 02, 2017, 04:46:53 AM »
Unfortunately no MBG.

Offline acejavelin

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4064
  • Country: us
  • Karma: +129/-0
  • High-tech, heavy metal redneck!
    • View Profile
    • Like what I do and wanna help out? Send me a donation!
Re: Wireshark or alternative
« Reply #6 on: February 02, 2017, 11:27:40 AM »
Then the only other way I know is get yourself a small managed switch and setup a monitor or mirror port. I used to carry one that has port 8 setup to mirror port 1 and if I need to do captures I disconnect the LAN cable from the router and connect it to port 2 of the my switch and connect a patch cable from port 1 to the router, inserting the switch as the last thing before traffic touches the router, and capture data with my laptop connected to port 8. It will capture all data to/from the router on port 1 so you can capture everything.

If the router connects to a managed switch, the customer's IT staff maybe able to setup a monitor/mirror port for you to capture from.

Offline x-man

  • Hero Member
  • *****
  • Posts: 1129
  • Country: gb
  • Karma: +25/-0
    • View Profile
Re: Wireshark or alternative
« Reply #7 on: February 02, 2017, 02:53:22 PM »
Thanks, yes I am waiting to hear from them as to whether the switch can mirror. My other question really is how to set up wireshark because I have never (believe it or not) had any need to use it up to this point.  I assume you install it and somehow set it to grab any and all data on the mirrored port as you say. I don't want it to do real time but just save it to a file so I can send it to the CP.  I suspect that a laptop is best to capture rather than a server on the same network that may be a few hops away? In this case i asume agin that I will connect the phone to one port and tell the laptop to collect data from the other....?

Offline VinceWhirlwind

  • Hero Member
  • *****
  • Posts: 899
  • Country: au
  • Karma: +31/-0
    • View Profile
Re: Wireshark or alternative
« Reply #8 on: February 02, 2017, 06:43:54 PM »
Yes, use a laptop, because setting a port as a mirror port (destination for mirrored traffic) stops it from operating as a normal ethernet port.
 
And set the ports where you want to grab the traffic as mirror ports (source)

Offline Dogbreath

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 389
  • Country: gb
  • Karma: +18/-0
    • View Profile
Re: Wireshark or alternative
« Reply #9 on: February 03, 2017, 11:30:34 AM »
https://ask.wireshark.org/questions/3291/how-do-i-set-the-capture-to-auto-save-periodically

Do a capture and have it roll over every n minutes so that if you get a report of a call dropping you know which n-minute window capture file to send/look at.

Offline x-man

  • Hero Member
  • *****
  • Posts: 1129
  • Country: gb
  • Karma: +25/-0
    • View Profile
Re: Wireshark or alternative
« Reply #10 on: February 03, 2017, 12:23:38 PM »
Cheers both I'm feeling > < more confident. Problem is this fault is getting more complicated by the day since we are now being told that the way the router (sonicwall) is set up is wrong and it needs SIP-Alg ON not off as we normally would...telecoms is getting too complicated for an old boy like me.... :(

Offline Dogbreath

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 389
  • Country: gb
  • Karma: +18/-0
    • View Profile
Re: Wireshark or alternative
« Reply #11 on: February 08, 2017, 07:41:45 AM »
SIP ALG on Sonicwall ["SIP Transformations"] works fine in simple deployments [where all handsets placing calls though a given MCD reach the internet through the same Sonicwall], in my experience, and I have been using it successfully for years.

When turning ALG off/on, I suggest you flush all port 5060 connections from Connection Monitor to be absolutely certain what state it is in.

Offline x-man

  • Hero Member
  • *****
  • Posts: 1129
  • Country: gb
  • Karma: +25/-0
    • View Profile
Re: Wireshark or alternative
« Reply #12 on: February 09, 2017, 07:52:01 AM »
Cheers, makes me feel a little more confident.

Offline x-man

  • Hero Member
  • *****
  • Posts: 1129
  • Country: gb
  • Karma: +25/-0
    • View Profile
Re: Wireshark or alternative
« Reply #13 on: March 05, 2017, 06:57:56 AM »
Ok, we have finally bottomed the problem after a lot of investigation. The problem is that when the Mitel transfers the SIP trunk call internally it the treats the call as INTERNAL. This means that the call duration set for INTERNAL calls is used rather than the expected external timer. For some reason the internal timer was on and set to 10 minutes. So after a call was transferred this timer was forcibly releasing the call as the timer was set (the second timer was set to 0 so it cut off immediately instead of giving the expected warning tone).

We have a query with Mitel why an external SIP call is treated as internal after being transferred and I will post here if we get an answer.

Offline Dogbreath

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 389
  • Country: gb
  • Karma: +18/-0
    • View Profile
Re: Wireshark or alternative
« Reply #14 on: March 06, 2017, 09:38:08 AM »
I don't get it - does that mean internal calls cut off after 10 minutes  then?


 

Sitemap 1 2 3 4 5 6 7 8 9 10