We use enum_query() to dispatch calls over a set of gateways. In our case single digits (for instance "8") can be a valid direct dial number which we would like to through against our enum server.
(This is an update of #593, now with guideline formatted commit messages.)
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/594
-- Commit Summary --
* enum: single digit is valid in function enum_query
* enum: print out malformed uri in enum_query()
-- File Changes --
M modules/enum/enum.c (11)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/594.patchhttps://github.com/kamailio/kamailio/pull/594.diff
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/594
Kamailians,
I’ve added two patches to the registrar module:
- a new value to the XAVP created if you’ve set the xavp_rcd modparam to reveal the actual
expiry value stored in the location database. In some cases, Kamailio will not accept the one
provided by the client and respond with another value - this is that value
https://www.kamailio.org/docs/modules/stable/modules/registrar.html#registr…
- a new flag to save() to NOT apply variation set by default_expiry_range and expiry_range.
This is handy if you replicate registrations - the second server needs to save the value sent by the first one
and not change it once again.
Both of these patches work for me, but I would be happy if someone else could test as well.
If you find a problem, please open an issue in the bug tracker and I’ll look at it.
Thanks
/O
Module: kamailio
Branch: 4.3
Commit: 45060ef72edf5fdac9376150e60d56ff9458e4ff
URL: https://github.com/kamailio/kamailio/commit/45060ef72edf5fdac9376150e60d56f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: 2016-05-03T18:34:27+03:00
xmlrpc: user libxml function to get content of node if type not provided for param
- it is considered to be string according to specs
- old implementation was using the pointer inside the xmlNode struct,
which may not be available later to free again by xmlrpc module
garbage collector
- reported by Juha Heinanen
(cherry picked from commit 6b23c27d8406780083a6b7bb774efa2a53aea540)
---
Modified: modules/xmlrpc/xmlrpc.c
---
Diff: https://github.com/kamailio/kamailio/commit/45060ef72edf5fdac9376150e60d56f…
Patch: https://github.com/kamailio/kamailio/commit/45060ef72edf5fdac9376150e60d56f…
---
diff --git a/modules/xmlrpc/xmlrpc.c b/modules/xmlrpc/xmlrpc.c
index 8761c02..dabb526 100644
--- a/modules/xmlrpc/xmlrpc.c
+++ b/modules/xmlrpc/xmlrpc.c
@@ -1407,6 +1407,7 @@ static int get_string(char** val, struct xmlrpc_reply* reply,
return -1;
}
type=xml_get_type(dbl);
+ LM_DBG("xmrpc parameter type: %d\n", type);
switch(type){
case XML_T_STR:
case XML_T_TXT:
@@ -1423,7 +1424,7 @@ static int get_string(char** val, struct xmlrpc_reply* reply,
return -1;
}
if (type == XML_T_TXT)
- val_str = (char*)dbl->content;
+ val_str = (char*)xmlNodeGetContent(dbl);
else
val_str = (char*)xmlNodeListGetString(doc, dbl->xmlChildrenNode, 1);
Module: kamailio
Branch: 4.4
Commit: ea20338f8786fac2bb290a610f938fec8e7ece54
URL: https://github.com/kamailio/kamailio/commit/ea20338f8786fac2bb290a610f938fe…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: 2016-05-03T18:33:10+03:00
xmlrpc: user libxml function to get content of node if type not provided for param
- it is considered to be string according to specs
- old implementation was using the pointer inside the xmlNode struct,
which may not be available later to free again by xmlrpc module
garbage collector
- reported by Juha Heinanen
(cherry picked from commit 6b23c27d8406780083a6b7bb774efa2a53aea540)
---
Modified: modules/xmlrpc/xmlrpc.c
---
Diff: https://github.com/kamailio/kamailio/commit/ea20338f8786fac2bb290a610f938fe…
Patch: https://github.com/kamailio/kamailio/commit/ea20338f8786fac2bb290a610f938fe…
---
diff --git a/modules/xmlrpc/xmlrpc.c b/modules/xmlrpc/xmlrpc.c
index 8761c02..dabb526 100644
--- a/modules/xmlrpc/xmlrpc.c
+++ b/modules/xmlrpc/xmlrpc.c
@@ -1407,6 +1407,7 @@ static int get_string(char** val, struct xmlrpc_reply* reply,
return -1;
}
type=xml_get_type(dbl);
+ LM_DBG("xmrpc parameter type: %d\n", type);
switch(type){
case XML_T_STR:
case XML_T_TXT:
@@ -1423,7 +1424,7 @@ static int get_string(char** val, struct xmlrpc_reply* reply,
return -1;
}
if (type == XML_T_TXT)
- val_str = (char*)dbl->content;
+ val_str = (char*)xmlNodeGetContent(dbl);
else
val_str = (char*)xmlNodeListGetString(doc, dbl->xmlChildrenNode, 1);
Module: kamailio
Branch: master
Commit: 6b23c27d8406780083a6b7bb774efa2a53aea540
URL: https://github.com/kamailio/kamailio/commit/6b23c27d8406780083a6b7bb774efa2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-05-03T16:59:06+02:00
xmlrpc: user libxml function to get content of node if type not provided for param
- it is considered to be string according to specs
- old implementation was using the pointer inside the xmlNode struct,
which may not be available later to free again by xmlrpc module
garbage collector
- reported by Juha Heinanen
---
Modified: modules/xmlrpc/xmlrpc.c
---
Diff: https://github.com/kamailio/kamailio/commit/6b23c27d8406780083a6b7bb774efa2…
Patch: https://github.com/kamailio/kamailio/commit/6b23c27d8406780083a6b7bb774efa2…
---
diff --git a/modules/xmlrpc/xmlrpc.c b/modules/xmlrpc/xmlrpc.c
index 8761c02..dabb526 100644
--- a/modules/xmlrpc/xmlrpc.c
+++ b/modules/xmlrpc/xmlrpc.c
@@ -1407,6 +1407,7 @@ static int get_string(char** val, struct xmlrpc_reply* reply,
return -1;
}
type=xml_get_type(dbl);
+ LM_DBG("xmrpc parameter type: %d\n", type);
switch(type){
case XML_T_STR:
case XML_T_TXT:
@@ -1423,7 +1424,7 @@ static int get_string(char** val, struct xmlrpc_reply* reply,
return -1;
}
if (type == XML_T_TXT)
- val_str = (char*)dbl->content;
+ val_str = (char*)xmlNodeGetContent(dbl);
else
val_str = (char*)xmlNodeListGetString(doc, dbl->xmlChildrenNode, 1);