@Fr-Soltanzadeh commented on this pull request.
- 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.