summaryrefslogtreecommitdiff
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
authorJean Aunis <jean.aunis@prescom.fr>2017-04-20 09:13:13 +0200
committerJean Aunis <jean.aunis@prescom.fr>2017-04-20 09:13:13 +0200
commitb4b1943c5da420686db6e09628840d0f503ab043 (patch)
tree943bd8fdef0aa7d8c2a787b1dd02ec82942f3c1e /channels/chan_sip.c
parentb84abac1449c56d6c9f781525a533691b326ad8c (diff)
chan_sip: Trigger reinvite if the SDP answer is included in the SIP ACK
Some equipments may send a re-INVITE containing an SDP in the final ACK request. If this happens in the context of direct media, the remote end should be updated with a re-INVITE. This patch queues an "update RTP peer" frame to trigger the re-INVITE, instead of the "source change" frame wich was used previously. ASTERISK-26951 Change-Id: I3644d2025f20e086ea9f8f62b486172c52b5b2e6
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index affe937e8..63b6606e2 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -28952,7 +28952,7 @@ static int handle_incoming(struct sip_pvt *p, struct sip_request *req, struct as
return -1;
}
if (ast_test_flag(&p->flags[0], SIP_DIRECT_MEDIA)) {
- ast_queue_control(p->owner, AST_CONTROL_SRCCHANGE);
+ ast_queue_control(p->owner, AST_CONTROL_UPDATE_RTP_PEER);
}
}
sched_check_pendings(p);