[asterisk-commits] file: branch 1.4 r50377 -
/branches/1.4/channels/chan_sip.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Jan 10 11:32:29 MST 2007
Author: file
Date: Wed Jan 10 12:32:29 2007
New Revision: 50377
URL: http://svn.digium.com/view/asterisk?view=rev&rev=50377
Log:
Fix chan_sip not working issue. Let's not prematurely return 0. (issue #8783 reported by st41ker)
Modified:
branches/1.4/channels/chan_sip.c
Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=50377&r1=50376&r2=50377
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Wed Jan 10 12:32:29 2007
@@ -13239,9 +13239,10 @@
/* 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"));
More information about the asterisk-commits
mailing list