<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Well, in this case you need to test for the status code in the failure
route. If you fork off several INVITEs in your main route, you don't
get into the failure route until all branches failed. So, I still don't
understand how you do it. <br>
Anyway, you want to avoid it, because you have a gateway that does not
follow the RFC...<br>
g-)<br>
<br>
Zappasodi Daniele wrote:
<blockquote
 cite="mid:14A9059A37EF9A45BC2520DE64C30F600C680B@slttex002.seltatel.local"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta name="Generator"
 content="MS Exchange Server version 6.5.7650.28">
  <title>R: [Serusers] sequential forking and merged request</title>
<!-- Converted from text/plain format -->
  <p><font size="2">I have written a module that choose the next client
reading the destination from a db, but I can easily obtain the same
scenario with the basic serial forking example:<br>
  <br>
&nbsp;route{<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [...]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t_on_failure("1");<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t_relay();<br>
&nbsp;}<br>
  <br>
&nbsp;failure_route[1] {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; append_branch(<a class="moz-txt-link-rfc2396E" href="mailto:sip:number1@mygw.com">"sip:number1@mygw.com"</a>);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log(1,"first redirection\n");<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t_on_failure("2");<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t_relay();<br>
&nbsp;}<br>
  <br>
&nbsp;failure_route[2] {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; append_branch(<a class="moz-txt-link-rfc2396E" href="mailto:sip:number2@mygw.com">"sip:number2@mygw.com"</a>);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log(1, "second redirection to the same gateway, but different
number\n");<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t_relay();<br>
&nbsp;}<br>
  <br>
  <br>
  <br>
-----Messaggio originale-----<br>
Da: Greger V. Teigre [<a moz-do-not-send="true"
 href="mailto:greger@teigre.com">mailto:greger@teigre.com</a>]<br>
Inviato: lun 07/05/2007 15.48<br>
A: Zappasodi Daniele<br>
Cc: <a class="moz-txt-link-abbreviated" href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org</a><br>
Oggetto: Re: [Serusers] sequential forking and merged request<br>
  <br>
Any device implementing UA functionality should follow RFC3261. But I'm<br>
not sure how you manage to fork off two INVITEs to the same gateway? I<br>
would start there.<br>
g-)<br>
  <br>
Zappasodi Daniele wrote:<br>
&gt; Hello,<br>
&gt; I have a question about sequential forking and Merged Request.<br>
&gt; If in a forking SER calls two lines of the same client (different
numbers and different Request-URIs) it refuses the second call with 482
(Cisco and Snom multiline phone for example) according with RFC 3261
section 8.2.2.2 because the two INVITEs have the same Call-Id, From tag
and Cseq.<br>
&gt; If this behaviour is reasonable with a phone, it could not be
acceptable for other types of client, first of all SIP-PSTN gateway.<br>
&gt; Is it correct this RFC interpretation? Maybe is this section
inappropriate for gateways?&nbsp;<br>
&gt; Is there something that I can do in the config file?<br>
&gt;<br>
&gt;<br>
&gt;
**********************************************************************<br>
&gt; The information in this message is confidential and may be legally<br>
&gt; privileged. It is intended solely for the addressee. Access to
this message<br>
&gt; by anyone else is unauthorized. If you are not the intended
recipient, any<br>
&gt; disclosure, copying, or distribution of the message, or any action
or<br>
&gt; omission taken by you in reliance on it, is prohibited and may be
unlawful.<br>
&gt; Please immediately contact the sender if you have received this
message inerror.<br>
&gt;<br>
&gt;
**********************************************************************<br>
&gt;
------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Serusers mailing list<br>
&gt; <a class="moz-txt-link-abbreviated" href="mailto:Serusers@lists.iptel.org">Serusers@lists.iptel.org</a><br>
&gt; <a moz-do-not-send="true"
 href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers</a><br>
&gt;&nbsp;&nbsp;<br>
  <br>
  </font>
  </p>
  <pre>**********************************************************************
The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this message
by anyone else is unauthorized. If you are not the intended recipient, any
disclosure, copying, or distribution of the message, or any action or
omission taken by you in reliance on it, is prohibited and may be unlawful.
Please immediately contact the sender if you have received this message inerror.

**********************************************************************</pre>
</blockquote>
</body>
</html>