[ZBX-19444] Asterisk Template Detection of PJSIP Registration Status Created: 2021 May 24 Updated: 2025 May 19 Resolved: 2025 May 19 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Templates (T) |
Affects Version/s: | 5.0.11 |
Fix Version/s: | None |
Type: | Problem report | Priority: | Trivial |
Reporter: | Oleg Gawriloff | Assignee: | Zabbix Support Team |
Resolution: | Fixed | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
asterisk 16 |
Description |
In current template only network status of PJSIP is detected (i.e. if remote PJSIP is not available) than 'PJSIP trunk "{#OBJECTNAME}": PJSIP trunk {#OBJECTNAME} has a state Unavailable' based on state of ' {[Template Tel Asterisk by HTTP:asterisk.pjsip.trunk.devicestate[\{#OBJECTNAME}]|https://zabbix.managed-it.a1.by/disc_prototypes.php?form=update&itemid=91461&parent_discoveryid=91455].last()}="Unavailable"' is fired. But if remote PJSIP is available but credentials is not correct then no any items/triggers exists. Following changes is needed in js code to monitor PJSIP registration status through PJSIPShowRegistrationsOutbound AMI comman: <code> +++ asterisk.js 2021-02-01 19:45:11.132350027 +0300 ); +function getPjsipShowRegistrationOutbound() { ); function getQueueSummary() { +if (list.includes('PJSIPShowRegistrationsOutbound')) { + getPjsipShowRegistrationOutbound(); +}if (list.includes('QueueSummary')) { getQueueSummary(); }</code>
And following trigger is created
|
Comments |
Comment by Julianna Wilamowska (Inactive) [ 2025 Apr 15 ] |
Hello, |