mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 14:58:25 +00:00
Add missing checks that I neglected. The SIP technology and SIP info technology should be considered equal.
(closes issue ASTERISK-20409) Reported by: michele cicciotti privatewave git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@373532 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -29368,7 +29368,8 @@ static enum ast_rtp_glue_result sip_get_rtp_peer(struct ast_channel *chan, struc
|
||||
|
||||
if (!(opp_chan = ast_bridged_channel(chan))) {
|
||||
return AST_RTP_GLUE_RESULT_FORBID;
|
||||
} else if ((opp_chan->tech != &sip_tech) || (!(opp = opp_chan->tech_pvt))) {
|
||||
} else if (((opp_chan->tech != &sip_tech) && (opp_chan->tech != &sip_tech_info)) ||
|
||||
(!(opp = opp_chan->tech_pvt))) {
|
||||
return AST_RTP_GLUE_RESULT_FORBID;
|
||||
}
|
||||
|
||||
@@ -29423,7 +29424,8 @@ static enum ast_rtp_glue_result sip_get_vrtp_peer(struct ast_channel *chan, stru
|
||||
|
||||
if (!(opp_chan = ast_bridged_channel(chan))) {
|
||||
return AST_RTP_GLUE_RESULT_FORBID;
|
||||
} else if ((opp_chan->tech != &sip_tech) || (!(opp = opp_chan->tech_pvt))) {
|
||||
} else if (((opp_chan->tech != &sip_tech) && (opp_chan->tech != &sip_tech_info)) ||
|
||||
(!(opp = opp_chan->tech_pvt))) {
|
||||
return AST_RTP_GLUE_RESULT_FORBID;
|
||||
}
|
||||
|
||||
@@ -29469,7 +29471,8 @@ static enum ast_rtp_glue_result sip_get_trtp_peer(struct ast_channel *chan, stru
|
||||
|
||||
if (!(opp_chan = ast_bridged_channel(chan))) {
|
||||
return AST_RTP_GLUE_RESULT_FORBID;
|
||||
} else if ((opp_chan->tech != &sip_tech) || (!(opp = opp_chan->tech_pvt))) {
|
||||
} else if (((opp_chan->tech != &sip_tech) && (opp_chan->tech != &sip_tech_info)) ||
|
||||
(!(opp = opp_chan->tech_pvt))) {
|
||||
return AST_RTP_GLUE_RESULT_FORBID;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user