<div dir="ltr">Hello Sirs, Sir Alex,<div>Thank you for your quick response.</div><div><br></div><div>What is the best way to consume those info from client (ex: chrome)? Adding them as headers in the REGISTER response? How would I do with avatar which is binary?</div>
<div><br></div><div>Thank you.</div><div><br></div><div>Best regards,</div><div>Mihai M</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Mar 21, 2014 at 1:24 AM, Alex Balashov <span dir="ltr"><<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Mihai,<div class=""><br>
<br>
On 03/20/2014 07:22 PM, Mihai Marin wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello Sirs,<br>
How can I extend subscriber profile with some information like avatar,<br>
name, surname, other custom attributes in order to consume those<br>
information from a WebRTC app? Is there any standard way or we should<br>
use custom code for that?<br>
</blockquote>
<br></div>
In fact, there is!<br>
<br>
Just add columns to the 'subscriber' table. After you do, the 'auth_db' module provides a way to have them loaded into variables as a byproduct of an authentication challenge:<br>
<br>
   <a href="http://kamailio.org/docs/modules/4.1.x/modules/auth_db.html#idp74512" target="_blank">http://kamailio.org/docs/<u></u>modules/4.1.x/modules/auth_db.<u></u>html#idp74512</a><br>
<br>
Of course, if you want to take a different schematic approach, you can always just use 'sqlops' to do your own queries.<br>
<br>
-- Alex<br>
<br>
-- <br>
Alex Balashov - Principal<br>
Evariste Systems LLC<br>
235 E Ponce de Leon Ave<br>
Suite 106<br>
Decatur, GA 30030<br>
United States<br>
Tel: <a href="tel:%2B1-678-954-0670" value="+16789540670" target="_blank">+1-678-954-0670</a><br>
Web: <a href="http://www.evaristesys.com/" target="_blank">http://www.evaristesys.com/</a>, <a href="http://www.alexbalashov.com/" target="_blank">http://www.alexbalashov.com/</a><br>
<br>
______________________________<u></u>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a><br>
</blockquote></div><br></div>