@Fr-Soltanzadeh commented on this pull request.


In src/modules/rtpengine/rtpengine.c:

> +	if(sess->callid)
+		bencode_dictionary_add_str(dict, "call-id", sess->callid);
+	else if(sess->msg)
+		bencode_dictionary_add_str(dict, "call-id", &sess->msg->callid->body);
+	if(sess->branch != RTPENGINE_ALL_BRANCHES)
+		bencode_dictionary_add_str(dict, "via-branch", viabranch);
+	if(to_tag && to_tag->len)
+		bencode_dictionary_add_str(dict, "to-tag", to_tag);
+	if(copy_flags & RTP_COPY_MODE_SIPREC) {
+		list = bencode_list(&bencbuf);
+		bencode_dictionary_add(dict, "flags", list);
+		bencode_list_add_string(list, "all");
+		bencode_list_add_string(list, "siprec");
+	} else if((copy_flags & RTP_COPY_LEG_BOTH) == RTP_COPY_LEG_BOTH) {
+		list = bencode_list(&bencbuf);
+		bencode_list_add_string(list, "all");

Yes, that's correct. Resolved.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <kamailio/kamailio/pull/4071/review/2507927376@github.com>