Module: kamailio
Branch: master
Commit: 4efc9b3730e15f9e9f2274a8dfee59d76e5ecabd
URL:
https://github.com/kamailio/kamailio/commit/4efc9b3730e15f9e9f2274a8dfee59d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-03-21T14:23:35+01:00
lib/srdb1: fields for local sockets
- replace src ip with full address column
---
Modified: lib/srdb1/schema/topos_d.xml
Modified: lib/srdb1/schema/topos_t.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/4efc9b3730e15f9e9f2274a8dfee59d…
Patch:
https://github.com/kamailio/kamailio/commit/4efc9b3730e15f9e9f2274a8dfee59d…
---
diff --git a/lib/srdb1/schema/topos_d.xml b/lib/srdb1/schema/topos_d.xml
index 2664f27..4f53dc5 100644
--- a/lib/srdb1/schema/topos_d.xml
+++ b/lib/srdb1/schema/topos_d.xml
@@ -179,20 +179,36 @@
<description>The R-URI</description>
</column>
- <column id="a_srcip">
- <name>a_srcip</name>
+ <column id="a_srcaddr">
+ <name>a_srcaddr</name>
<type>string</type>
- <size>&ip_add_len;</size>
+ <size>&uri_len;</size>
+ <default/>
+ <description>Source address - A side</description>
+ </column>
+
+ <column id="b_srcaddr">
+ <name>b_srcaddr</name>
+ <type>string</type>
+ <size>&uri_len;</size>
<default/>
- <description>Source IP address</description>
+ <description>Source address - B side</description>
</column>
- <column id="b_srcip">
- <name>b_srcip</name>
+ <column id="a_socket">
+ <name>a_socket</name>
<type>string</type>
- <size>&ip_add_len;</size>
+ <size>&uri_len;</size>
+ <default/>
+ <description>Socket address - A side</description>
+ </column>
+
+ <column id="b_socket">
+ <name>b_socket</name>
+ <type>string</type>
+ <size>&uri_len;</size>
<default/>
- <description>Destination IP address</description>
+ <description>Socket address - B side</description>
</column>
<index>
diff --git a/lib/srdb1/schema/topos_t.xml b/lib/srdb1/schema/topos_t.xml
index 08c296a..de3a65c 100644
--- a/lib/srdb1/schema/topos_t.xml
+++ b/lib/srdb1/schema/topos_t.xml
@@ -138,6 +138,38 @@
<description>From tag - A or B side.</description>
</column>
+ <column id="a_srcaddr">
+ <name>a_srcaddr</name>
+ <type>string</type>
+ <size>&uri_len;</size>
+ <default/>
+ <description>Source address - A side</description>
+ </column>
+
+ <column id="b_srcaddr">
+ <name>b_srcaddr</name>
+ <type>string</type>
+ <size>&uri_len;</size>
+ <default/>
+ <description>Source address - B side</description>
+ </column>
+
+ <column id="a_socket">
+ <name>a_socket</name>
+ <type>string</type>
+ <size>&uri_len;</size>
+ <default/>
+ <description>Socket address - A side</description>
+ </column>
+
+ <column id="b_socket">
+ <name>b_socket</name>
+ <type>string</type>
+ <size>&uri_len;</size>
+ <default/>
+ <description>Socket address - B side</description>
+ </column>
+
<index>
<name>rectime_idx</name>
<colref linkend="rectime"/>