瀏覽代碼

Make sure selected RTPproxy supports 20081102 protocol extensions.

Maxim Sobolev 17 年之前
父節點
當前提交
6924de14a1
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. 12 0
      modules_s/nathelper/rtpproxy_stream.c

+ 12 - 0
modules_s/nathelper/rtpproxy_stream.c

@@ -92,6 +92,12 @@ rtpproxy_stream(struct sip_msg* msg, str *pname, int count, int stream2uac)
         LOG(L_ERR, "ERROR: rtpproxy_stream: no available proxies\n");
         return -1;
     }
+    if (node->rn_ptl_supported == 0) {
+        LOG(L_ERR, "ERROR: rtpproxy_stream: required functionality is not "
+          "supported by the version of the RTPproxy running on the selected "
+          "node.  Please upgrade the RTPproxy and try again.\n");
+        return -1;
+    }
     nitems = 11;
     if (stream2uac == 0) {
         if (to_tag.len == 0)
@@ -172,6 +178,12 @@ rtpproxy_stop_stream(struct sip_msg* msg, int stream2uac)
         LOG(L_ERR, "ERROR: rtpproxy_stop_stream: no available proxies\n");
         return -1;
     }
+    if (node->rn_ptl_supported == 0) {
+        LOG(L_ERR, "ERROR: rtpproxy_stream: required functionality is not "
+          "supported by the version of the RTPproxy running on the selected "
+          "node.  Please upgrade the RTPproxy and try again.\n");
+        return -1;
+    }
     nitems = 9;
     if (stream2uac == 0) {
         if (to_tag.len == 0)