Module: kamailio
Branch: 5.5
Commit: ab86966aca142eeca5435f8567fe8cc698500cd2
URL:
https://github.com/kamailio/kamailio/commit/ab86966aca142eeca5435f8567fe8cc…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-08-24T09:06:34+02:00
lib/srdb1/schema: use proto_addr_len from sip_trace from/to ip fields
- size of fields is now 64
- they store proto:addr:port
- GH #2831
(cherry picked from commit 4decc7ca50089f94d4fcc2ad4af2b4e1089986e7)
---
Modified: src/lib/srdb1/schema/entities.xml
Modified: src/lib/srdb1/schema/sip_trace.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/ab86966aca142eeca5435f8567fe8cc…
Patch:
https://github.com/kamailio/kamailio/commit/ab86966aca142eeca5435f8567fe8cc…
---
diff --git a/src/lib/srdb1/schema/entities.xml b/src/lib/srdb1/schema/entities.xml
index 4ca1b6bfed..8021e8e738 100644
--- a/src/lib/srdb1/schema/entities.xml
+++ b/src/lib/srdb1/schema/entities.xml
@@ -30,6 +30,7 @@
<!ENTITY etag_len "128">
<!ENTITY aname_len "64">
<!ENTITY avalue_len "512">
+<!ENTITY proto_addr_len "64">
<!ENTITY MYSQL_TABLE_TYPE "">
<!ENTITY USERCOL "username">
<!ENTITY DEFAULT_ALIASES_EXPIRES "2030-05-28 21:32:15">
diff --git a/src/lib/srdb1/schema/sip_trace.xml b/src/lib/srdb1/schema/sip_trace.xml
index 5aa38369fd..21b4f0ef61 100644
--- a/src/lib/srdb1/schema/sip_trace.xml
+++ b/src/lib/srdb1/schema/sip_trace.xml
@@ -91,7 +91,7 @@
<column id="fromip">
<name>fromip</name>
<type>string</type>
- <size>&ip_add_len;</size>
+ <size>&proto_addr_len;</size>
<default/>
<description>Source IP address</description>
</column>
@@ -99,7 +99,7 @@
<column>
<name>toip</name>
<type>string</type>
- <size>&ip_add_len;</size>
+ <size>&proto_addr_len;</size>
<default/>
<description>Destination IP address</description>
</column>