[OpenSIPS-Users] UAC_REDIRECT : get_redirects does not rewrite host

Bogdan-Andrei Iancu bogdan at voice-system.ro
Thu Aug 13 19:29:05 CEST 2009


Hi Julien,

The get_redirects() function does replace the entire RURI with the 
contact URI. My feeling is you (by mistake) rewrite the domain part 
after the new RURI is set - try printing the RURI just after the 
get_redirects() function.

BTW, what version of opensips are you using?

Regards,
Bogdan

Julien Chavanton wrote:
> I am looking to handle redirect 302 request, get_redirect does not 
> replace the domain/host part of the new target ?
>  
> How do we handle redirection to a different IP address ?
>  
>  
> Example :
>  
> U 10.0.4.44:5060 -> 10.0.1.73:57226
> INVITE sip:777 at 10.0.1.73:57226;rinstance=c699f35c276783d3 SIP/2.0.
>  
> U 10.0.1.73:57226 -> 10.0.4.44:5060
> SIP/2.0 302 Moved Temporarily.
> Contact: <sip:new_target at 10.0.1.1:5060>.
>  
> U 10.0.4.44:5060 -> 10.0.1.73:57226
> INVITE sip:new_target at 10.0.1.73:57226 SIP/2.0.
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   




More information about the Users mailing list