]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
tweak
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 19 Dec 2006 20:24:07 +0000 (20:24 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 19 Dec 2006 20:24:07 +0000 (20:24 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3736 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_dingaling/mod_dingaling.c

index 90823f0fc8ad831895e71489b89f3aa30edf1fde..47d85295d36aee2e7788657d3a363413209e60fe 100644 (file)
@@ -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,