modparam("outbound", "force_outbound_flag", 1) doesn't work.
In modules/outbound/ob_mod.c:
int use_outbound(struct sip_msg *msg)
...
/* If Outbound is forced return success without any further checks */
if (ob_force_flag != -1 && isflagset(msg, ob_force_flag) > 0)
isflagset(msg, ob_force_flag) > 0 is always false, it seems the flag is
never set.
If I remove isflagset(msg, ob_force_flag) > 0, it works, and the token is
added in Path header.
What's the isflagset() supposed to check ?
I'm using the edge proxy example at
http://kamailio.org/docs/modules/4.2.x/modules/outbound.html#idp190984
Thanks.
when the contact is deleted using db_delete_ucontact_ruid (default)
the uldb_attrs_delete is not called leaving the location_attrs with unwanted records
created uldb_attrs_delete_ruid to be called by db_delete_ucontact_ruid
redirected uldb_attrs_delete to uldb_attrs_delete_ruid
also changed the places inside contact where uldb_attrs_delete was called to call new uldb_attrs_delete_ruid function
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/102
-- Commit Summary --
* usrloc - fix contacts attrs not deleted
-- File Changes --
M modules/usrloc/ucontact.c (80)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/102.patchhttps://github.com/kamailio/kamailio/pull/102.diff
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/102
Module: kamailio
Branch: master
Commit: 634db00a82f36c6c60d272ccada4a1d5338d1cbc
URL: https://github.com/kamailio/kamailio/commit/634db00a82f36c6c60d272ccada4a1d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-02-26T21:58:47+01:00
uac: skip only the invalid record when loading remote registration records
- fixes loading only the good records before the wrong record, thus
working with partial valid data afterwards, even more valid records
were in the db
---
Modified: modules/uac/uac_reg.c
---
Diff: https://github.com/kamailio/kamailio/commit/634db00a82f36c6c60d272ccada4a1d…
Patch: https://github.com/kamailio/kamailio/commit/634db00a82f36c6c60d272ccada4a1d…
---
diff --git a/modules/uac/uac_reg.c b/modules/uac/uac_reg.c
index f0829fe..b52a044 100644
--- a/modules/uac/uac_reg.c
+++ b/modules/uac/uac_reg.c
@@ -1007,9 +1007,9 @@ void uac_reg_timer(unsigned int ticks)
(char*)(RES_ROWS(db_res)[i].values[pos].val.string_val); \
reg.attr.len = strlen(reg.attr.s); \
if(reg.attr.len == 0) { \
- LM_ERR("empty value not allowed for column[%d]=%.*s\n", \
+ LM_ERR("empty value not allowed for column[%d]='%.*s' - ignoring record\n", \
pos, db_cols[pos]->len, db_cols[pos]->s); \
- goto error; \
+ continue; \
} \
} \
} while(0);