Bladeren bron

Make sure selected RTPproxy supports 20081102 protocol extensions.

Maxim Sobolev 17 jaren geleden
bovenliggende
commit
6924de14a1
1 gewijzigde bestanden met toevoegingen van 12 en 0 verwijderingen
  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)