diff --git a/src/mod/endpoints/mod_dingaling/mod_dingaling.c b/src/mod/endpoints/mod_dingaling/mod_dingaling.c index 90823f0fc8..47d85295d3 100644 --- a/src/mod/endpoints/mod_dingaling/mod_dingaling.c +++ b/src/mod/endpoints/mod_dingaling/mod_dingaling.c @@ -698,6 +698,10 @@ static int activate_rtp(struct private_object *tech_pvt) return 1; } + if (!(tech_pvt->remote_ip && tech_pvt->remote_port)) { + return 0; + } + if (switch_core_codec_init(&tech_pvt->read_codec, tech_pvt->codec_name, NULL,