With chan_sip you could input “sip show peer xxx” and get an output that included a UserAgent line that would reveal the make, model, and firmware version of the endpoint provisioned to that peer.
It’s a very handy way to know the firmware rev of a device directly from the CLI.
Does pjsip have a similar command that would display that info? Google-fu has failed me.
On the Asterisk issue tracker you can only file bug reports. For feature requests like this, consider it submitted (since I’m involved with the FreePBX project and the Asterisk project).
I’ll also elaborate further. Both Matts are correct. I think adding the user agent to the CLI is a perfectly acceptable thing but what Matt Jordan said is also valid. The CLI is meant for human use, so whenever we add something we do it with that in mind. We don’t change that interface to focus on automation/script usage explicitly. Some people use it for that, but other interfaces like AMI are specifically designed for it and the way things are displayed/presented/communicated reflect that.
It’s a very human use thing for me-- EPM can tell me the firmware rev I want and endpoint to have, but if I want to know without a doubt what firmware an endpoint has actually installed on it, UserAgent is foolproof and much more convenient than walking an EU through finding it. So in my use case it’s very human and manual-- I’m not running scripts pulling this data at large.
Maybe something good will turn out from this post.
I hope to get back the flexibility in the Asterisk CLI again, because since the chan_pjsip arise, the integration with other services started to be more complexed and slower.