How to show PJSIP User-Agent

Is there anyway that showing user-agent in PJSIP.
In SIP when I use sip show peer I could show user-agent.

pjsip list endpoints

for a comple list of pjsip commands

asterisk -x " core show help" | grep -i pj


I have checked but I couldn’t find.

root@asterisk-dominicana:~# asterisk -x " pjsip list endpoints"

Endpoint: <Endpoint/CID…> <State…> <Channels.>

Endpoint: 6001 Unavailable 0 of inf
Endpoint: 6002 Unavailable 0 of inf

Where is the User-Agent for example, Yealink or Avaya,

if you mean SIP user agent identification strings

Every SIP user agent (phone, software, device) identifies itself with a string. The syntax of this string is not defined, but a common practise is

There’s not a CLI tool for that, but it can be obtained using the PJSIP_CONTACT dialplan function:



You may use the Asterisk database for it

/registrar/contact/2038;@f8d94c15f84f86711d74773c634317d1: {"via_addr":"","qualify_timeout":"3.000000","call_id":"1864024792@","reg_server":"","prune_on_boot":"no","path":"","endpoint":"2038","via_port":"5062","authenticate_qualify":"no","uri":"sip:2038@","qualify_frequency":"30","user_agent":"VP530P","expiration_time":"1584137684","outbound_proxy":""}

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.