[SR-Users] Handling redirect replies and send to new host
Daniel Tryba
d.tryba at pocos.nl
Thu Dec 28 11:44:33 CET 2017
On Wed, Dec 27, 2017 at 03:33:16PM +0000, voipspace voipspace wrote:
> (A) On receipt of the 300 response I do not want this redirect to go back to the user.
>
> onreply_route {
> if (t_check_status("3[0-9][0-9]")) {
> // How do I send ACK to (B) to finish this redirect ?
> // Then I want a new relay to the host. How would I do it ?
> }
> }
As already mentioned, this need to be done in a failure route. All you
have to do is to just set the R-URI to the contact header in the 302
response, kamailio should handle the ACK automatically:
$ru=$(T_rpl($ct){nameaddr.uri});
route(RELAY);
More information about the sr-users
mailing list