Skip to content

Commit

Permalink
rtpengine: prevent from reversing tags on DELETE
Browse files Browse the repository at this point in the history
When a delete is used on a reply route, do not reverse the tags,
otherwise rtpengine will not match the proper session. More details on
github, ticket #1339.
  • Loading branch information
razvancrainea committed Apr 19, 2018
1 parent 14abfc9 commit 818a74c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/rtpengine/rtpengine.c
Expand Up @@ -1798,6 +1798,7 @@ static bencode_item_t *rtpe_function_call(bencode_buffer_t *bencbuf, struct sip_
bencode_list_add_string(item, ip_addr2a(&msg->rcv.src_ip));

if ((msg->first_line.type == SIP_REQUEST && op != OP_ANSWER)
|| (msg->first_line.type == SIP_REPLY && op == OP_DELETE)
|| (msg->first_line.type == SIP_REPLY && op == OP_ANSWER))
{
bencode_dictionary_add_str(ng_flags.dict, "from-tag", &from_tag);
Expand Down

0 comments on commit 818a74c

Please sign in to comment.