Question about ARI

I have a situation,

I use ARI communication with asterisk 15.4.1

For example: http://IPASTERISK:8089/ari/endpoints

but if I delete any endpoint, The ari don’t erase, he continue show me ths endpoint was deleted

Why ?

It only allows you to delete endpoints that are in a backend that can be deleted. What are you trying to achieve with it?

Let me try explain better.

I have a 10 endpoints for example, working with files configuration (pjsip.conf),

I use http://Ip-asterisk:8088/ari/endpoints for get status.

if I delete one endpoint in my pjsip.conf file and (reload pjsip), the information about endpoint in ari/endpoints continue showing the endpoint deleted

Maybe the ARI dont reload the endpoints , because he show endpoints deleted yet

If you execute the following on the CLI:

pjsip show endpoints

Does the deleted endpoint show up there?

Also after deleting the endpoint from the pjsip.conf file how are you reloading things?

  1. Delete endpoint of pjsip.conf
  2. pjsip reload
  3. pjsip show endpoints (Endpoint dont exists more)

But if use ARI/endpoints - He show me there

anybody did test it ?

All new features in Asterisk have been extensively tested, by the developers, for years now.

What do you think was not tested properly? It may be that you are using it wrongly, but without details, no-one can say.

Hello David tks for your answer:

Look:

  1. My PJ sip have two endpoints

[9301]
type=aor
max_contacts=1
remove_existing=yes
qualify_frequency=0

[9301]
type = auth
username = 9301
password = XXXXX

[9301]
type = endpoint
context=geral
moh_suggest=default
contact_user=9301
callerid=9301
disallow=all
inband_progress=yes
voicemail_extension=6240
allow=alaw
allow=ulaw
mailboxes=9301
language=pt_BR
rtp_timeout=300
direct_media=no
allow_subscribe=yes
auth=9301
outbound_auth=9301
aors=9301
dtmf_mode=rfc4733
100rel=no
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes

[9302]
type=aor
max_contacts=1
remove_existing=yes
qualify_frequency=0

[9302]
type = auth
username = 9302
password = XXXXX

[9302]
type = endpoint
context=geral
moh_suggest=default
contact_user=9302
callerid=9302
disallow=all
inband_progress=yes
voicemail_extension=6240
allow=alaw
allow=ulaw
mailboxes=9302
language=pt_BR
rtp_timeout=300
direct_media=no
allow_subscribe=yes
auth=9302
outbound_auth=9302
aors=9302
dtmf_mode=rfc4733
100rel=no
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes

In Ari:
[{“technology”:“PJSIP”,“resource”:“9301”,“state”:“offline”,“channel_ids”:[]},{“technology”:“PJSIP”,“resource”:“9302”,“state”:“offline”,“channel_ids”:[]}]

In pjsip show endpoints:

Endpoint: 9301/9301 Unavailable 0 of inf
OutAuth: 9301/9301
InAuth: 9301/9301
Aor: 9301 1

Endpoint: 9302/9302 Unavailable 0 of inf
OutAuth: 9302/9302
InAuth: 9302/9302
Aor: 9302 1

Now I will delete endpoint 9302 and I will to do “pjsip reload”

Endpoint: 9301/9301 Unavailable 0 of inf
OutAuth: 9301/9301
InAuth: 9301/9301
Aor: 9301 1

Objects found: 1

in ARI:

{“technology”:“PJSIP”,“resource”:“9301”,“state”:“offline”,“channel_ids”:[]},{“technology”:“PJSIP”,“resource”:“9302”,“state”:“offline”,“channel_ids”:[]}

endpoint 9302 continue in ari, he dont deleted, only if restart asterisk

This is normal ?

I don’t personally use ARI, but this sounds like something that has been discussed recently on the forum,

maybe in this topic : Asterisk-12-ARI-Bug

I think there is a longer thread somewhere recent.

This sounds like a bug. Please follow the asterisk issue guidelines and submit a bug report on the asterisk issue tracker.