Hi ,
we have a need to query dbtext data from kamctl but we need to issue a kamcmd db_text.dump each time so that we can get updated values.
what would be the best way to query updated dbtext data without the db_text.dump step ?
maybe implement db_text.sql and use a parser (db2_ops?) to transform sql statement and get the data ?
Tks
Module: sip-router
Branch: lazedo/4.2.1
Commit: 543e5dd2e6a9e266e3edd8c2389945528aa7200a
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=543e5dd…
Author: Luis Azedo <luis(a)2600hz.com>
Committer: Luis Azedo <luis(a)2600hz.com>
Date: Sun Dec 7 11:55:45 2014 +0000
Merge branch '4.2' into lazedo/4.2.1
* 4.2:
exec: use proper header field iterator to print env variables
core: keep the password only if the user part is set
acc: free extra attributes for db, radius and diameter
modules/pua: do not override send_publish return value at error
nat_traversal: use dedicated function for testing via address against source ip
nathelper: use dedicated function for testing via address against source ip
core: dedicated function to check Via address with source ip
---
Module: sip-router
Branch: 4.1
Commit: bb9c3af9be386f3933713ef180c293ac9162e3e7
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=bb9c3af…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Dec 5 18:17:39 2014 +0100
core: keep the password only if the user part is set
- a report by Timo Klecker
(cherry picked from commit 8c3d167b63096d3b465c53aca92ee18c5255188c)
(cherry picked from commit f03a1769c55b4992613e153bd8d7bd012fc67525)
---
action.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/action.c b/action.c
index 5fa50ee..5c078ce 100644
--- a/action.c
+++ b/action.c
@@ -943,8 +943,8 @@ int do_action(struct run_act_ctx* h, struct action* a, struct sip_msg* msg)
if (a->type==SET_USERPASS_T) tmp=0;
else tmp=uri.passwd.s;
- /* passwd */
- if (tmp){
+ /* passwd - keep it only if user is set */
+ if (user && tmp){
len=uri.passwd.len; if(crt+len+1>end) goto error_uri;
*crt=':'; crt++;
memcpy(crt,tmp,len);crt+=len;