@Fr-Soltanzadeh commented on this pull request.
@@ -3323,9 +3341,18 @@ static bencode_item_t
*rtpp_function_call(bencode_buffer_t *bencbuf,
}
/* initialize some basic bencode items */
- ng_flags.dict = bencode_dictionary(bencbuf);
+ if(!extra_dict) {
+ ng_flags.dict = bencode_dictionary(bencbuf);
+ if(parse_by_module) {
+ ng_flags.flags = bencode_list(bencbuf);
+ }
+ } else {
+ ng_flags.dict = extra_dict;
+ ng_flags.flags = bencode_dictionary_get(ng_flags.dict, "flags");
Yes I need. Before this change, it was like:
```
if(parse_by_module) {
ng_flags.flags = bencode_list(bencbuf);
ng_flags.received_from = bencode_list(bencbuf);
}
```
but now I have some flags in extra_dict, so I need to create flags in ng_flags from flags
in extra_dict.
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/4071#discussion_r1887970342
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/4071/review/2507963010(a)github.com>