فهرست منبع

rtpengine: moved set_rtp_inst_pvar function call

- moved set_rtp_inst_pvar function call so that it records the last
  successful rtpengine destination versus the last attempted one.
lucian balanceanu 10 سال پیش
والد
کامیت
a902ae16a8
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      modules/rtpengine/rtpengine.c

+ 1 - 1
modules/rtpengine/rtpengine.c

@@ -1342,11 +1342,11 @@ static bencode_item_t *rtpp_function_call(bencode_buffer_t *bencbuf, struct sip_
 			LM_ERR("no available proxies\n");
 			goto error;
 		}
-		set_rtp_inst_pvar(msg, &node->rn_url);
 		cp = send_rtpp_command(node, ng_flags.dict, &ret);
 	} while (cp == NULL);
 	LM_DBG("proxy reply: %.*s\n", ret, cp);
 
+	set_rtp_inst_pvar(msg, &node->rn_url);
 	/*** process reply ***/
 
 	resp = bencode_decode_expect(bencbuf, cp, ret, BENCODE_DICTIONARY);