[OpenSIPS-Users] Different name for 'location' table?

Chris Maciejewski chris at wima.co.uk
Mon Apr 26 13:43:41 CEST 2010


Ah I see. So if I use

save('table1');

in one part of my config file, and

save('table2');

in another part of the same config file, will opensips remove expired
contacts from both 'table1' and 'table2' ?

Regards,
Chris

On 26 April 2010 11:48, Bogdan-Andrei Iancu <bogdan at voice-system.ro> wrote:
> No need to hack the code - the usrloc module does not have any "table"
> param as it automatically operates with the tables given by save() and
> lookup().
>
> So, the expired entries should be removed from the corresponding table
> without any extra cfg.
>
> Regards,
> Bogdan
>
> Julian Yap wrote:
>> If there's no module parameter, you'd probably need to hack the source code.
>>
>> On Sat, Apr 24, 2010 at 12:27 AM, Chris Maciejewski <chris at wima.co.uk> wrote:
>>
>>> Hi,
>>>
>>> Is it possible to use different name of 'location' table? For example
>>> if I wanted to use 'prefix1_location' instead of standard 'location',
>>> I understand in my config file I would use:
>>>
>>> save("prefix1_location");
>>> lookup("prefix1_location");
>>>
>>> but how do I tell 'userloc' module to use 'prefix1_location' instead
>>> of 'location' (in order to purge expired contacts etc.) ? There
>>> doesn't seem to be 'table_name(...)' module parameter?
>>>
>>> Regards,
>>> Chris
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>
>
> --
> Bogdan-Andrei Iancu
> www.voice-system.ro
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>



More information about the Users mailing list