summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 78e787520..ce2f3de3a 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -20723,7 +20723,9 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int
do_magic_pickup(c, pickup.exten, pickup.context);
/* Now we're either masqueraded or we failed to pickup, in either case we... */
+ sip_pvt_unlock(p);
ast_hangup(c);
+ sip_pvt_lock(p);
return 0;
} else {