<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">I just noticed a typo, the contacts
should look like this:<br>
<br>
what I end up with:<br>
[a] Contact: <<a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:sip:user@192.168.1.1:37891;rinstance=ef7f216ba0d07156;transport=UDP">sip:user@192.168.1.1:12345;rinstance=ef7f216ba0d07156;transport=UDP</a><b>;received=sip:213.146.165.189:37891</b>><br>
<br>
what I am trying to achieve<br>
[b] Contact:
<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="mailto:sip:user@213.146.165.189:37891;rinstance=ef7f216ba0d07156;transport=UDP"><sip:user@192.168.1.1:12345;rinstance=ef7f216ba0d07156;transport=UDP></a><b>;received=sip:213.146.165.189:37891</b><br>
<br>
Thanks<br>
<br>
On 15/01/2015 08:30, Asgaroth wrote:<br>
</div>
<blockquote cite="mid:54B77A8C.50905@gmail.com" type="cite">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<div class="moz-cite-prefix">Hi All,<br>
<br>
Thanks for the responses thus far, I would be interrested in the
patches mentioned when they are released for 4.2 :)<br>
<br>
In the meantime, I have another question relating to this
configuration:<br>
<br>
[1] How would I apply the recieved paramaters to the contact
header in the reply message, I have tried the following logic, <br>
<br>
if ( lookup("location", <a moz-do-not-send="true"
class="moz-txt-link-rfc2396E" href="mailto:sip:$rU@domain.com">"sip:$rU@domain.com"</a>)
) {<br>
$var(received) = $(du{uri.param,received});<br>
if !strempty( $var(received) ) {<br>
$ru = $ru + ";received="+ $var(received);<br>
}<br>
sl_send_reply("302", "Moved Temporarily");<br>
exit;<br>
}<br>
<br>
and end up with a contact header looking like below:<br>
<br>
[a] Contact: <<a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:sip:user@192.168.1.1:37891;rinstance=ef7f216ba0d07156;transport=UDP">sip:user@192.168.1.1:37891;rinstance=ef7f216ba0d07156;transport=UDP</a><b>;received=sip:213.146.165.189:37891</b>><br>
<br>
What I am trying to achieve is:<br>
<br>
[a] Contact:
<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="mailto:sip:user@213.146.165.189:37891;rinstance=ef7f216ba0d07156;transport=UDP"><sip:user@213.146.165.189:37891;rinstance=ef7f216ba0d07156;transport=UDP></a><b>;received=sip:213.146.165.189:37891</b><br>
<br>
Are these two versions of the contact header interpretted the
same way?<br>
<br>
Thanks<br>
<br>
<br>
<br>
On 08/01/2015 21:09, Asgaroth wrote:<br>
</div>
<blockquote cite="mid:54AEF210.9070300@gmail.com" type="cite">Hi
All, <br>
<br>
I am attempting to setup a standalone redirect server which will
lookup contact info and redirect to appropriate outbound proxy.
<br>
<br>
The problem I am having is that the registrar is storing the
path and recieved information, however, when I perform a lookup
and reply with 302, the recieved and path information is not
included. <br>
<br>
Are there module parameters in the registrar module that will
include these contact parameters (recieved) or create the
appropriate headers (path/route) in the 302 response, or, is
this something I need to do manually. <br>
<br>
Currently I have the following lookup code: <br>
<br>
route { <br>
<br>
t_check_trans(); <br>
<br>
if ( method == "INVITE" ) { <br>
xlog("route[MAIN] : $rm : ruri=$ru"); <br>
xlog("route[MAIN] : $rm : <a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:lookup=sip:$rU@registered.domain">lookup=sip:$rU@registered.domain</a>");
<br>
if ( lookup("location", <a moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="mailto:sip:$rU@registered.domain">"sip:$rU@registered.domain"</a>)
) { <br>
send_reply("302", "Moved Temporarily"); <br>
exit; <br>
} <br>
} <br>
} <br>
<br>
I had a look at the path_mode parameter but this looks like it
only takes affect for REGISTER methods. <br>
<br>
The INVITE that comes in supports the PATH header but I dont see
this being passed back. In fact, I'm not entirely sure if the
path header is a supported header in the 302 response message. I
had a quick google and I cant seem to easily find what headers
are suported in the 302 message, and where I need to put the
path/recieved information. I presume I can add the recieved info
as a parameter to the contact header, but how would i specify
the outbound proxy to use, would that be in a route or a path
header in the 302 response? <br>
<br>
I can see that the $du pseudo variable is set with the
appropriate outbound path and received information, now I just
need to include this information in the 302 response. <br>
<br>
Any suggestions/comments to assist in how I get this info into
the 302 message would be greatly appreciated. <br>
<br>
Thanks in advance. <br>
<br>
</blockquote>
<br>
</blockquote>
<br>
</body>
</html>