Finding The User Agent Of A Channel Using PJSIP?

Home » Asterisk Users » Finding The User Agent Of A Channel Using PJSIP?
Asterisk Users 1 Comment

I’m working on my sip to pjsip translation.

Right now I do some functionality based on what the user agent is on the calling phone using:

${SIPPEER(${CHANNEL(peername)},useragent)}

I’m trying to replace it with

PJSIP_CONTACT(${CHANNEL(contact)},user-agent}) but I’m not getting any data returned when I query ${CHANNEL(contact)}

Is there a different function I should use to get my needed user agent of the active call?

One thought on - Finding The User Agent Of A Channel Using PJSIP?