chan_sip: Change SIPQualifyPeer to improve initial response time
authorJonathan Rose <jrose@digium.com>
Mon, 10 Sep 2012 21:15:38 +0000 (21:15 +0000)
committerJonathan Rose <jrose@digium.com>
Mon, 10 Sep 2012 21:15:38 +0000 (21:15 +0000)
commit23a298f28c6bb9c3957e1b3d76b4a19407eeb874
tree4dc8a8462b70ce1d9d6597e7e45a87580477f762
parente65dea461606aa8418e0d90b9faceb4f1b70d8f1
chan_sip: Change SIPQualifyPeer to improve initial response time

Prior to this patch, The acknowledgement wasn't produced until after
executing the sip_poke_peer action actually responsible for
qualifying the peer. Now the response is given immediately once it is
known that a peer will be qualified and a SIPqualifypeerdone event
is issued when the process is finished. Thanks to OEJ for identifying
the problem and helping to come up with a solution.

(issue AST-969)
Reported by John Bigelow
Review: https://reviewboard.asterisk.org/r/2098/

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