Skip to content

Commit

Permalink
group: fix only SDP arrows mode in call flow
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaian committed May 8, 2017
1 parent 302429f commit f9ec50e
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/group.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,13 @@ call_group_get_next_msg(sip_call_group_t *group, sip_msg_t *msg)
next = vector_item(messages, vector_index(messages, msg) + 1);
}
vector_destroy(messages);
next = sip_parse_msg(next);

return sip_parse_msg(next);
if (next && group->sdp_only && !msg_has_sdp(next)) {
return call_group_get_next_msg(group, next);
}

return next;
}

sip_msg_t *
Expand All @@ -262,7 +267,13 @@ call_group_get_prev_msg(sip_call_group_t *group, sip_msg_t *msg)
prev = vector_item(messages, vector_index(messages, msg) - 1);
}
vector_destroy(messages);
return sip_parse_msg(prev);
prev = sip_parse_msg(prev);

if (prev && group->sdp_only && !msg_has_sdp(prev)) {
return call_group_get_prev_msg(group, prev);
}

return prev;
}

rtp_stream_t *
Expand Down

0 comments on commit f9ec50e

Please sign in to comment.