Skip to content

Commit db7ad81

Browse files
dragos-oancearazvancrainea
authored andcommitted
rtpengine: fail the call when rtpengine replies with an error
Since the failover change (3d0959a), an error reply that is not a failover error breaks out of the retry loop and is returned as a success. So rtpengine_delete(), the recording, block, forward and unsubscribe functions return true when rtpengine refused them, and error_pv is never set for such errors. Go to the error path instead, as before that change and as the async path does. (cherry picked from commit 9aa23bf)
1 parent b3fd4ea commit db7ad81

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎modules/rtpengine/rtpengine.c‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2929,7 +2929,11 @@ static bencode_item_t *rtpe_function_call(bencode_buffer_t *bencbuf, struct sip_
29292929
else
29302930
continue; /* one more loop */
29312931
} else {
2932-
break; /* break the loop and exit with error */
2932+
/* not a failover error - fail the call */
2933+
RTPE_STOP_READ();
2934+
if (!error.len)
2935+
err = "proxy returned an error";
2936+
goto error;
29332937
}
29342938
}
29352939
} else {

0 commit comments

Comments
 (0)