[asterisk-commits] tilghman: branch 1.4 r126999 - /branches/1.4/channels/chan_iax2.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Jul 1 11:50:47 CDT 2008
Author: tilghman
Date: Tue Jul 1 11:50:46 2008
New Revision: 126999
URL: http://svn.digium.com/view/asterisk?view=rev&rev=126999
Log:
Suppress annoying warning by finding the remaining cases where the callno is not in the hash.
Modified:
branches/1.4/channels/chan_iax2.c
Modified: branches/1.4/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_iax2.c?view=diff&rev=126999&r1=126998&r2=126999
==============================================================================
--- branches/1.4/channels/chan_iax2.c (original)
+++ branches/1.4/channels/chan_iax2.c Tue Jul 1 11:50:46 2008
@@ -1555,6 +1555,15 @@
return res;
}
}
+
+ /* This will occur on the first response to a message that we initiated,
+ * such as a PING. */
+ if (callno && dcallno && iaxs[dcallno] && !iaxs[dcallno]->peercallno && match(sin, callno, dcallno, iaxs[dcallno], check_dcallno)) {
+ iaxs[dcallno]->peercallno = callno;
+ res = dcallno;
+ store_by_peercallno(iaxs[dcallno]);
+ return res;
+ }
/* If we get here, we SHOULD NOT find a call structure for this
callno; if we do, it means that there is a call structure that
More information about the asterisk-commits
mailing list