Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Viewing SIP Messages in MBG? 1

Status
Not open for further replies.

300Blackout

IS-IT--Management
Jan 2, 2015
62
0
0
US
What log file shows or how can I view SIP Messages? I'm looking for something similar to SIP Tail in the 3300? I'm setting up Sip Trunks. Any help appreciated
 
Hi 300blackout,

When you are in the MBG got to;

Mitel border gateway > status > diagnostics.

Under there you are able to take a .pcap trace and view it in Wireshark.

Kind regards,

Wishforall
 
open console
use this to live tail the tuglog
tail -f /var/log/tug/tug.log |grep sip


If I never did anything I'd never done before , I'd never do anything.....

 
I use sngrep, it is probably not supported by Mitel and most likely doesn't survive an upgrade but it is very useful and easy to follow.

I can't recommend it enough for linux cli sip diagnosing.

You can open pcap files from within the console or watch messages live.
Trust me, if you use it you won't look back.

Have a look at some screentshots.

I use it on any linux based VoIP setup I play around with. (Asterisk/Freeswitch etc...)

The official page is
To install it on MSL you create [tt]/etc/yum.repos.d/irontec.repo[/tt] and add the following
[tt][irontec]
name=Irontec RPMs repository
baseurl=http://packages.irontec.com/centos/6/x86_64/
[/tt]

Import the public key
[tt]rpm --import [/tt]

Then install the package
[tt]yum install sngrep[/tt]
 
@sarond - I'm going to have to check out sngrep, looks cool.

My go to method for packet capture on a Linux OS has been to open a plink session using root credentials and stream the output directly into Wireshark on my local PC. No installation needed on the MBG, realtime, easily exported.

CLI SYNTAX FOR WINDOWS w/ PLINK AND WIRESHARK (execute from command prompt)
Code:
plink.exe -ssh -pw <<<PASSWORD>>> root@<<<IP ADDRESS OF TARGET>>> [b]"tcpdump -ni <<< eth0|eth1|etc >>> -s 0 -w - <<<TCPDUMP FILTER>>>"[/b] | "C:\Program Files\Wireshark\Wireshark.exe" -k -i -

Below are examples of the TCPDUMP FILTER
SIP only - UDP and TCP 5060: "tcpdump -i any -X -s 65535 port 5060"

SIP and UDP: "tcpdump -i any -X -s 65535 port 5060 or udp"

Packets between the MBG and provider: "tcpdump -ni eth0 -s 0 -w - host xxx.xxx.xxx.xxx"

Everything except for your SSH session: "tcpdump -ni any -s 0 -w - "! port 22""


-b
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top