[svn-commits] simon.perreault: branch group/v6-new r273975 - /team/group/v6-new/main/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Jul 5 09:41:18 CDT 2010


Author: simon.perreault
Date: Mon Jul  5 09:41:15 2010
New Revision: 273975

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=273975
Log:
Eat our own dog food

Modified:
    team/group/v6-new/main/rtp_engine.c

Modified: team/group/v6-new/main/rtp_engine.c
URL: http://svnview.digium.com/svn/asterisk/team/group/v6-new/main/rtp_engine.c?view=diff&rev=273975&r1=273974&r2=273975
==============================================================================
--- team/group/v6-new/main/rtp_engine.c (original)
+++ team/group/v6-new/main/rtp_engine.c Mon Jul  5 09:41:15 2010
@@ -1055,10 +1055,11 @@
 			ast_debug(1, "Oooh, '%s' was %s/(format %s)\n",
 				  c1->name, ast_sockaddr_stringify(&tac1),
 				  ast_getformatname(oldcodec1));
-			if (glue0->update_peer(c0, t1.len ? instance1 : NULL,
-						vt1.len ? vinstance1 : NULL,
-						tt1.len ? tinstance1 : NULL,
-						codec1, 0)) {
+			if (glue0->update_peer(c0,
+					       ast_sockaddr_isnull(&t1)  ? NULL : instance1,
+					       ast_sockaddr_isnull(&vt1) ? NULL : vinstance1,
+					       ast_sockaddr_isnull(&tt1) ? NULL : tinstance1,
+					       codec1, 0)) {
 				ast_log(LOG_WARNING, "Channel '%s' failed to update to '%s'\n", c0->name, c1->name);
 			}
 			ast_sockaddr_copy(&ac1, &t1);




More information about the svn-commits mailing list