@Fr-Soltanzadeh commented on this pull request.
> @@ -3349,7 +3349,10 @@ static bencode_item_t
> *rtpp_function_call(bencode_buffer_t *bencbuf,
} else {
ng_flags.dict = extra_dict;
ng_flags.flags = bencode_dictionary_get(ng_flags.dict, "flags");
- bencode_dictionary_get_str(ng_flags.dict, "call-id",
&ng_flags.call_id);
> Ok, you mean you don't want to overwrite/reset `ng_flags.call_id` if it was
> set already, right?
Not exactly. I want to overwrite/reset ng_flags.call_id only if ng_flags.dict
contains the "call-id" key, ensuring it's never null.
> I don't think using `shm_str_dup` is correct though. I don't see a
> corresponding `shm_free`. Shouldn't it just be `ng_flags.call_id =
> tmp_callid;` ?
You're rightâshm_str_dup isn't necessary here. I updated it to directly assign
tmp_callid to ng_flags.call_id. Thanks for pointing that out!
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/4097#discussion_r1911912281
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/4097/review/2544575...@github.com>
_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the
sender!