Re: [SR-Users] Handling redirect replies and send to new host

2017-12-28 Thread Daniel Tryba
On Wed, Dec 27, 2017 at 03:33:16PM +, 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 red

Re: [SR-Users] Handling redirect replies and send to new host

2017-12-27 Thread Евгений Голей
Hi First of all, do not onreply, for 3xx is used failure_route, which must be applied before rewritehost("x.x.x.x"); t_relay(); Approximately like this t_on_failure("FAIL"); rewritehost("x.x.x.x"); t_relay(); In order not to forward the response 302 to the user, use the function t_drop_replie

[SR-Users] Handling redirect replies and send to new host

2017-12-27 Thread voipspace voipspace
Hi I am aiming to do the following User calls to Kamailio Switch (A) Switch (A) calls to Kamailio redirect server (B).. (B) runs script to determine route (B) sends Stateless 300 redirect reply to (A). (A) sends ACK to (B). (A) send user call to another host (extracted from header variable from