[OpenSIPS-Users] UAC_REDIRECT : get_redirects does not rewrite host
Julien Chavanton
jc at atlastelecom.com
Thu Aug 13 19:43:26 CEST 2009
Hi Bogdan,
version: opensips 1.5.1-notls (x86_64/linux)
failure_route[1] {
sip_trace();
if (t_check_status("302")) {
xlog("L_NOTICE", "***FAILURE ROUTE - REDIRECT ru[$ru]**\n");
get_redirects("6:2","redirect");
xlog("L_NOTICE", "***FAILURE ROUTE - REDIRECTED TO: $ru]**\n");
t_relay();
}
}
Aug 13 18:44:17 osip /usr/local/sbin/opensips[16565]: ***FAILURE ROUTE - REDIRECT ru[sip:777 at 10.0.1.73:57226;rinstance=c699f35c276783d3]**
Aug 13 18:44:17 osip /usr/local/sbin/opensips[16565]: ***FAILURE ROUTE - REDIRECTED TO: ru[sip:new_target at 10.0.1.73:57226]**
________________________________
From: users-bounces at lists.opensips.org on behalf of Bogdan-Andrei Iancu
Sent: Thu 13/08/2009 6:29 PM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] UAC_REDIRECT : get_redirects does not rewrite host
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
>
_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20090813/8a512f72/attachment-0001.htm
More information about the Users
mailing list