<div dir="ltr">What happens if you call t_relay() after setting $du?<div><br></div><div>Cheers,</div><div><br></div><div>Federico<br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 15, 2014 at 1:09 AM, Nicholas Gill <span dir="ltr"><<a href="mailto:nick@etellicom.com" target="_blank">nick@etellicom.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 14/09/14 20:00, <a href="mailto:sr-users-request@lists.sip-router.org" target="_blank">sr-users-request@lists.sip-<u></u>router.org</a> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In your script snippets it seems<br>
that upon receiving the 302, in the failure route you set the $du and then<br>
you pass the message to a RELAY route, which I suppose sends the 407 reply.<br>
</blockquote></span>
This seems to be the case, yes. The 407 comes from kamailio on the already authenticated call. I presume this is done to trigger the caller to send another INVITE.<span class=""><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If you don't need for special reasons that the user performs a proxy<br>
authentication, in the failure route you could just relay the INVITE to the<br>
target FreeSWITCH after setting $du to the value of your custom header.<br>
</blockquote></span>
This is exactly what I'm hoping to do, but I'm not sure of the correct configuration to achieve this.<br>
<br>
It was my intention to relay the INVITE to the target server by setting the $du and then trigger the RELAY route. I have also tried setting $du and then calling t_relay() directly, but I suspect I'm missing something minor but important.<div class="HOEnZb"><div class="h5"><br>
<br>
Cheers,<br>
<br>
-nick<br>
<br>
______________________________<u></u>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a><br>
</div></div></blockquote></div><br></div></div></div>