If a peer uses any transport other than UDP, then MWI will
authorMark Michelson <mmichelson@digium.com>
Tue, 21 Oct 2008 23:27:45 +0000 (23:27 +0000)
committerMark Michelson <mmichelson@digium.com>
Tue, 21 Oct 2008 23:27:45 +0000 (23:27 +0000)
commit2c55dcf8a8e260653cdc08d3a8456829cb97920d
treef5b493f240dab3b728095919f72f439398afaea1
parentbceb0845e63858b87259366ec1d0680e051d4d4b
If a peer uses any transport other than UDP, then MWI will
fail for that peer since sip_alloc will allocate a sip_pvt with
a default transport of UDP. This change resets the socket type
immediately after allocating the sip_pvt in sip_send_mwi_from_peer,
so that the proceeding call to create_addr_from_peer does not fail
right away. The socket data from the peer is properly copied to
the sip_pvt in create_addr_from_peer.

(closes issue #13710)
Reported by: andrew53
Patches:
      sip_notify_use_tcp.patch uploaded by andrew53 (license 519)

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