I also agree with Alex.<div><br></div><div>I've tried to accommodate broken UAs in the past and I'll tell you, you're just seeing a part of what's broken. If you allow for this, what else are you going to find out down the road that isn't going to work.</div>
<div><br></div><div>As they say, it's the "Tip, of the iceburg"</div><div>-Brett</div><div><br></div><div><br></div><div><br><br><div class="gmail_quote">On Mon, May 11, 2009 at 6:40 AM, Alex Balashov <span dir="ltr"><<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">It sounds like the CANCEL with the To-tag should have a Route header as<br>
well in order for it to be processed like any other sequential/in-dialog<br>
request -- that is to say, under loose_route().<br>
<br>
Or, the CANCEL is intended for OpenSIPS itself, in which case it should<br>
not have a To-tag.<br>
<br>
I would not try to accommodate this broken UA if I were you. When<br>
breakage is so fundamental, this way lies madness.<br>
<div><div></div><div class="h5"><br>
Chris Maciejewski wrote:<br>
<br>
> You can see a SIP flow before I added "CANCEL" to a lose routing<br>
> section of my Opensips config here:<br>
><br>
> <a href="http://wima.co.uk/sip/2009-05-11_10-18-39-test-call_index.html" target="_blank">http://wima.co.uk/sip/2009-05-11_10-18-39-test-call_index.html</a><br>
><br>
> Note: F23 is rejected by OpenSIPs as it got "tag" in a To: header.<br>
><br>
> And after I added:<br>
><br>
> if (is_method("CANCEL"))<br>
> {<br>
> t_relay();<br>
> exit;<br>
> }<br>
><br>
> to my lose routing logic, OpenSIPs generates CANCEL and sends it to<br>
> the next hop:<br>
><br>
> <a href="http://wima.co.uk/sip/2009-05-11_10-46-46-test-call_index.html" target="_blank">http://wima.co.uk/sip/2009-05-11_10-46-46-test-call_index.html</a><br>
><br>
><br>
> 2009/5/11 Iñaki Baz Castillo <<a href="mailto:ibc@aliax.net">ibc@aliax.net</a>>:<br>
>> 2009/5/11 Chris Maciejewski <<a href="mailto:chris@wima.co.uk">chris@wima.co.uk</a>>:<br>
>>> Hi,<br>
>>><br>
>>> I would like to ask what would be the best way to handle CANCEL<br>
>>> request with a To tag. I know such a CANCEL request is not RFC<br>
>>> compatible<br>
>> CANCEL is hop-by-hop. This means that when OpenSIPS receives a CANCEL,<br>
>> it *doesn't* route it, but it generates a new one (this occurs when<br>
>> you do "t_relay()" for a CANCEL).<br>
>> It's impossible to add "To tag" to a CANCEL generated by OpenSIPS<br>
>> (expect if the CANCEL occurs for a re-INVITE being into an already<br>
>> established dialog, so arriving CANCEL has To tag and OpenSIPS routes<br>
>> it as any other in-dialog request).<br>
>><br>
>><br>
>>> but unfortunately I came across some buggy UAs doing this.<br>
>> What do you mean with it? what does this UAS?<br>
>><br>
>><br>
>> --<br>
>> Iñaki Baz Castillo<br>
>> <<a href="mailto:ibc@aliax.net">ibc@aliax.net</a>><br>
>><br>
>> _______________________________________________<br>
>> Users mailing list<br>
>> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
>><br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<br>
</div></div><font color="#888888">--<br>
Alex Balashov<br>
Evariste Systems<br>
Web : <a href="http://www.evaristesys.com/" target="_blank">http://www.evaristesys.com/</a><br>
Tel : (+1) (678) 954-0670<br>
Direct : (+1) (678) 954-0671<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div>