diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c index b81f8058cf..fd4aff6a8a 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; diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 83e8852638..4f333694e4 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -5749,7 +5749,7 @@ static int sip_show_peer(int fd, int argc, char *argv[]) ast_mutex_unlock(&peerl.lock); - if (peer && peer->dynamic) { + if (peer && peer->temponly) { destroy_peer(peer); } return RESULT_SUCCESS;