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);
Added Kamailio system files for Oracle Enterprise Linux 6/7
Created a directory structure under <SRCROOT>/pkg/kamailio directory for Oracle Enterprise Linux.
File oracle/kamailio.spec moved to oracle/el6/kamailio.spec
Added init scripts and defaults for kamailio under oracle/el6 directory.
Added systemd service and sysconfig script for kamailio under oracle/el7 directory.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/591
-- Commit Summary --
* Added Oracle Enterpise Linux 6 SPEC, init script and defaults script.
* Added Oracle Enterpise Linux 7 SPEC, init script and defaults script.
* Added logrotate and rsyslog samples for kamailio
* FIX: do not enable kamailio service after installation, only reload systmd daemon
-- File Changes --
A pkg/kamailio/oracle/el6/kamailio.default (30)
A pkg/kamailio/oracle/el6/kamailio.init (128)
R pkg/kamailio/oracle/el6/kamailio.spec (4)
A pkg/kamailio/oracle/el7/kamailio.service (17)
A pkg/kamailio/oracle/el7/kamailio.spec (854)
A pkg/kamailio/oracle/el7/kamailio.sysconfig (36)
A pkg/kamailio/oracle/kamailio.logrotate (7)
A pkg/kamailio/oracle/kamailio.rsyslog (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/591.patchhttps://github.com/kamailio/kamailio/pull/591.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/591
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.
Is there any good reason to limit the request to 2 digits as minimum?
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/593
-- Commit Summary --
* a single number should be a valid in function enum_query()
* print out malformed enum_query() request in enum.c
-- File Changes --
M modules/enum/enum.c (11)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/593.patchhttps://github.com/kamailio/kamailio/pull/593.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/593