Hello,
can you provide more details about what you think is going wrong?
The value of this variable is updated by each process when that process
does some particular operations (e.g., receiving a sip message), it is
not propagated automatically to every kamailio process when you do the
update via kamcmd.
Cheers,
Daniel
On 14.05.18 19:43, Malcolm O'Hare wrote:
I'm trying to debug an issue I've encountered
where a variable that
I've set using kamcmd cfg.set has an unexpected value when used in
kamailio. The variable should be 0 or 1, but it looks like its
getting set accidently somehow.
2018-05-11T22:02:58.344260+00:00 ip-172-31-129-45 kamailio[5253]:
DEBUG: <core> [select.c:263]: resolve_select(): 'with_dynamodb_user_data'
2018-05-11T22:02:58.344264+00:00 ip-172-31-129-45 kamailio[5253]:
DEBUG: <core> [cfg/cfg_select.c:174]: select_cfg_var(): DEBUG:
select_cfg_var(): select fixup is postponed:
features.with_dynamodb_user_data
2018-05-11T22:05:03.467110+00:00 ip-172-31-129-45 kamailio[5551]:
INFO: <core> [cfg/cfg_ctx.c:608]: cfg_set_now(): INFO: cfg_set_now():
features.with_dynamodb_user_data has been changed to 1
2018-05-11T22:15:51.695118+00:00 ip-172-31-129-45 kamailio[5574]:
[2c03c333-1705-41b1-aa26-6f10492a5a6f] DEBUG: with_dynamodb_user_data
is 1157627905
I've tried to debug using gdb using breaks and set a watch on the
memory address of the var, but it looks like it keeps using different
memory locations. The value in the address pointed at by group.handle
seems to change for each invocation of set_cfg_now, so when I try and
put a watch on the address of *group.handle + var.offset it never gets
hit.
(gdb) print *group
$36 = {num = 25, mapping = 0x7f56ee4474f0, vars = 0x0, add_var = 0x0,
size = 164, meta_offset = 968, var_offset = 984, handle =
0x7f56edf92fd0, orig_handle = 0x0,
dynamic = 1 '\001', next = 0x0, name_len = 8, name = "f"}
(gdb) print *var
$62 = {def = 0x7f56ee471668, name_len = 23, pos = 24, offset = 164,
flag = 0}
Any ideas?
Malcolm
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users(a)lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
www.twitter.com/miconda --
www.linkedin.com/in/miconda
Kamailio World Conference - May 14-16, 2018 -
www.kamailioworld.com