<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello.<br>
    <br>
    Asterisk 13.2.<br>
    I transfer configs from chan_sip to res_pjsip.<br>
    In chan_sip i have "match_auth_username=yes" and have nothing in
    pjsip.<br>
    <br>
    I have a lot of endpoints and registrations on same SIP server. And
    it's problem in pjsip now. Is not it?<br>
    <br>
    I requesting to add new value for endpoint option identify_by. The
    value 'uri'.<br>
    Simple config (cutted):<br>
    <br>
    <pre class="code" style="margin: 0px 0px 1.4em; padding: 0.7em 1em; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Bitstream Vera Sans Mono', 'Nimbus Mono L', Monaco, 'Courier New', monospace; font-size: 14px; direction: ltr; text-align: left; color: rgb(51, 51, 51); box-shadow: rgb(204, 204, 204) 0px 0px 0.5em inset; border-radius: 2px; overflow: auto; word-wrap: normal; border: 1px solid rgb(204, 204, 204); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19.6000003814697px; orphans: auto; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(251, 250, 249);">[siptrunk]
type=registration
transport=udp-transport
outbound_auth=siptrunk
server_uri=sip:sip.example.com
<a class="moz-txt-link-abbreviated" href="mailto:client_uri=sip:1234567890@sip.example.com">client_uri=sip:1234567890@sip.example.com</a>
retry_interval=60
contact_user=siptrunk-in

[siptrunk-in]
type=endpoint
transport=udp-transport
context=from-trunk
disallow=all
allow=ulaw
outbound_auth=siptrunk
aors=siptrunk
identify_by=uri
</pre>
    <br>
    Registration section has option "contact_user". Incoming call from
    this registration will be INVITE sip:siptrunk-in@....<br>
    I offer to change res_pjsip_endpoint_identifier_user to realize
    endpoint identification by sip uri.<br>
    <br>
    I think it will be usefull.<br>
    <br>
    P.S. i hope issues will be rejected:
    <a class="moz-txt-link-freetext" href="https://issues.asterisk.org/jira/browse/ASTERISK-22306">https://issues.asterisk.org/jira/browse/ASTERISK-22306</a> and SWP-6069 
    <span style="color: rgb(51, 51, 51); font-family: Arial, sans-serif;
      font-size: 14px; font-style: normal; font-variant: normal;
      font-weight: normal; letter-spacing: normal; line-height: 20px;
      orphans: auto; text-align: start; text-indent: 0px;
      text-transform: none; white-space: nowrap; widows: auto;
      word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline
      !important; float: none; background-color: rgb(230, 230, 230);"><span
        class="Apple-converted-space"></span></span><span
      title="SWP-6069 res_pjsip endpoint config object's 'identify_by'
      option needs cleanup, removal or other modification" style="color:
      rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 14px;
      font-style: normal; font-variant: normal; font-weight: normal;
      letter-spacing: normal; line-height: 20px; orphans: auto;
      text-align: start; text-indent: 0px; text-transform: none;
      white-space: nowrap; widows: auto; word-spacing: 0px;
      -webkit-text-stroke-width: 0px; background-color: rgb(230, 230,
      230);"><br>
      <br>
      <br>
    </span>Dmitriy Serov
  </body>
</html>