summaryrefslogtreecommitdiff
path: root/res/res_pjsip/pjsip_options.c
diff options
context:
space:
mode:
authorMatthew Jordan <mjordan@digium.com>2014-10-06 00:53:37 +0000
committerMatthew Jordan <mjordan@digium.com>2014-10-06 00:53:37 +0000
commitc01391686997f8d7c40bfddfe95efdb4cec130b5 (patch)
treea72ac0f1cdfa5c69c726016df6cb387cbae5dd81 /res/res_pjsip/pjsip_options.c
parent45b7b474aca2a4213a0f4ef06debb17a30d60b2d (diff)
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 ........ Merged revisions 424621 from http://svn.asterisk.org/svn/asterisk/branches/12 ........ Merged revisions 424622 from http://svn.asterisk.org/svn/asterisk/branches/13 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@424623 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_pjsip/pjsip_options.c')
0 files changed, 0 insertions, 0 deletions