<br><div class="gmail_quote">On Fri, Mar 6, 2009 at 3:03 PM, 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="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
Santiago Gimeno schrieb:<br>
<div class="im">&gt; Hello,<br>
&gt;<br>
&gt; Thanks for the reply.<br>
&gt;<br>
&gt; Yes, I&#39;m using pedantic=yes. I will report this asap.<br>
&gt;<br>
&gt; One more thing that I have observed and might be also related to this issue.<br>
&gt;<br>
&gt; The scenario is the same as the one I described in the previous mail,<br>
&gt; but in this case, the SIP Phone that receives the 302 generates a new<br>
&gt; INVITE to the &quot;new&quot; address with exactly the same dialog information as<br>
&gt; the initial INVITE: call-id, from-tag and to-tag.<br>
<br>
</div>This is wrong. This is definitely a new dialog, thus dialog-ids should<br>
change. Further, the request must not have a totag.</blockquote><div><br>Yes, you&#39;re right in that there must not be to-tag. In fact the INVITE doesn&#39;t have a to-tag. <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<div class="im"><br>
(I think this is legal<br>
&gt; as stated in the RFC 3261-8.1.3.4: &quot;/It is RECOMMENDED that the UAC<br>
&gt; reuse the same To, From, and Call-ID used in the original redirected<br>
<br>
</div>I guess they mean the From URI and the To URI, but not the tags.</blockquote><div><br>I&#39;m not sure about that. If you look at RFC 3665-3.6, there is a simple example of a call redirection in which the 2nd INVITE has the same Call-ID and from-tag but the CSeq numbers are different.<br>
<br>The question is: should Asterisk reject the 2nd INVITE for having the same dialog id (call-id and from-tag) as the 1st INVITE even though that dialog is alreade in the TERMINATED state?<br><br>best regards,<br><br>Santi<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
klaus<br>
<div class="im"><br>
&gt; request, but the UAC MAY also choose to update the Call-ID header field<br>
&gt; value for new requests, for example./&quot;). Asterisk answers to this INVITE<br>
&gt; with a 503 Unavailable because it matches with the previous dialog. I&#39;m<br>
&gt; not sure if this is how Asterisk should behave, or it should allow the<br>
&gt; call to progress as the previous dialog is already in the TERMINATED<br>
&gt; state. What do you think?<br>
&gt;<br>
&gt; Best regards,<br>
&gt;<br>
&gt; Santi<br>
&gt;<br>
&gt; 2009/3/4 Klaus Darilion &lt;<a href="mailto:klaus.mailinglists@pernau.at">klaus.mailinglists@pernau.at</a><br>
</div>&gt; &lt;mailto:<a href="mailto:klaus.mailinglists@pernau.at">klaus.mailinglists@pernau.at</a>&gt;&gt;<br>
<div class="im">&gt;<br>
&gt;     Hi!<br>
&gt;<br>
&gt;     Actually I would consider this as a bug, thus you should report it at<br>
</div>&gt;     <a href="http://bugs.digium.com" target="_blank">bugs.digium.com</a> &lt;<a href="http://bugs.digium.com" target="_blank">http://bugs.digium.com</a>&gt;.<br>
<div><div></div><div class="h5">&gt;<br>
&gt;     Are you using pedantic=yes (sip.conf)? If not, it would be interesting<br>
&gt;     if the pedantic mode has the same problem.<br>
&gt;<br>
&gt;     regards<br>
&gt;     klaus<br>
&gt;<br>
&gt;     Santiago Gimeno schrieb:<br>
&gt;      &gt; Hello all,<br>
&gt;      &gt;<br>
&gt;      &gt; Not sure if this mail belongs to this users or dev list. Sorry about<br>
&gt;      &gt; that.<br>
&gt;      &gt;<br>
&gt;      &gt; We have the following scenario:<br>
&gt;      &gt;<br>
&gt;      &gt;       PhoneA         OpenSER       Asterisk        PhoneB<br>
&gt;     PhoneC<br>
&gt;      &gt;          |              |              |              |<br>
&gt;        |<br>
&gt;      &gt;          |              |              |              |<br>
&gt;        |<br>
&gt;      &gt;          |              |              |              |<br>
&gt;        |<br>
&gt;      &gt;          |INVITE B      |              |              |<br>
&gt;        |<br>
&gt;      &gt;          |-------------&gt;|              |              |<br>
&gt;        |<br>
&gt;      &gt;          |              |INVITE B      |              |<br>
&gt;        |<br>
&gt;      &gt;          |              |-------------&gt;|              |<br>
&gt;        |<br>
&gt;      &gt;          |              |              |INVITE B      |<br>
&gt;        |<br>
&gt;      &gt;          |              |              |-------------&gt;|<br>
&gt;        |<br>
&gt;      &gt;          |              |              |486 Busy Here |<br>
&gt;        |<br>
&gt;      &gt;          |              |              |&lt;-------------|<br>
&gt;        |<br>
&gt;      &gt;          |              |              |ACK           |<br>
&gt;        |<br>
&gt;      &gt;          |              |              |-------------&gt;|<br>
&gt;        |<br>
&gt;      &gt;          |              |486 Busy Here |              |<br>
&gt;        |<br>
&gt;      &gt;          |              |&lt;-------------|              |<br>
&gt;        |<br>
&gt;      &gt;          |              |ACK           |              |<br>
&gt;        |<br>
&gt;      &gt;          |              |-------------&gt;|              |<br>
&gt;        |<br>
&gt;      &gt;          |302 MOVED (to C)             |              |<br>
&gt;        |<br>
&gt;      &gt;          |&lt;-------------|              |              |<br>
&gt;        |<br>
&gt;      &gt;          |ACK           |              |              |<br>
&gt;        |<br>
&gt;      &gt;          |-------------&gt;|              |              |<br>
&gt;        |<br>
&gt;      &gt;          |INVITE C      |              |              |<br>
&gt;        |<br>
&gt;      &gt;          |-------------&gt;|              |              |<br>
&gt;        |<br>
&gt;      &gt;          |              |INVITE C      |              |<br>
&gt;        |<br>
&gt;      &gt;          |              |-------------&gt;|              |<br>
&gt;        |<br>
&gt;      &gt;          |              |503 Unavailable              |<br>
&gt;        |<br>
&gt;      &gt;          |              |&lt;-------------|              |<br>
&gt;        |<br>
&gt;      &gt;          |              |ACK           |              |<br>
&gt;        |<br>
&gt;      &gt;          |              |-------------&gt;|              |<br>
&gt;        |<br>
&gt;      &gt;          |503 Unavailable              |              |<br>
&gt;        |<br>
&gt;      &gt;          |&lt;-------------|              |              |<br>
&gt;        |<br>
&gt;      &gt;          |ACK           |              |              |<br>
&gt;        |<br>
&gt;      &gt;          |-------------&gt;|              |              |<br>
&gt;        |<br>
&gt;      &gt;          |              |              |              |<br>
&gt;        |<br>
&gt;      &gt;          |              |              |              |<br>
&gt;        |<br>
&gt;      &gt;<br>
&gt;      &gt;<br>
&gt;      &gt;<br>
&gt;      &gt; 1.- Phone A calls Phone B behind Asterisk.<br>
&gt;      &gt; 2.- Phone B rejects call by sending a &#39;486 Busy Here&#39; response.<br>
&gt;      &gt; 3.- When OpenSER receives the 486 it sends a &#39;302 Moved Temporarily&#39;<br>
&gt;      &gt; to Phone A to redirect the call to Phone C.<br>
&gt;      &gt; 4.- Phone A perfoms the redirection and sends a new INVITE to Phone C<br>
&gt;      &gt; (that is also behind Asterisk) with same call-id BUT DIFFERENT<br>
&gt;     from-tag,<br>
&gt;      &gt; CSeq.<br>
&gt;      &gt; 5.- Asterisk, for some reason, considers the new INVITE to belong<br>
&gt;     to the<br>
&gt;      &gt; previous call and then rejects the call with a<br>
&gt;      &gt; &#39;503 Unavailable&#39;. But it cannot be considered to belong to the same<br>
&gt;      &gt; dialog because the tags are different, although the call-id is<br>
&gt;     the same.<br>
&gt;      &gt; We have used pedantic checking. Could it be considered as a bug?<br>
&gt;      &gt;<br>
&gt;      &gt; Looking at the code of chan_sip.c (version 1.4.23.1), we have<br>
&gt;     observed<br>
&gt;      &gt; that in function &#39;find_call&#39; line 4667, asterisk is considering<br>
&gt;     the call<br>
&gt;      &gt; as FOUND because of this test:<br>
&gt;      &gt; !ast_test_flag(&amp;p-&gt;flags[1], SIP_PAGE2_DIALOG_ESTABLISHED).<br>
&gt;      &gt; Commenting out this comparison, the call proceeds correctly.<br>
&gt;     Sure, there<br>
&gt;      &gt; is some reason for this checking and we would like to know which<br>
&gt;     is and<br>
&gt;      &gt; in what does it affect. How could we fix it?<br>
&gt;      &gt;<br>
&gt;      &gt; The following is the asterisk console output when the call does not<br>
&gt;      &gt; proceed:<br>
&gt;      &gt; [Mar  2 12:15:24] DEBUG[9989]: chan_sip.c:15813 handle_request: ****<br>
&gt;      &gt; Received INVITE (5) - Command in SIP INVITE [Mar  2 12:15:24]<br>
&gt;      &gt; NOTICE[9989]: chan_sip.c:14724<br>
&gt;      &gt; handle_request_invite: Unable to create/find SIP channel for this<br>
&gt;     INVITE<br>
&gt;      &gt; [Mar  2 12:15:24] DEBUG[9989]: chan_sip.c:4653 find_call: =<br>
&gt;     Looking for<br>
&gt;      &gt; Call ID: <a href="mailto:9463D153-64F11DE-8602E9BF-A87F52E0@172.16.103.15">9463D153-64F11DE-8602E9BF-A87F52E0@172.16.103.15</a><br>
&gt;     &lt;mailto:<a href="mailto:9463D153-64F11DE-8602E9BF-A87F52E0@172.16.103.15">9463D153-64F11DE-8602E9BF-A87F52E0@172.16.103.15</a>&gt;<br>
&gt;      &gt; &lt;mailto:<a href="mailto:9463D153-64F11DE-8602E9BF-A87F52E0@172.16.103.15">9463D153-64F11DE-8602E9BF-A87F52E0@172.16.103.15</a><br>
&gt;     &lt;mailto:<a href="mailto:9463D153-64F11DE-8602E9BF-A87F52E0@172.16.103.15">9463D153-64F11DE-8602E9BF-A87F52E0@172.16.103.15</a>&gt;&gt;<br>
&gt;      &gt; (Checking From) --From tag 182B3580-E9 --To-tag as62e21069<br>
&gt;      &gt;<br>
&gt;      &gt; Any feedback would be appreciated.<br>
&gt;      &gt;<br>
&gt;      &gt; Thank you in advance,<br>
&gt;      &gt;<br>
&gt;      &gt; Santi<br>
&gt;      &gt;<br>
&gt;      &gt;<br>
&gt;      &gt;<br>
&gt;     ------------------------------------------------------------------------<br>
&gt;      &gt;<br>
&gt;      &gt; _______________________________________________<br>
&gt;      &gt; -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
&gt;      &gt;<br>
&gt;      &gt; asterisk-users mailing list<br>
&gt;      &gt; To UNSUBSCRIBE or update options visit:<br>
&gt;      &gt;    <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
&gt;<br>
&gt;     _______________________________________________<br>
&gt;     -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
&gt;<br>
&gt;     asterisk-users mailing list<br>
&gt;     To UNSUBSCRIBE or update options visit:<br>
&gt;       <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
&gt;<br>
&gt; asterisk-users mailing list<br>
&gt; To UNSUBSCRIBE or update options visit:<br>
&gt;    <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br>