Skip to content

Asterisk script including pjsip #592

Description

@tbriceno-hub

Hi everyone, i´m new into librenms, i´m trying to use the asterisk app with a FreePBX 17 machine but we are using pjsip and the librenms script does not take that info, i´m not a software engineer or something like that so i don´t know how to modify the script, the command in asterisk that i think could be useful is "pjsip show endpoints" but the output is far different from the "iax2 show peers" for example, is the a chance of adding this to the script?

This is an example of the output of the "pjsip show endpoints" command:

`Endpoint: <Endpoint/CID.....................................> <State.....> <Channels.>
I/OAuth: <AuthId/UserName...........................................................>
Aor: <Aor............................................>
Contact: <Aor/ContactUri..........................> <Hash....> <RTT(ms)..>
Transport: <TransportId........> <BindAddress..................>
Identify: <Identify/Endpoint.........................................................>
Match: <criteria.........................>
Channel: <ChannelId......................................> <State.....> <Time.....>
Exten: <DialedExten...........> CLCID: <ConnectedLineCID.......>

Endpoint: 201/201 Not in use 0 of inf
InAuth: 201-auth/201
Aor: 201 1
Contact: 201/sip:201@192.168.169.100:5060 7363cbea31 Avail 6.960

Endpoint: 202/202 Not in use 0 of inf
InAuth: 202-auth/202
Aor: 202 1
Contact: 202/sip:202@192.168.169.103:5060 8bf959db7a Avail 8.675

Endpoint: 204/204 Not in use 0 of inf
InAuth: 204-auth/204
Aor: 204 1
Contact: 204/sip:204@192.168.169.101:5060 0d15b2aacd Avail 22.520

Endpoint: 205/205 Unavailable 0 of inf
InAuth: 205-auth/205
Aor: 205 1

Endpoint: 207/207 Unavailable 0 of inf
InAuth: 207-auth/207
Aor: 207 1

Endpoint: 501/501 Unavailable 0 of inf
InAuth: 501-auth/501
Aor: 501 1

Endpoint: GXW4104-X Not in use 0 of inf
OutAuth: GXW4104-X/GXWT1
Aor: GXW4104-X 0
Contact: GXW4104-X/sip:admin@192.168.169.16:5060 c2287987d7 Avail 2.349
Transport: 0.0.0.0-udp udp 3 96 0.0.0.0:5060
Identify: GXW4104-X/GXW4104-X
Match: 192.168.169.16/32

Objects found: 7`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions