[asterisk-bugs] [JIRA] (ASTERISK-30200) res_pjsip: Reloading with removal of endpoint does not remove internal endpoint

Joshua C. Colp (JIRA) noreply at issues.asterisk.org
Thu Sep 1 05:34:09 CDT 2022


     [ https://issues.asterisk.org/jira/browse/ASTERISK-30200?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joshua C. Colp updated ASTERISK-30200:
--------------------------------------

    Status: Open  (was: Triage)

> res_pjsip: Reloading with removal of endpoint does not remove internal endpoint
> -------------------------------------------------------------------------------
>
>                 Key: ASTERISK-30200
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-30200
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/General
>    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