How to Capture MyPBX SIP Packets Using Putty

Step 1. Login via SSH.
Please download putty.exe from the internet.
Putty download link: www.yeastar.com/download/tools/putty.exe.

Before you login, please make sure the SSH has been enabled on LAN settings page.
1> Login MyPBX Web User Interface and go to System→Network Preferences→ LAN Settings, enable SSH.

                                     Figure 1 Enable SSH

2> Login MyPBX via SSH, the default username is root, password is ys123456.

                                 Figure 2 Login via SSH


                                             Figure 3 Login As

Step 2. Change settings for putty.

                                 Figure 4 Change Settings for putty



                     Figure 5 Change Lines of scrollback to 20000

Step 3. Enter asterisk CLI.
Execute command asterisk –vvvvvvvvvvvvvvvvr to enter asterisk CLI.

                                       Figure 6 Enter Asterisk CLI

Step 4. Enable SIP debug.
After entering asterisk CLI, execute command sip set debug ip x.x.x.x to enable SIP debug for a specific IP address. (i.e. sip set debug ip 192.168.6.121)
Note: x.x.x.x  is the IP where the SIP packets are sent to or from.
Or you can execute command sip set debug on to capture all the SIP packets which are sent to or from MyPBX. If you are not sure which command to use, please execute sip set debug on.

                                    Figure7 Enable SIP Debug

Step 5. Stop capturing SIP logs when the problem comes.
When the problem happens again, execute sip set debug off to stop capturing the SIP log.
1> If you can’t register an extension, you can try to register the extension again. If you cannot find any SIP packets, it means MyPBX don’t receive any SIP packets. Maybe you should check your network first.
2> If you have any issue of the incoming calls or outbound calls, please try to make a call again, and you will see the SIP packets and logs are printed in putty window. Just copy the content in putty window (follow step 6) and send it to us.

Step 6. Copy All to Clipboard and paste the logs to a document.

                                        Figure 8 Copy the Logs

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.