[SR-Users] Loading multiple htables from db on startup? (Kamailio 1.5)

Alex Balashov abalashov at evaristesys.com
Tue Jul 5 20:21:32 CEST 2011


On 07/05/2011 01:51 PM, Alex Balashov wrote:
> On 07/05/2011 11:46 AM, Robin Rodriguez wrote:
>
>> So it uses the first defined database table, but then the last
>> defined key_name and key_value.
>
> This appears to just be an oversight in the design of the module
> parameters. One can define multiple tables, but the rest of the
> modparams are global.
>
> As a workaround, I would suggest a view. Alias the columns identically
> in the view, but map them to different underlying columns in the
> different table.

... well, if you intend to write to them, only some databases support 
that.  MySQL does.  Not sure about Postgres or others.

-- 
Alex Balashov - Principal
Evariste Systems LLC
260 Peachtree Street NW
Suite 2200
Atlanta, GA 30303
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web: http://www.evaristesys.com/



More information about the sr-users mailing list