[asterisk-bugs] [JIRA] (ASTERISK-28786) Duplicated Endpoints, AORS, Auths user ARI sorcery
Benjamin Keith Ford (JIRA)
noreply at issues.asterisk.org
Tue Mar 24 11:32:25 CDT 2020
[ https://issues.asterisk.org/jira/browse/ASTERISK-28786?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Keith Ford updated ASTERISK-28786:
-------------------------------------------
Assignee: Sebastian Gutierrez
Status: Waiting for Feedback (was: Triage)
I was unable to get the duplicate entries while testing this. Some things that would be helpful:
# Does anything change between using {{http}} and {{https}}?
# Is there a difference in behavior when using realtime as opposed to static config files?
> Duplicated Endpoints, AORS, Auths user ARI sorcery
> --------------------------------------------------
>
> Key: ASTERISK-28786
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-28786
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: pjproject/pjsip
> Affects Versions: 16.9.0, 17.3.0
> Environment: Ubuntu 18.04 (pjsip and libjanson bundled)
> Reporter: Sebastian Gutierrez
> Assignee: Sebastian Gutierrez
> Severity: Minor
> Labels: webrtc
>
> Using ARI Rest interface to create AORs Auths and Enpoints
> {noformat}
> 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: 1001/unknown Unavailable 0 of inf
> InAuth: 1001/1001
> Aor: 1001 1
> Transport: transport-wss wss 0 0 0.0.0.0:5060
> Endpoint: 1001 Unavailable 0 of inf
> InAuth: 1001/1001
> Aor: 1001 1
> Transport: transport-wss wss 0 0 0.0.0.0:5060
> Endpoint: 1002/unknown Unavailable 0 of inf
> InAuth: 1002/1002
> Aor: 1002 1
> Transport: transport-wss wss 0 0 0.0.0.0:5060
> Endpoint: 1002 Unavailable 0 of inf
> InAuth: 1002/1002
> Aor: 1002 1
> Transport: transport-wss wss 0 0 0.0.0.0:5060
> I/OAuth: <AuthId/UserName.............................................................>
> ==========================================================================================
> Auth: 1001/1001
> Auth: 1001/1001
> Auth: 1002/1002
> Auth: 1002/1002
> Objects found: 4
> Aor: <Aor..............................................> <MaxContact>
> Contact: <Aor/ContactUri............................> <Hash....> <Status> <RTT(ms)..>
> ==========================================================================================
> Aor: 1001 1
> Aor: 1001 1
> Aor: 1002 1
> Aor: 1002 1
> Objects found: 4
> {noformat}
> res_sorcery.conf
> {noformat}
> [res_pjsip]
> endpoint=astdb,ps_endpoints
> auth=astdb,ps_auths
> aor=astdb,ps_aors
> {noformat}
> WebServices:
> {noformat}
> curl -k -X PUT -H "Content-Type: application/json" -u user:pass -d '{"fields": [ { "attribute": "auth_type", "value": "userpass"}, {"attribute": "username", "value": "1001"}, {"attribute": "password", "value": "test" } ] }' https://localhost/ari/asterisk/config/dynamic/res_pjsip/auth/1001
> {noformat}
> {noformat}
> curl -k -X PUT -H "Content-Type: application/json" -u user:pass -d '{"fields": [ {"attribute": "remove_existing", "value": "yes"}, {"attribute": "max_contacts", "value": "1"} ] }' https://localhost/ari/asterisk/config/dynamic/res_pjsip/aor/1001
> {noformat}
>
> {noformat}
> curl -k -X PUT -H "Content-Type: application/json" -u user:pass -d '{"fields": [ { "attribute": "allow", "value": "!all,opus,vp9"}, { "attribute": "transport", "value": "transport-wss"}, {"attribute": "context", "value": "customers" },{"attribute": "message_context", "value": "messages" },{"attribute": "dtls_auto_generate_cert", "value": "yes" }, {"attribute": "webrtc", "value": "yes" }, {"attribute": "auth", "value": "1001" }, {"attribute": "aors", "value": "1001"} ] }' https://localhost/ari/asterisk/config/dynamic/res_pjsip/endpoint/1001
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list