[asterisk-bugs] [JIRA] (ASTERISK-30200) after removing the endpoint from pjsip.conf and reload pjsip from CLI the information about endpoint in ari/endpoints continue showing the endpoint deleted
Ilia Gvozdev (JIRA)
noreply at issues.asterisk.org
Thu Sep 1 04:23:08 CDT 2022
Ilia Gvozdev created ASTERISK-30200:
---------------------------------------
Summary: after removing the endpoint from pjsip.conf and reload pjsip from CLI the information about endpoint in ari/endpoints continue showing the endpoint deleted
Key: ASTERISK-30200
URL: https://issues.asterisk.org/jira/browse/ASTERISK-30200
Project: Asterisk
Issue Type: Bug
Security Level: None
Components: Resources/res_ari
Affects Versions: 18.13.0
Environment: CentOS Linux release 7.9.2009 (Core)
Reporter: Ilia Gvozdev
cat ps_endpoints.conf
[1003]
type=endpoint
transport=transport-udp
auth=1003
aors=1003
context=local
disallow=all
allow=alaw,ulaw
dtmf_mode=auto
[1004]
type=endpoint
transport=transport-udp
auth=1004
aors=1004
context=local
disallow=all
allow=alaw,ulaw
dtmf_mode=auto
Remove 1004 endpoint from ps_endpoints.conf and "reload pjsip" from Asterisk CLI.
Check endpoints from CLI and ari/endpoints:
CLI> pjsip show endpoints
Endpoint: <Endpoint/CID.....................................> <State.....> <Channels.>
I/OAuth: <AuthId/UserName...........................................................>
Aor: <Aor............................................> <MaxContact>
Contact: <Aor/ContactUri..........................> <Hash....> <Status> <RTT(ms)..>
Transport: <TransportId........> <Type> <cos> <tos> <BindAddress..................>
Identify: <Identify/Endpoint.........................................................>
Match: <criteria.........................>
Channel: <ChannelId......................................> <State.....> <Time.....>
Exten: <DialedExten...........> CLCID: <ConnectedLineCID.......>
=========================================================
Endpoint: 1003 Unavailable 0 of inf
InAuth: 1003/1003
Aor: 1003 1
Transport: transport-udp udp 0 0 0.0.0.0:5060
Objects found: 1
curl -v -u asterisk:asterisk -X GET http://192.168.10.103:8088/ari/endpoints?api_key=asterisk:asterisk
< HTTP/1.1 200 OK
< Server: Asterisk
< Date: Thu, 01 Sep 2022 09:17:10 GMT
< Cache-Control: no-cache, no-store
< Content-type: application/json
< Content-Length: 214
<
[
{
"technology": "PJSIP",
"resource": "1003",
"state": "offline",
"channel_ids": []
},
{
"technology": "PJSIP",
"resource": "1004",
"state": "offline",
"channel_ids": []
}
information about endpoint in ari/endpoints continue showing deleted endpoint 1004
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list