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

Sebastian Gutierrez (JIRA) noreply at issues.asterisk.org
Fri Mar 20 07:39:25 CDT 2020


Sebastian Gutierrez created ASTERISK-28786:
----------------------------------------------

             Summary: 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: 17.3.0, 16.9.0
         Environment: Ubuntu 18.04 (pjsip and libjanson bundled)
            Reporter: Sebastian Gutierrez
            Severity: Minor


Using ARI Rest interface to create AORs Auths and Enpoints 

 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


res_sorcery.conf
[res_pjsip]
endpoint=astdb,ps_endpoints
auth=astdb,ps_auths
aor=astdb,ps_aors



WebServices:

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

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
 
  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



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list