summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2007-01-10 18:34:45 +0000
committerJoshua Colp <jcolp@digium.com>2007-01-10 18:34:45 +0000
commit47c515768c0e77021a35bd00930cc586d124b9b6 (patch)
treeb94b82dcf05e98ae3f18348e8282834e601d10b9 /channels
parentfe4208e4ee05884c6a65c72278e9e6dab09eed58 (diff)
Merged revisions 50377 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r50377 | file | 2007-01-10 13:32:29 -0500 (Wed, 10 Jan 2007) | 2 lines Fix chan_sip not working issue. Let's not prematurely return 0. (issue #8783 reported by st41ker) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@50378 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index a6dd13e23..2707f0ca0 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -13450,9 +13450,10 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int
/* This is a new invite */
/* Handle authentication if this is our first invite */
res = check_user(p, req, SIP_INVITE, e, XMIT_RELIABLE, sin);
- if (res == AUTH_CHALLENGE_SENT)
+ if (res == AUTH_CHALLENGE_SENT) {
p->invitestate = INV_COMPLETED; /* Needs to restart in another INVITE transaction */
- return 0;
+ return 0;
+ }
if (res < 0) { /* Something failed in authentication */
if (res == AUTH_FAKE_AUTH) {
ast_log(LOG_NOTICE, "Sending fake auth rejection for user %s\n", get_header(req, "From"));