[asterisk-bugs] [JIRA] (ASTERISK-28786) Duplicated Endpoints, AORS, Auths user ARI sorcery

Asterisk Team (JIRA) noreply at issues.asterisk.org
Tue Apr 14 12:00:25 CDT 2020


    [ https://issues.asterisk.org/jira/browse/ASTERISK-28786?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=250306#comment-250306 ] 

Asterisk Team commented on ASTERISK-28786:
------------------------------------------

Suspended due to lack of activity. This issue will be automatically re-opened if the reporter posts a comment. If you are not the reporter and would like this re-opened please create a new issue instead. If the new issue is related to this one a link will be created during the triage process. Further information on issue tracker usage can be found in the Asterisk Issue Guidlines [1].

[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines

> 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