fixes failed SIP Directed pickup resulting in dead channel
authorDavid Vossel <dvossel@digium.com>
Wed, 26 May 2010 18:32:51 +0000 (18:32 +0000)
committerDavid Vossel <dvossel@digium.com>
Wed, 26 May 2010 18:32:51 +0000 (18:32 +0000)
(closes issue #17339)
Reported by: one47
Patches:
      sip_magic_pickup2 uploaded by one47 (license 23)
Tested by: one47, dvossel

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@266006 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 3cb3da6..131e515 100644 (file)
@@ -20789,6 +20789,7 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int
 
                        /* Let the caller know we're giving it a shot */
                        transmit_response(p, "100 Trying", req);
 
                        /* Let the caller know we're giving it a shot */
                        transmit_response(p, "100 Trying", req);
+                       p->invitestate = INV_PROCEEDING;
                        ast_setstate(c, AST_STATE_RING);
 
                        /* Do the pickup itself */
                        ast_setstate(c, AST_STATE_RING);
 
                        /* Do the pickup itself */