<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>My way:</p>
    <p>from original kamailio.cfg in global parameters:</p>
    <p><i><b>#!define WITH_MYSQL</b></i><i><b><br>
        </b></i><i><b>#!define WITH_USRLOCDB</b></i><i><b><br>
        </b></i><i><b>#!define WITH_AUTH</b></i><br>
    </p>
    <p>then:</p>
    <p><i><b>auto_aliases=no</b></i><br>
    </p>
    <p>one entry for each domain/subdomain, example:</p>
    <p><em><strong>alias="sip1.kamailio.org"<br>
          alias="sip2.kamailio.org"</strong></em></p>
    <p>add the user using IP, example:</p>
    <p><b>kamctl add <a class="moz-txt-link-abbreviated" href="mailto:100@1.2.3.4">100@1.2.3.4</a> password</b></p>
    <p>Regards<br>
    </p>
    <pre class="moz-signature" cols="72">---
I'm SoCIaL, MayBe</pre>
    <div class="moz-cite-prefix">El 10/05/2022 a las 1:02 p. m., Raúl
      Alexis Betancor Santana escribió:<br>
    </div>
    <blockquote type="cite"
cite="mid:1563501951.2680492.1652205724055.JavaMail.zimbra@dimension-virtual.com">
      <pre class="moz-quote-pre" wrap="">As allways, there are 1 thousand ways of skinning a cat

You have 3 options:

1) Create the 100 user in all the domains with the same password.
2) Disable domain in auth_check
3) On the routing logic, when you detect your 100 user, do an auth without domain chekin (kind of option 2 but only for specific users)

----- Original Message -----
From: "Social Boh" <a class="moz-txt-link-rfc2396E" href="mailto:social@bohboh.info"><social@bohboh.info></a>
To: "Kamailio" <a class="moz-txt-link-rfc2396E" href="mailto:sr-users@lists.kamailio.org"><sr-users@lists.kamailio.org></a>, "Alex Balashov" <a class="moz-txt-link-rfc2396E" href="mailto:abalashov@evaristesys.com"><abalashov@evaristesys.com></a>
Sent: Tuesday, May 10, 2022 6:45:20 PM
Subject: Re: [SR-Users] Accept IP/Domain Register

I think my question not is clear.

I'd like create/configure, for example, user 100 and this user can 
register with kamailio using Kamailio IP or Kamailio associated Domains; 
this using digest authentication.

Regards

---
I'm SoCIaL, MayBe

El 10/05/2022 a las 12:26 p. m., Alex Balashov escribió:
</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">Yes. There is no rule that you have to issue a digest authentication challenge in response to registrations.

You can handle them like any other request, including validating the source IP against an IP ACL (e.g. allow_trusted(), or hard-coded like if(src_ip == 1.2.3.4)).

— Alex


Sent from mobile, with due apologies for brevity and errors.

</pre>
        <blockquote type="cite">
          <pre class="moz-quote-pre" wrap="">On May 10, 2022, at 12:49 PM, Social Boh <a class="moz-txt-link-rfc2396E" href="mailto:social@bohboh.info"><social@bohboh.info></a> wrote:

Hello,

maybe is a very basic question; How Kamailio can accept any kind of register, over IP or domains.

Example, accept authenticate REGISTER from ip 1.2.3.4 or sip.domain.org or sip1.domain.org, domains associated with ip 1.2.3.4

Thank you in advance.

Regards

-- 
---
I'm SoCIaL, MayBe


__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
* <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
* <a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
        </blockquote>
        <pre class="moz-quote-pre" wrap="">__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
   * <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
   * <a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * <a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * <a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
  </body>
</html>