[asterisk-commits] file: trunk r84819 - in /trunk: ./ main/rtp.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Oct 5 13:57:26 CDT 2007


Author: file
Date: Fri Oct  5 13:57:26 2007
New Revision: 84819

URL: http://svn.digium.com/view/asterisk?view=rev&rev=84819
Log:
Merged revisions 84818 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r84818 | file | 2007-10-05 15:55:36 -0300 (Fri, 05 Oct 2007) | 4 lines

Update the remembered RTP peer information when putting an endpoint on hold or taking it off hold so that the RTP stack does not initiate a needless reinvite.
(closes issue #10868)
Reported by: mavince

........

Modified:
    trunk/   (props changed)
    trunk/main/rtp.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/main/rtp.c
URL: http://svn.digium.com/view/asterisk/trunk/main/rtp.c?view=diff&rev=84819&r1=84818&r2=84819
==============================================================================
--- trunk/main/rtp.c (original)
+++ trunk/main/rtp.c Fri Oct  5 13:57:26 2007
@@ -3339,6 +3339,11 @@
 					else
 						pr0->set_rtp_peer(c0, p1, vp1, tp1, codec1, ast_test_flag(p1, FLAG_NAT_ACTIVE));
 				}
+				/* Update local address information */
+				ast_rtp_get_peer(p0, &t0);
+				memcpy(&ac0, &t0, sizeof(ac0));
+				ast_rtp_get_peer(p1, &t1);
+				memcpy(&ac1, &t1, sizeof(ac1));
 				ast_indicate_data(other, fr->subclass, fr->data, fr->datalen);
 				ast_frfree(fr);
 			} else {




More information about the asterisk-commits mailing list