diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-10-12 21:51:08 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-10-12 21:51:08 +0000 |
commit | 4146d1296e25c18a7538ee14e255e15ede3143c1 (patch) | |
tree | 1e616e979061703ae559056a5bfa5e5903ace500 /channels/chan_mgcp.c | |
parent | 792bc71f008d97648474c8b1c5f1159f9d06ad05 (diff) |
Fix MGCP build, SIP should destroy on temponly, not on show peer
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3985 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_mgcp.c')
-rwxr-xr-x | channels/chan_mgcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c index b81f8058c..fd4aff6a8 100755 --- a/channels/chan_mgcp.c +++ b/channels/chan_mgcp.c @@ -1951,7 +1951,7 @@ 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(rtp, 0); + ast_rtp_offered_from_local(sub->rtp, 0); add_sdp(&resp, sub, rtp); /* SC: fill in new fields */ resp.cmd = MGCP_CMD_MDCX; @@ -1985,7 +1985,7 @@ 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(rtp, 1); + ast_rtp_offered_from_local(sub->rtp, 1); add_sdp(&resp, sub, rtp); /* SC: fill in new fields */ resp.cmd = MGCP_CMD_CRCX; |