Hi Rodrigo,

The format of the tables is not part of the opensips script. Is like in mysql, where you define the tables in mysql itself and not in opensips. The db text files (the actual tables) are to be placed where ever you want on the disk. What you need to do from OpenSIPS cfg is to point via db_url to the location where the table files exist.

Like if you use:
modparam("usrloc", "db_url", "text:///path/to/dbtext/database")

then OpenSIPS will expect to find in /path/to/dbtext/database dir the "location" file with the description of the location table

Best regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 13.05.2016 20:59, Rodrigo Pimenta Carvalho wrote:

Hi.

I'm reading the documentation about DB_Text.


Where, in script, can I write an Internal format of a db_text table?


For example, I need write :


"

...
table_name(str) table_version(int)
acc:6;
#missed_calls:5
#domain:3
#grp:3
#re_grp:2
#address:5
#aliases:1009
#location:1009
...

"


So, in which part of the script can I write this commands without parser error?


Any hint will be very helpful.


Regards.




RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979


_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to