Module: kamailio Branch: master Commit: a902ae16a85b556d1d4e0d5f60bc270e8452bce5 URL: https://github.com/kamailio/kamailio/commit/a902ae16a85b556d1d4e0d5f60bc270e...
Author: lucian balanceanu lucian.balanceanu@1and1.ro Committer: lucian balanceanu lucian.balanceanu@1and1.ro Date: 2015-02-02T14:02:53+02:00
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.
---
Modified: modules/rtpengine/rtpengine.c
---
Diff: https://github.com/kamailio/kamailio/commit/a902ae16a85b556d1d4e0d5f60bc270e... Patch: https://github.com/kamailio/kamailio/commit/a902ae16a85b556d1d4e0d5f60bc270e...
---
diff --git a/modules/rtpengine/rtpengine.c b/modules/rtpengine/rtpengine.c index 56a33fb..5ff6f36 100644 --- a/modules/rtpengine/rtpengine.c +++ b/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);