Suggested IAX and IAX2 bugfixes
authorMark Spencer <markster@digium.com>
Mon, 19 May 2003 00:48:48 +0000 (00:48 +0000)
committerMark Spencer <markster@digium.com>
Mon, 19 May 2003 00:48:48 +0000 (00:48 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1038 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax.c
channels/chan_iax2.c

index 69ad182..7f61b62 100755 (executable)
@@ -4841,6 +4841,7 @@ static struct iax_dpcache *find_cache(struct ast_channel *chan, char *data, char
                /* We found an entry that matches us! */
                if (!strcmp(dp->peercontext, data) && !strcmp(dp->exten, exten)) 
                        break;
+               prev = dp;
                dp = next;
        }
        if (!dp) {
index 2316cd6..04b0bca 100755 (executable)
@@ -5224,6 +5224,7 @@ static struct iax2_dpcache *find_cache(struct ast_channel *chan, char *data, cha
                /* We found an entry that matches us! */
                if (!strcmp(dp->peercontext, data) && !strcmp(dp->exten, exten)) 
                        break;
+               perv = dp;
                dp = next;
        }
        if (!dp) {
@@ -5495,6 +5496,7 @@ int load_module(void)
 
        ast_pthread_mutex_init(&iaxq.lock);
        ast_pthread_mutex_init(&userl.lock);
+       ast_pthread_mutex_init(&peerl.lock);
 
        ast_cli_register(&cli_show_users);
        ast_cli_register(&cli_show_channels);