The -1 return value from incomplete or improper
authorMark Michelson <mmichelson@digium.com>
Fri, 22 Aug 2008 20:20:58 +0000 (20:20 +0000)
committerMark Michelson <mmichelson@digium.com>
Fri, 22 Aug 2008 20:20:58 +0000 (20:20 +0000)
commit261d1eeb130cd239c4ad5edc306cfaad1a7a03c1
tree7269a5c0ee8555a0d72b5438c2e9048a0f63311a
parent060f6d5c3d4db98c253436c659ca0392ef1e38f8
The -1 return value from incomplete or improper
headers for the SipNotify manager command was
causing the current manager session to become
disconnected. Change the return value to 0 for
these cases.

Also change a test for a NULL pointer to be
ast_strlen_zero instead.

(closes issue #13351)
Reported by: Laureano
Patches:
      sipnotify_action_fix.patch uploaded by Laureano (license 265)

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