Kaynağa Gözat

modules/rtpproxy: return -3 when no more rtpproxy nodes can be found

Provide a unique error code for the case when no (more) proxy nodes
are availave in the set. This allows the script recognize it from
the more general errors (all -1) and do special processing (failover
to another set)
Alex Hermann 13 yıl önce
ebeveyn
işleme
bf7c1ee6d7
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      modules/rtpproxy/rtpproxy.c

+ 1 - 1
modules/rtpproxy/rtpproxy.c

@@ -2490,7 +2490,7 @@ force_rtp_proxy(struct sip_msg* msg, char* str1, char* str2, int offer, int forc
 				node = select_rtpp_node(callid, 1);
 				if (!node) {
 					LM_ERR("no available proxies\n");
-					FORCE_RTP_PROXY_RET (-1);
+					FORCE_RTP_PROXY_RET (-3);
 				}
 				if (rep_opts.oidx > 0) {
 					if (node->rn_rep_supported == 0) {