<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hello Alexsandar,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
the process is like this:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<ul>
<li>extend the XML db source definition in src/lib/srdb1/schema</li><li>you will find some general size/type definitions in the entities.xml file, please use them if possible<br>
</li><li>increment the version number for this particular table in the XML as well<br>
</li><li>you can create the DB specific files locally (needs xsltproc) with "make dbschema"</li><li>check for the new table version number in the module coding<br>
</li><li>extend the module code to actually use the new fields<br>
</li><li>creating a pull request with the XML and coding changes to integrate it into git master</li></ul>
<div>For bigger extensions it might also a good idea to contact the module author to receive some feedback before finishing the implementation.
<span id="🙂" title=":leichtes_Lächeln:">🙂</span><br>
</div>
<div><br>
</div>
<div>Cheers,</div>
<div><br>
</div>
<div>Henning<br>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> sr-dev <sr-dev-bounces@lists.kamailio.org> im Auftrag von Александър Йосифов <alexyosifov@gmail.com><br>
<b>Gesendet:</b> Freitag, 14. Juni 2019 15:56<br>
<b>An:</b> sr-dev@lists.kamailio.org<br>
<b>Betreff:</b> [sr-dev] Adding new fields in pcscf.location table</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>Hello,</div>
<div>What is the procedure for adding new fields in some DB table?</div>
<div>In particular, I am working under a feature for multiple tcp connections for IPSEC in P-CSCF and for this purpose new fields are needed to store pcscf client and server ports for each registered contact.</div>
<div>The new fields 'port_pc', 'port_ps', 't_port_pc' and 't_port_ps' should be added in pcscf.location table.</div>
<div><br>
</div>
<div>Thank you for your help!<br>
</div>
<div><br>
</div>
<div><br>
-- <br>
<div dir="ltr" class="x_gmail_signature">
<div dir="ltr">
<div>Best Regards,<br>
</div>
Aleksandar Yosifov<br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>