Hello,
when you define the hash table, there is an option to write back to
database, but I think it's happening only at shutdown.
The location_attrs table is used by usrloc module, you just need to set
some xavp in order to get them stored, respectively:
https://www.kamailio.org/docs/modules/stable/modules/usrloc.html#usrloc.p.x…
The set:
$xavp(ulattrs=>x] = "abc";
$xavp(ulattrs[0]=>x] = "abcd";
Cheers,
Daniel
On 26/10/16 11:34, Markus Bönke wrote:
Hallo all,
we want to use kamailio as registrar server in front of freeswitch. When a user registers
we need to lookup and store some user variables. To every INVITE that is received from a
registered user we want to add the variables as x sip headers before we relay them to
freeswitch. The question is what is the best way to implement this?
We tried to store the variables in a htable on register and then lookup and attach the
variables on every INVITE from there. Is this the correct approach, one issue we see is
that htable is not writing new inserts directly to the database.
I’ve also seen that there is a table location_atts in the kamailio db which looks like
that it is intended to store custom key value pairs for registrations, but the seems to be
no module which writes to that table, or is there one?
Thanks for any help or suggestions
Markus
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Berlin, Nov 28-30, 2016 -
http://www.asipto.com