<div dir="ltr">Hello,<div><br></div><div>Kamailio default configuration file provides samples on how to configure a simple VoIP provider.<br><br>regarding SIP trunking it has examples for: user authentication and IP authorization.<br><br>In order to enable user authentication you need to define:<br><br>#!define WITH_MYSQL<br>#!define WITH_AUTH<br><br>This will enable MySQL DB back-end support and auth and auth_db modules. You should have MySQL server configured with a database required by kamailio and create subscribers with username, passwords. <br><br>After that you can register a SIP client with username/password previously created.</div><div><br></div><div><a href="https://kamailio.org/docs/modules/5.5.x/modules/auth.html">https://kamailio.org/docs/modules/5.5.x/modules/auth.html</a><br></div><div><a href="https://kamailio.org/docs/modules/5.5.x/modules/auth_db.html">https://kamailio.org/docs/modules/5.5.x/modules/auth_db.html</a><br></div><div><br></div><div><br></div><div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 31, 2021 at 3:12 AM zak ast <<a href="mailto:zakast123@gmail.com">zakast123@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I know I can you uacreg to register a SIP trunk as a SIP client with username/password. But how can I set up a SIP trunk as a provider and get the other end (SIP client) to register with username/password.</div><div><br></div><div>Regards,</div><div>Zak.</div></div>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
  * <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
Edit mailing list options or unsubscribe:<br>
  * <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Arsen Semenov<br></div><div><br></div></div></div>