Question

Hot to check asterisk 20

  • 21 September 2023
  • 6 replies
  • 290 views

Badge +3

Hi,
we have numerous Asterisk servers with version 16 with “sip” configured.
Centreon plugin “Asterisk VoIP Server” with mode “sip-peers-usage” and “channel-usage” is perfect for us.
(This https://docs.centreon.com/pp/integrations/plugin-packs/procedures/applications-voip-asterisk-ami/)

Using Asterisk Manager Interface (AMI) we can monitor all problems we can have, both with virtual servers and physical ones with dadhi.
The problem is that we are migrating to a more recent verison of Asterisk (20.4.0) and we are moving to the pjsip protocol but it seems that centreon doesn’t have a proper mode for this.
In other words, If we use the same “mode” mentioned before, we get this error:


“UNKNOWN: Communication issue [Message: Command output follows -- No such command 'sip show peers' (type 'core show help sip show' for other possible commands)]”

And this make sense because Asterisk, for the pjsip protocol, uses different command like:

*CLI> pjsip show endpoints
*CLI> pjsip xxxx xxxx

For what i can see,  there’s no “ready” check/mode for this.
Maybe I'm wrong and they are there but I don't know them or they are in development.
Is there anyone who knows how to do it?
We are desperate because without in-depth monitoring the problems multiply.
I apologize for my low level English.

Anyway, Thanks in advance.
Emanuele.


6 replies

Userlevel 4
Badge +12

Hi @venum76,

Would you agree to share with me the results of the pjsip commands for our development team?

Badge +3

ok Thank you, i appreciate.
If someone knows more informations about pjsip commands and the various 'status' , you are welcome.
These are the commands and the output results.
The formatting of the output part isn't the best but it was literally copied and pasted as it was.
 

1 - "pjsip show registrations"

 

 <Registration/ServerURI..............................>  <Auth....................>  <Status.......>
==========================================================================================

 REGNAME/sip:voip.fqdn.xx:5060                          REGNAME-AUTH                  Registered        (exp. 3131s)

Objects found: 1
 

2 - "pjsip list endpoints"

 

 


 Endpoint:  <Endpoint/CID.....................................>  <State.....>  <Channels.>
==========================================================================================

 Endpoint:  ENDPOINTNAME01                                               Not in use    0 of inf
 Endpoint:  ENDPOINTNAME02                                               Not in use    0 of inf

 

Objects found: 2
 


3 - "pjsip show contacts"

 

  Contact:  <Aor/ContactUri..............................> <Hash....> <Status> <RTT(ms)..>
==========================================================================================

  Contact:  name/sip:name@IPADDRESS:5060          6e1beb0f3f NonQual         nan
  Contact:  name/sip:000000000@voip.eutelia.it           c9c6337a38 NonQual         nan

Objects found: 2


4 - "pjsip show aors"

 

      Aor:  <Aor..............................................>  <MaxContact>
    Contact:  <Aor/ContactUri............................> <Hash....> <Status> <RTT(ms)..>
==========================================================================================

      Aor:  NAME 01                                               1
    Contact:  NAME01/sip:NAME01@IPADDRESS:5060        6e1beb0f3f NonQual         nan

      Aor:  NAME                                                1
    Contact:  NAME/sip:00000000@voip.FQDN.it         c9c6337a38 NonQual         nan


Objects found: 2



I hope it is enough but if you need further information don't hesitate to ask.
 

Badge +3

Hi everyone,
I know that it takes time and it's not something that can be done in a few hours, also because ultimately we rely on your availability and your work commitments,but I was wondering if by any chance there was hope that some developer is keeping an eye on it,
 

Anyway, even if this isn't the case, I thank you for your support and patience.
Stay safe.

Emanuele.

Badge +3

Hi @venum76,

Would you agree to share with me the results of the pjsip commands for our development team?


Hi @omercier ,
I'm sorry to bother you,
I was wondering if there were any developments in this regard.
Anyway, thanks in advance.
🙏🏽

 
Userlevel 4
Badge +12

Hi @venum76,

The team is currently working on other tasks, and we will consider this enhancement in regard with other suggestions from our Ideas section, where you posted this idea

Badge +3

Hi @venum76,

The team is currently working on other tasks, and we will consider this enhancement in regard with other suggestions from our Ideas section, where you posted this idea


wow, I hadn't really seen the recents developments in the other post 🤦
Seems i missed some notification.I'm sorry.
I appreciate the support. 🙏🏽

in any case,I greet you and If you need any other information, don’t esitate to ask at any time.

Thank you omercier.
Emanuele.

Reply