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);


_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to