Yeastar Asterisk realtime SIP logging

Modified on Thu, 25 Sep at 1:24 PM

P-Series Cloud and Software versions don't allow you to run tcpdump at the command line but you can use the pjsip logger to get real-time logs at the command line.


At the command line enter the Asterisk console

asterisk -r


Quieten down the standard Asterisk logging

core set verbose 0
core set debug 0


Then you can set the SIP logger on/off and log to file or view in realtime

pjsip set logger on



IP addresses will be private and won't reflect your public IPs as the PBX is behind an SBC.


Switch off logging when done (or CTRL-C to exit the Asterisk console entirely)

pjsip set logger off



Trunk only logging

To reduce the output down to trunks only use the below method (all configured trunks)


At the command line enter the Asterisk console

asterisk -r


Quieten debug messaging & discover the proxy/SBC address. 

core set verbose 0
core set debug 0
pjsip show registration [tab to hint/complete trunk name]



pjsip set logger host 10.0.2.29


You should then get signalling for the trunks only (plus some hard to get rid of debug messages)



Switch off when done

pjsip set logger off


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article