2
0
Эх сурвалжийг харах

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 жил өмнө
parent
commit
a902ae16a8

+ 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");
 			LM_ERR("no available proxies\n");
 			goto error;
 			goto error;
 		}
 		}
-		set_rtp_inst_pvar(msg, &node->rn_url);
 		cp = send_rtpp_command(node, ng_flags.dict, &ret);
 		cp = send_rtpp_command(node, ng_flags.dict, &ret);
 	} while (cp == NULL);
 	} while (cp == NULL);
 	LM_DBG("proxy reply: %.*s\n", ret, cp);
 	LM_DBG("proxy reply: %.*s\n", ret, cp);
 
 
+	set_rtp_inst_pvar(msg, &node->rn_url);
 	/*** process reply ***/
 	/*** process reply ***/
 
 
 	resp = bencode_decode_expect(bencbuf, cp, ret, BENCODE_DICTIONARY);
 	resp = bencode_decode_expect(bencbuf, cp, ret, BENCODE_DICTIONARY);