mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 08:40:16 +00:00
Merge "res_pjsip: Don't assume a request will have any addresses." into 14
This commit is contained in:
@@ -3578,7 +3578,7 @@ int ast_sip_failover_request(pjsip_tx_data *tdata)
|
|||||||
{
|
{
|
||||||
pjsip_via_hdr *via;
|
pjsip_via_hdr *via;
|
||||||
|
|
||||||
if (tdata->dest_info.cur_addr == tdata->dest_info.addr.count - 1) {
|
if (!tdata->dest_info.addr.count || (tdata->dest_info.cur_addr == tdata->dest_info.addr.count - 1)) {
|
||||||
/* No more addresses to try */
|
/* No more addresses to try */
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user