Benjamin Marty
2018-Dec-03 15:33 UTC
[asterisk-users] Asterisk PJSIP useragent in Dialplan
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20181203/e106129f/attachment.html>
Benjamin Marty
2018-Dec-03 15:46 UTC
[asterisk-users] 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)})` -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20181203/f4d68989/attachment.html>