From 13dbf301c605dd9b8e42d352f4adcacc0a2baac5 Mon Sep 17 00:00:00 2001
From: Mark Spencer <markster@digium.com>
Date: Fri, 11 Apr 2003 14:53:05 +0000
Subject: [PATCH] update CREDTS file

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@827 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 CREDITS             | 6 ++++--
 channels/chan_sip.c | 3 ++-
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/CREDITS b/CREDITS
index 2466d93395..8473ec89e9 100755
--- a/CREDITS
+++ b/CREDITS
@@ -32,12 +32,14 @@ Jean-Denis Girard - Various contributions from the South Pacific Islands
        jd-girard@esoft.pf             http://www.esoft.pf
 Jac Kersing - Various fixes
 Steven Critchfield - Seek and Trunc functions for playback and recording
-		critch@basesys.com
+       critch@basesys.com
 Jefferson Noxon - app_lookupcidname, app_db, and various other contributions
 Klaus-Peter Junghanns - in-band DTMF on SIP and MGCP
 Ross Finlayson - Dynamic RTP payload support
 Mahmut Fettahlioglu - Audio recording, music-on-hold changes, alaw file
-		format, and various fixes. Can be contacted at mahmut@oa.com.au
+       format, and various fixes. Can be contacted at mahmut@oa.com.au
+James Dennis - Cisco SIP compatibility patches to work with SIP service
+       providers. Can be contacted at asterisk@jdennis.net
 
 === OTHER CONTRIBUTIONS ===
 John Todd - Monkey sounds and associated teletorture prompt
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 98cdb2b80c..e30683db7e 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -4236,9 +4236,10 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc
 					}
 				} else if (ast_pickup_call(c)) {
 					ast_log(LOG_WARNING, "Nothing to pick up\n");
+					transmit_response_reliable(p, "503 Unavailable", req);
+					p->alreadygone = 1;
 					ast_pthread_mutex_unlock(&c->lock);
 					ast_hangup(c);
-					transmit_response_reliable(p, "503 Unavailable", req);
 				} else {
 					ast_pthread_mutex_unlock(&c->lock);
 					ast_hangup(c);
-- 
GitLab