<div dir="ltr"><div>Hi,</div><div>Thank you for the quick response!</div><div>I couldn't find the xml file for ims p-cscf user location table in src/lib/srdb1/schema, but I found ims_usrloc_pcscf-create.sql file in utils/kamctl/mysql folder.</div><div>Is it enough and correct to edit this file with the new fields and incremented table version?</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 15 Jun 2019 at 11:37, Henning Westerholt <<a href="mailto:hw@skalatan.de" target="_blank">hw@skalatan.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">




<div 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="gmail-m_-8259774623243235135gmail-m_1664012380258381367🙂" title=":leichtes_Lächeln:">🙂</span><br>
</div>
<div><br>
</div>
<div>Cheers,</div>
<div><br>
</div>
<div>Henning<br>
</div>
</div>
<div id="gmail-m_-8259774623243235135gmail-m_1664012380258381367appendonsend"></div>
<hr style="display:inline-block;width:98%">
<div id="gmail-m_-8259774623243235135gmail-m_1664012380258381367divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>Von:</b> sr-dev <<a href="mailto:sr-dev-bounces@lists.kamailio.org" target="_blank">sr-dev-bounces@lists.kamailio.org</a>> im Auftrag von Александър Йосифов <<a href="mailto:alexyosifov@gmail.com" target="_blank">alexyosifov@gmail.com</a>><br>
<b>Gesendet:</b> Freitag, 14. Juni 2019 15:56<br>
<b>An:</b> <a href="mailto:sr-dev@lists.kamailio.org" target="_blank">sr-dev@lists.kamailio.org</a><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="gmail-m_-8259774623243235135gmail-m_1664012380258381367x_gmail_signature">
<div dir="ltr">
<div>Best Regards,<br>
</div>
Aleksandar Yosifov<br>
</div>
</div>
</div>
</div>
</div>
</div>

</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail-m_-8259774623243235135gmail_signature"><div dir="ltr"><div>Best Regards,<br></div>Aleksandar Yosifov<br></div></div>