]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
fix for MGCP (bug #2499)
authorRussell Bryant <russell@russellbryant.com>
Sun, 17 Oct 2004 04:57:10 +0000 (04:57 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sun, 17 Oct 2004 04:57:10 +0000 (04:57 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4027 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_mgcp.c

index 314f9d2fb947cb4ad312548d5edf11c6d4d64cca..7406428be879d5bb2125a4edbae50791d96ab29a 100755 (executable)
@@ -1947,7 +1947,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;
@@ -1981,7 +1981,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;