mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
Major RTP fixes for using inbound SDP on outbound connection, get rid of
old local rtp stuff... git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7551 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2095,7 +2095,6 @@ static int transmit_modify_with_sdp(struct mgcp_subchannel *sub, struct ast_rtp
|
||||
add_header(&resp, "X", sub->txident);
|
||||
add_header(&resp, "I", sub->cxident);
|
||||
/*add_header(&resp, "S", "");*/
|
||||
ast_rtp_offered_from_local(sub->rtp, 0);
|
||||
add_sdp(&resp, sub, rtp);
|
||||
/* SC: fill in new fields */
|
||||
resp.cmd = MGCP_CMD_MDCX;
|
||||
@@ -2129,7 +2128,6 @@ static int transmit_connect_with_sdp(struct mgcp_subchannel *sub, struct ast_rtp
|
||||
/* SC: X header should not be sent. kept for compatibility */
|
||||
add_header(&resp, "X", sub->txident);
|
||||
/*add_header(&resp, "S", "");*/
|
||||
ast_rtp_offered_from_local(sub->rtp, 1);
|
||||
add_sdp(&resp, sub, rtp);
|
||||
/* SC: fill in new fields */
|
||||
resp.cmd = MGCP_CMD_CRCX;
|
||||
@@ -3948,7 +3946,7 @@ static int mgcp_set_rtp_peer(struct ast_channel *chan, struct ast_rtp *rtp, stru
|
||||
/* XXX Is there such thing as video support with MGCP? XXX */
|
||||
struct mgcp_subchannel *sub;
|
||||
sub = chan->tech_pvt;
|
||||
if (sub) {
|
||||
if (sub && !sub->alreadygone) {
|
||||
transmit_modify_with_sdp(sub, rtp, codecs);
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user