diff options
author | twilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-03-12 22:04:51 +0000 |
---|---|---|
committer | twilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-03-12 22:04:51 +0000 |
commit | 88bfcb671328040b79c9d6ca966402539524326d (patch) | |
tree | 24326afc8f1cbf64c5dc15d7013b19991584bf86 /addons/chan_ooh323.c | |
parent | 19019525545806c438b9877c638a0bcc410267f5 (diff) |
Only change the RTP ssrc when we see that it has changed
This change basically reverts the change reviewed in
https://reviewboard.asterisk.org/r/374/ and instead limits the
updating of the RTP synchronization source to only those times when we
detect that the other side of the conversation has changed the ssrc.
The problem is that SRCUPDATE control frames are sent many times where
we don't want a new ssrc, including whenever Asterisk has to send DTMF
in a normal bridge. This is also not the first time that this mistake
has been made. The initial implementation of the ast_rtp_new_source
function also changed the ssrc--and then it was removed because of
this same issue. Then, we put it back in again to fix a different
issue. This patch attempts to only change the ssrc when we see that
the other side of the conversation has changed the ssrc.
It also renames some functions to make their purpose more clear.
Review: https://reviewboard.asterisk.org/r/540/
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@252089 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'addons/chan_ooh323.c')
-rw-r--r-- | addons/chan_ooh323.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/addons/chan_ooh323.c b/addons/chan_ooh323.c index d7a4dfc88..7724c21d4 100644 --- a/addons/chan_ooh323.c +++ b/addons/chan_ooh323.c @@ -1206,10 +1206,12 @@ static int ooh323_indicate(struct ast_channel *ast, int condition, const void *d ooManualRingback(callToken); } break; - case AST_CONTROL_SRCUPDATE: - ast_rtp_instance_new_source(p->rtp); + case AST_CONTROL_SRCUPDATE: + ast_rtp_instance_update_source(p->rtp); + break; + case AST_CONTROL_SRCCHANGE: + ast_rtp_instance_change_source(p->rtp); break; - case AST_CONTROL_CONNECTED_LINE: if (gH323Debug) ast_log(LOG_DEBUG, "Sending connected line info for %s (%s)\n", |