OK Klaus, <br><br>that makes sense to me now!! Thank you. Let me try that.<br><br>Cheers<br>Jason<br><br><div class="gmail_quote">On Thu, Aug 25, 2011 at 10:31 AM, Klaus Darilion <span dir="ltr">&lt;<a href="mailto:klaus.mailinglists@pernau.at">klaus.mailinglists@pernau.at</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
<br>
Am <a href="tel:25.08.2011%2010" value="+12508201110">25.08.2011 10</a>:14, schrieb Jason Penton:<br>
<div class="im">&gt;<br>
&gt; From some initial work and testing I can confirm that this works ONLY<br>
&gt; when using the top Via *without* branch tags. Not sure what impact this<br>
&gt; could have?<br>
&gt; This is because a BYE results in a different set of branch tags from the<br>
&gt; original set of invite branches - I am investigating why and how this<br>
&gt; works now.<br>
<br>
</div>Sure. the branch tag is a transaction identifier and must be unique in<br>
space and time. Thus, BYE must have another tag. That&#39;s why I said you<br>
have to put some data into RR cookies - this is the only data which<br>
stays the same during the dialog (except tags and call-id).<br>
<br>
If you only want to know if an in-dialog request is from orig-&gt;term or<br>
from term-&gt;orig, then the is_direction function is already sufficient.<br>
<br>
If you want to detect a certain spiral leg in dialog module, IMO you<br>
have to add another matching parameter (besides tags and call-id) to<br>
dialog module which will be set as RR-cookie and retrieved from Route<br>
header for in-dialog requests. Every time the initial requests spirals<br>
through the proxy, you have to add such a cookie which of course must be<br>
different to the previous inserted cookie (therefore ftag is not<br>
sufficient anymore) - either generate a random identifier or reuse some<br>
data from the message (e.g. you could copy branch-tag to RR header as it<br>
should be unique)<br>
<br>
regards<br>
<font color="#888888">Klaus<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
sr-dev mailing list<br>
<a href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
</div></div></blockquote></div><br>