<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">I am trying to implement call forwarding using the uac_redirect module. My user agents reply with a SIP 302 Moved Temporarily message when the unconditional call forward is set. In the contact field there is something like this...<DIV><BR class="khtml-block-placeholder"><DIV>Contact Binding: &lt;sip:<A href="mailto:13143212222@ser1.manhattan.vtnoc.net"><FONT class="Apple-style-span" color="#001DDC">13143212222@ser1.manhattan.sipnetwork.net</FONT></A>&gt;</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I need ser to add a plus to that then send the call back out to our pstn carrier. </DIV><DIV>I have tried this...</DIV><DIV>        </DIV><DIV>    if  (t_check_status("302"))</DIV><DIV>        get_redirects("6:2","redirect");</DIV><DIV>        prefix("+");</DIV><DIV>        rewritehost("pstn.carriers.ip");</DIV><DIV>        t_relay();</DIV><DIV>and putting it in a failure route then forcing that route</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>failure_route[2] {</DIV><DIV>        get_redirects("6:2","redirect");</DIV><DIV>        prefix("+");</DIV><DIV>        rewritehost("our.pstn.carriers.ip");</DIV><DIV>        t_relay();</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I even tried</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>if               (t_check_status("302")){ # what to do if device tells us to forward to another number</DIV><DIV>                 add_diversion("user-forward");</DIV><DIV>                 get_redirects("6:2","redirect");</DIV><DIV>                 prefix("+");</DIV><DIV>                 rewritehost("our.pstn.carriers.ip");</DIV><DIV>                 t_relay();</DIV><DIV>but apparently get_redirects can only be used in a failure_route</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Has anyone been able to get this working? On a 302 get the redirects from the contact field using get_redirects append with a "+" and rewritehost somewhere else it seemed so simple.</DIV><DIV>Any help is as always greatly appreciated, especially from <A href="mailto:daniel@voice-system.ro">daniel@voice-system.ro</A> cause like me he's too far for norway beer. </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV></DIV></BODY></HTML>