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:[email protected]: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:[email protected]:5060>.
>  
> U 10.0.4.44:5060 -> 10.0.1.73:57226
> INVITE sip:[email protected]:57226 SIP/2.0.
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to