pjsip show contacts
pjsip show contacts lists known PJSIP contacts. Contacts are the actual SIPSession Initiation Protocol, the standard signaling protocol used to set up, manage, and tear down VoIP calls between Asterisk and phones or carriers. URIs Asterisk can use to reach an endpointIn PJSIP configuration, the SIP entity Asterisk communicates with: a phone, trunk, or other user agent. Defined by an endpoint section in pjsip.conf., either learned from endpoint registration or configured statically on an AoR.
The output is useful when an endpoint appears in pjsip show endpoints but calls do not reach the phone, OPTIONS qualify shows an unexpected state, or NAT rewriting results in an unroutable contact URI.
Contact status commonly shows values such as Avail, Unavail, Unknown, or NonQual. Round trip time appears when qualify is enabled and a recent qualify result is available.
Example:
asterisk -rx "pjsip show contacts"
Use this with pjsip show aors to map a contact back to the AoR and endpoint that owns it.
User Notes
Know a tip or gotcha for this topic? Share it below and help others.
Contribute a note
Share a tip, gotcha, or practical example. Keep it under 2000 characters. No questions (use the Asterisk community forums for support). Wrap code in backticks.