<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt>Hi Rodrigo,</tt><tt><br>
</tt><tt><br>
</tt><tt>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</tt><tt>_url to the
location where the table files exist.</tt><tt><br>
</tt><tt><br>
</tt><tt>Like </tt><tt>if you use:</tt><tt><br>
</tt><tt> </tt><tt>modparam("usrloc", "db_url",
"text:///path/to/dbtext/database")</tt><tt><br>
</tt><tt><br>
</tt><tt>then OpenSIPS will expect to find in </tt><tt>/path/to/dbtext/database
dir the "location" file with the description of the location table<br>
<br>
Best regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 13.05.2016 20:59, Rodrigo Pimenta
Carvalho wrote:<br>
</div>
<blockquote
cite="mid:BY2PR02MB16556D9DDDB5CE2CF0AD0CD5B5740@BY2PR02MB1655.namprd02.prod.outlook.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi.</p>
<p>I'm reading the documentation about DB_Text.</p>
<p><br>
</p>
<p>Where, in script, can I write an Internal format of a db_text
table?</p>
<p><br>
</p>
<p>For example, I need write : <br>
</p>
<p><br>
</p>
<p>"</p>
<div>...<br>
table_name(str) table_version(int) <br>
acc:6;<br>
#missed_calls:5<br>
#domain:3<br>
#grp:3<br>
#re_grp:2<br>
#address:5<br>
#aliases:1009<br>
#location:1009</div>
...
<p>"</p>
<p><br>
</p>
<p>So, in which part of the script can I write this commands
without parser error?</p>
<p><br>
</p>
<p>Any hint will be very helpful.</p>
<p><br>
</p>
<p>Regards.</p>
<p><br>
<br>
</p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper"
style="font-family:Calibri,Arial,Helvetica,sans-serif;
font-size:; margin:0">
<div class="BodyFragment"><font size="2">
<div class="PlainText">RODRIGO PIMENTA CARVALHO<br>
Inatel Competence Center<br>
Software<br>
Ph: +55 35 3471 9200 RAMAL 979<br>
</div>
</font></div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>