Index: channels/chan_sip.c =================================================================== --- channels/chan_sip.c (revision 393589) +++ channels/chan_sip.c (working copy) @@ -10635,7 +10635,7 @@ /* Setup audio address and port */ if (p->rtp) { - if (portno > 0) { + if (sa && portno > 0) { start_ice(p->rtp); ast_sockaddr_set_port(sa, portno); ast_rtp_instance_set_remote_address(p->rtp, sa); @@ -10683,7 +10683,7 @@ /* Setup video address and port */ if (p->vrtp) { - if (vportno > 0) { + if (vsa && vportno > 0) { start_ice(p->vrtp); ast_sockaddr_set_port(vsa, vportno); ast_rtp_instance_set_remote_address(p->vrtp, vsa); @@ -10701,7 +10701,7 @@ /* Setup text address and port */ if (p->trtp) { - if (tportno > 0) { + if (tsa && tportno > 0) { start_ice(p->trtp); ast_sockaddr_set_port(tsa, tportno); ast_rtp_instance_set_remote_address(p->trtp, tsa); @@ -10725,7 +10725,7 @@ /* Setup image address and port */ if (p->udptl) { - if (udptlportno > 0) { + if (isa && udptlportno > 0) { if (ast_test_flag(&p->flags[1], SIP_PAGE2_SYMMETRICRTP) && ast_test_flag(&p->flags[1], SIP_PAGE2_UDPTL_DESTINATION)) { ast_rtp_instance_get_remote_address(p->rtp, isa); if (!ast_sockaddr_isnull(isa) && debug) {