[SR-Users] How can one change acc table name in Kamailio.cfg

Z xpxriz at gmail.com
Fri Mar 15 13:54:05 CET 2019


Hi Daniel,

The version is 4.2 on Debian stretch.

However, I was able to get it to work using !#define DBURL.

Also I use updates using sqlops. For which I created a variable var(x) at
each block {route, reply etc...} for the table name.

Appreciate your help.

Z

On Fri, Mar 15, 2019 at 1:40 AM Daniel-Constantin Mierla <miconda at gmail.com>
wrote:

> Hello,
>
> what version of kamailio are you using (kamailio -v)?
>
> Cheers,
> Daniel
> On 14.03.19 18:04, Z wrote:
>
> For some reason these two modparams are always ignored.
> The table name used is always acc which is default name.
> How can I change the table name?
> loadmodule "acc.so"
> modparam("acc", "db_table_acc", "*acc_$time(year)_$time(mon)*")
> modparam("acc", "db_table_missed_calls", "*acc_$time(year)_$time(mon)*")
> Accounting works as expected otherwise.
> Appreciate any help.
> Thanks.
>
> _______________________________________________
> Kamailio (SER) - Users Mailing Listsr-users at lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
> --
> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
> Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com
> Kamailio Advanced Training - Mar 25-27, 2019, in Washington, DC, USA -- www.asipto.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190315/bb7cc92f/attachment.html>


More information about the sr-users mailing list