Hello, all. I've seen a few comments on the list about dealing with 302 "Moved Temporarily" messages. Something is going wrong in my routing, though, and I can't figure out what. I'm trying to process it in a failure_route like this:
if (t_check_status("302")) { xlog("L_NOTICE", " Call forwarding on -> rerouting call to %ct"); append_branch(); t_reply("302", "Moved Temporarily"); }
but that isn't doing the trick. Would someone mind posting how a 302 reply *should* be handled to process call forwarding?
Thanks.
I'm not sure I understand what you are trying to do. If I'm not wrong, you want to intercept 3xx replies and to forward the call to the contact address - a kind of redirect on server?
bogdan
O'Shaughnessy Evans wrote:
Hello, all. I've seen a few comments on the list about dealing with 302 "Moved Temporarily" messages. Something is going wrong in my routing, though, and I can't figure out what. I'm trying to process it in a failure_route like this:
if (t_check_status("302")) { xlog("L_NOTICE", " Call forwarding on -> rerouting call to %ct"); append_branch(); t_reply("302", "Moved Temporarily"); }
but that isn't doing the trick. Would someone mind posting how a 302 reply *should* be handled to process call forwarding?
Thanks.
Bogdan-Andrei IANCU iancu@fokus.fraunhofer.de wrote:
I'm not sure I understand what you are trying to do. If I'm not wrong, you want to intercept 3xx replies and to forward the call to the contact address - a kind of redirect on server?
Yup. I figured it out, though. I was actually sending a t_reply from my failure_route when t_check_status("302") returned true. In all other cases I was forwarding to the voicemail server. Turns out I only had to avoid routing to voicemail, and the t_reply was unnecessary.
Thanks for your quick response, though.