--- /usr/asterisk-11.18.0/channels/chan_sip.c 2015-06-03 20:44:42.000000000 -0400 +++ /usr/src/asterisk-11.18.0/channels/chan_sip.c 2015-06-15 08:15:11.632370226 -0400 @@ -10510,7 +10510,9 @@ /* Setup audio address and port */ if (p->rtp) { if (sa && portno > 0) { - start_ice(p->rtp, (req->method != SIP_RESPONSE) ? 0 : 1); + if(req->method == SIP_RESPONSE){ + start_ice(p->rtp,(req->method != SIP_RESPONSE) ? 0 : 1); + } ast_sockaddr_set_port(sa, portno); ast_rtp_instance_set_remote_address(p->rtp, sa); if (debug) { @@ -13256,6 +13258,7 @@ if (!doing_directmedia) { if (ast_test_flag(&p->flags[2], SIP_PAGE3_ICE_SUPPORT)) { add_ice_to_sdp(p->rtp, &a_audio); + start_ice(p->rtp, 0); } add_dtls_to_sdp(p->rtp, &a_audio);