[SR-Users] extend subscriber profile

Alex Balashov abalashov at evaristesys.com
Fri Mar 21 00:24:54 CET 2014


Hi Mihai,

On 03/20/2014 07:22 PM, Mihai Marin wrote:

> Hello Sirs,
> How can I extend subscriber profile with some information like avatar,
> name, surname, other custom attributes in order to consume those
> information from a WebRTC app? Is there any standard way or we should
> use custom code for that?

In fact, there is!

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:

    http://kamailio.org/docs/modules/4.1.x/modules/auth_db.html#idp74512

Of course, if you want to take a different schematic approach, you can 
always just use 'sqlops' to do your own queries.

-- Alex

-- 
Alex Balashov - Principal
Evariste Systems LLC
235 E Ponce de Leon Ave
Suite 106
Decatur, GA 30030
United States
Tel: +1-678-954-0670
Web: http://www.evaristesys.com/, http://www.alexbalashov.com/



More information about the sr-users mailing list