Asterisk PJSIP Useragent In Dialplan

Home » Asterisk Users » Asterisk PJSIP Useragent In Dialplan
Asterisk Users 1 Comment

Hello,

I have an Asterisk 16.0.1 installation with PJSIP SIP Driver. I like to get the useragent in the Dialplan in the form of an Variable to check if it is allowed to place a Call. Is there anything available to achieve that in Asterisk? With the old chan_sip driver this was possible with CHANNEL(sip,useragent).

Thanks

Benjamin

One thought on - Asterisk PJSIP Useragent In Dialplan

  • Found a way to solve it with the following Snippet:
    `same =>
    n,NoOp(${PJSIP_CONTACT(${PJSIP_AOR(${EXTEN},contact)},user_agent)})`