summaryrefslogtreecommitdiff
path: root/channels/chan_iax2.c
diff options
context:
space:
mode:
authorMatteo Brancaleoni <mbrancaleoni@espia.it>2003-03-11 06:00:17 +0000
committerMatteo Brancaleoni <mbrancaleoni@espia.it>2003-03-11 06:00:17 +0000
commit67fad0eab1076f82a0f50e74df6ec52b03a95735 (patch)
treee02e9a948f11bd4ac930fc96a21576b9674eb7bf /channels/chan_iax2.c
parent1ecb57b1429158d0b601d1ead5f0ffece589717a (diff)
Tue Mar 11 07:00:01 CET 2003
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@640 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_iax2.c')
-rwxr-xr-xchannels/chan_iax2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index a30403833..ada9fea1a 100755
--- a/channels/chan_iax2.c
+++ b/channels/chan_iax2.c
@@ -73,7 +73,7 @@ static char context[80] = "default";
static int max_retries = 4;
static int ping_time = 20;
static int lagrq_time = 10;
-static int nextcallno = 0;
+static int nextcallno = 1;
static int maxjitterbuffer=3000;
static int iaxdefaultdpcache=10 * 60; /* Cache dialplan entries for 10 minutes by default */
@@ -846,7 +846,7 @@ static int find_callno(unsigned short callno, unsigned short dcallno, struct soc
ast_pthread_mutex_unlock(&iaxsl[x]);
}
}
- if ((res < 0) && (new >= NEW_ALLOW)) {
+ if ((res < 1) && (new >= NEW_ALLOW)) {
/* Create a new one */
start = nextcallno;
for (x = ((nextcallno + 1) % (AST_IAX2_MAX_CALLS - 1)) + 1; iaxs[x] && (x != start); x = (x + 1) % AST_IAX2_MAX_CALLS)