[SR-Users] Store and add custom variables for sip registrations
mb at tenios.de
Wed Oct 26 11:34:03 CEST 2016
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
More information about the sr-users