]> git.ipfire.org Git - thirdparty/asterisk.git/commit
pjsip/dialplan_functions: Handle PJSIP_MEDIA_OFFER called on non-PJSIP channels
authorMatthew Jordan <mjordan@digium.com>
Mon, 6 Oct 2014 00:51:43 +0000 (00:51 +0000)
committerMatthew Jordan <mjordan@digium.com>
Mon, 6 Oct 2014 00:51:43 +0000 (00:51 +0000)
commitbaf255c4c77b3d5d70666ec91b5c7fe8ed5b420c
tree1d36353338c4d20ff3b169d8054e02ccb95065e2
parent8290d64f79ea02f187579d92a477cf0f980a9f9a
pjsip/dialplan_functions: Handle PJSIP_MEDIA_OFFER called on non-PJSIP channels

Calling PJSIP_MEDIA_OFFER on a non-PJSIP channel is hazardous to your health.
It will treat the channels as a PJSIP channel, eventually hitting an ao2 error,
FRACKing on assertion error, and quite likely crashing.

This patch adds checks to the read/write callbacks that ensure that the channel
technology is of type 'PJSIP' before attempting to operate on the channel.

#SIPit31

ASTERISK-24382 #close
Reported by: Matt Jordan

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@424621 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/pjsip/dialplan_functions.c