<HTML dir=ltr><HEAD><TITLE>Re: [OpenSIPS-Users] *** correction *** Opensips is responding(SIP/2.0 503 No destinationavailable) to a CANCEL request.</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6001.18148" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText527 dir=ltr>
<DIV dir=ltr><FONT face="Courier New" size=2>Hi Bogdan,</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>Dynamic routing was not right, I was expecting that it would always be routed to the same target.</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>I should&nbsp;use this special block for handling CANCEL&nbsp;:</FONT><BR></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2># # #<BR>if ( is_method("CANCEL") ) {<BR>&nbsp;if ( t_check_trans() )<BR>&nbsp; t_relay();</FONT><FONT face="Courier New" size=2><BR>&nbsp;exit;<BR>}<BR></FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>I was using :</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face="Courier New" size=2># # # #---&gt; Dynamic Routing<BR>&nbsp;if (!do_routing("0")) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sl_send_reply("503", "No destination available");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit;<BR>&nbsp;}</FONT></DIV></DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>From my reading I found out that ACK is not handled like BYE or ACK, but sent exactly like INVITE Request-URI, etc. , so the explanation was not there.</FONT></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> users-bounces@lists.opensips.org on behalf of Bogdan-Andrei Iancu<BR><B>Sent:</B> Fri 21/05/2010 5:22 PM<BR><B>To:</B> OpenSIPS users mailling list<BR><B>Subject:</B> Re: [OpenSIPS-Users] *** correction *** Opensips is responding(SIP/2.0 503 No destinationavailable) to a CANCEL request.<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Hi Julien,<BR><BR>first of all ,you should not do dispatching for CANCEL - it should be<BR>automatically routed by TM in order to go where the INVITE was sent (at<BR>transaction level). You do not need to manually route the CANCEL.<BR><BR>Regards,<BR>Bogdan<BR><BR>Julien Chavanton wrote:<BR>&gt; I am wandering if UA1 when generating a CANCEL should have set the Request-URI to the Contact-Header in the provisional response ?<BR>&gt; Like in an ACK and BYE ?<BR>&gt; I can not find the information about this in the RFC&nbsp; 3261<BR>&gt;<BR>&gt; ------------------------------------------------------------------------<BR>&gt; *From:* users-bounces@lists.opensips.org on behalf of Laszlo<BR>&gt; *Sent:* Fri 21/05/2010 1:39 PM<BR>&gt; *To:* OpenSIPS users mailling list<BR>&gt; *Subject:* Re: [OpenSIPS-Users] *** correction *** Opensips is<BR>&gt; responding(SIP/2.0 503 No destinationavailable) to a CANCEL request.<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; 2010/5/21 Julien Chavanton &lt;jc@atlastelecom.com<BR>&gt; &lt;<A href="mailto:jc@atlastelecom.com">mailto:jc@atlastelecom.com</A>&gt;&gt;<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Just noticed there was an error in my last email with the address<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; of the UA and Proxy<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Hi, I am trying to find wy Opensips is responding (SIP/2.0 503 No<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; destination available) to a CANCEL request.<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; UA1(2.2.2.2) -&gt; P1(1.1.1.1) -&gt; UA2(3.3.3.3)<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; -----------------------------<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; UA1(2.2.2.2) -&gt; P1(1.1.1.1)<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; INVITE sip:15141234567@1.1.1.1:5060;user=phone SIP/2.0<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Via: SIP/2.0/UDP 2.2.2.2:5060;branch=z9hG4bK264faa44a34bd197c0-66c25-0<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Max-Forwards: 69<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Contact: &lt;sip:2.2.2.2:5060 &lt;<A href="http://2.2.2.2:5060/">http://2.2.2.2:5060/</A>&gt;&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; To: &lt;sip:15141234567@1.1.1.1:5060<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;<A href="http://sip:15141234567@1.1.1.1:5060">http://sip:15141234567@1.1.1.1:5060</A>&gt;&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; From: &lt;sip:2.2.2.2:5060<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;<A href="http://2.2.2.2:5060/">http://2.2.2.2:5060/</A>&gt;&gt;;tag=39e771ca-co4209-INS026<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Call-ID: 12345678<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; CSeq: 420901 INVITE<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Content-Type: application/sdp<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Date: Fri, 23 Apr 2010 12:51:12 GMT<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Supported: 100rel<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; User-Agent: ENSR2.5.47.9-IS26-RMRG20056-RG106565-CPO6500<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Content-Length: 282<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; -----------------------------<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; P1(1.1.1.1) -&gt; UA1(2.2.2.2)<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; SIP/2.0 183 Session Progress<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; To: "22215141234567" &lt;sip:222928023587914@3.3.3.3<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;<A href="mailto:sip%3A222928023587914@3.3.3.3">mailto:sip%3A222928023587914@3.3.3.3</A>&gt;&gt;;tag=1190663040<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Via: SIP/2.0/UDP 2.2.2.2:5060;branch=z9hG4bK264faa44a34bd197c0-66c25-0<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; From: &lt;sip:2.2.2.2:5060<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;<A href="http://2.2.2.2:5060/">http://2.2.2.2:5060/</A>&gt;&gt;;tag=39e771ca-co4209-INS026<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Call-ID: 12345678<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; CSeq: 420901 INVITE<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Record-Route: &lt;sip:1.1.1.1;lr&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Contact: sip:22215141234567@3.3.3.3:5060<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;<A href="http://sip:22215141234567@3.3.3.3:5060">http://sip:22215141234567@3.3.3.3:5060</A>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Max-Forwards: 70<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Content-Type: application/sdp<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Content-Length: 186<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; P-hint: Route[6]: mediaproxy<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; -----------------------------<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; UA1(2.2.2.2) -&gt; P1(1.1.1.1)<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; CANCEL sip:15141234567@1.1.1.1:5060;user=phone SIP/2.0<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Via: SIP/2.0/UDP 2.2.2.2:5060;branch=z9hG4bK264faa44a34bd197c0-66c25-0<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Max-Forwards: 69<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; To: &lt;sip:15141234567@1.1.1.1:5060<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;<A href="http://sip:15141234567@1.1.1.1:5060">http://sip:15141234567@1.1.1.1:5060</A>&gt;&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; From: &lt;sip:2.2.2.2:5060<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;<A href="http://2.2.2.2:5060/">http://2.2.2.2:5060/</A>&gt;&gt;;tag=39e771ca-co4209-INS026<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Call-ID: 12345678<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; CSeq: 420901 CANCEL<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; User-Agent: ENSR2.5.47.9-IS26-RMRG106565-RG106565-CPO6500<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Content-Length: 0<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; -----------------------------<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; P1(1.1.1.1) -&gt; UA1(2.2.2.2)<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; SIP/2.0 503 No destination available<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Via: SIP/2.0/UDP 2.2.2.2:5060;branch=z9hG4bK264faa44a34bd197c0-66c25-0<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; To: &lt;sip:15141234567@1.1.1.1:5060<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;<A href="http://sip:15141234567@1.1.1.1:5060">http://sip:15141234567@1.1.1.1:5060</A>&gt;&gt;;tag=97b561d891fabb5de05c82496d3a199a.a955<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; From: &lt;sip:2.2.2.2:5060<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;<A href="http://2.2.2.2:5060/">http://2.2.2.2:5060/</A>&gt;&gt;;tag=39e771ca-co4209-INS026<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Call-ID: 12345678<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; CSeq: 420901 CANCEL<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Server: OpenSIPS (1.5.1-notls (x86_64/linux))<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Content-Length: 0<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; Hi,<BR>&gt;<BR>&gt; Can you post the full trace where the whole message flow can be checked?<BR>&gt;<BR>&gt; -Laszlo<BR>&gt;<BR>&gt; ------------------------------------------------------------------------<BR>&gt;<BR>&gt; _______________________________________________<BR>&gt; Users mailing list<BR>&gt; Users@lists.opensips.org<BR>&gt; <A href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</A><BR>&gt;&nbsp;&nbsp;<BR><BR><BR>--<BR>Bogdan-Andrei Iancu<BR>www.voice-system.ro<BR><BR><BR>_______________________________________________<BR>Users mailing list<BR>Users@lists.opensips.org<BR><A href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</A><BR></FONT></P></DIV></BODY></HTML>