summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2008-07-01 16:52:29 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2008-07-01 16:52:29 +0000
commit6fa1dab33d919293901f8d12adc1eb28d64526b1 (patch)
treea24267745ebcfcd3b62691478d23aed986cb0b28 /channels
parent46c3a5373952f87f1c772667172cef510e6ff7f3 (diff)
Merged revisions 126999 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r126999 | tilghman | 2008-07-01 11:50:46 -0500 (Tue, 01 Jul 2008) | 2 lines Suppress annoying warning by finding the remaining cases where the callno is not in the hash. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@127000 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_iax2.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index 2432a6bb4..62764418f 100644
--- a/channels/chan_iax2.c
+++ b/channels/chan_iax2.c
@@ -1650,6 +1650,15 @@ static int __find_callno(unsigned short callno, unsigned short dcallno, struct s
}
}
+ /* 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;
+ }
+
for (x = 1; !res && x < maxnontrunkcall; x++) {
ast_mutex_lock(&iaxsl[x]);
if (iaxs[x]) {