<div dir="ltr">Many thanks!</div><br><div class="gmail_quote"><div dir="ltr">Em qui, 8 de nov de 2018 às 03:12, Alex Balashov <<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi João,<br>
<br>
It is certainly possible. Specifically, you can use values stored in<br>
pseudovariables for authentication challenges instead of going to the<br>
standard authentication database backing. Have a look at the pv_*<br>
functions in the `auth` module, e.g.<br>
<br>
<a href="https://kamailio.org/docs/modules/5.1.x/modules/auth.html#auth.f.pv_auth_check" rel="noreferrer" target="_blank">https://kamailio.org/docs/modules/5.1.x/modules/auth.html#auth.f.pv_auth_check</a><br>
<br>
Naturally, the values in these variables can be sourced from anywhere,<br>
including an API call to a web server. You can make that call using the<br>
`http_client` or `http_async_client` modules, for instance. You can even<br>
parse a JSON result using the `jansson` module.<br>
<br>
-- Alex<br>
<br>
On Thu, Nov 08, 2018 at 03:04:44AM -0200, João Sávio wrote:<br>
<br>
> Hello!<br>
> <br>
> I was reading the documentation of Kamailio, And, although there are some<br>
> authentication modules, I couldn't find a way to implement a custom<br>
> authentication for SIP Register. Something that allows me, for example, to<br>
> call a web server and returns if the user is authenticated, or the user<br>
> data.<br>
> <br>
> Am I missing anything? Do you know if it's possible to do this using<br>
> another way?<br>
> <br>
> Thanks<br>
> João<br>
<br>
> _______________________________________________<br>
> Kamailio (SER) - Users Mailing List<br>
> <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><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>
<br>
<br>
-- <br>
Alex Balashov | Principal | Evariste Systems LLC<br>
<br>
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) <br>
Web: <a href="http://www.evaristesys.com/" rel="noreferrer" target="_blank">http://www.evaristesys.com/</a>, <a href="http://www.csrpswitch.com/" rel="noreferrer" target="_blank">http://www.csrpswitch.com/</a><br>
<br>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><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>