<div dir="ltr"><div>
<p style="LINE-HEIGHT:normal;MARGIN:0cm 0cm 0pt" class="MsoNormal"><span style="FONT-FAMILY:&#39;Times New Roman&#39;,&#39;serif&#39;;FONT-SIZE:12pt">Hi,</span></p>
<p style="LINE-HEIGHT:normal;MARGIN:0cm 0cm 0pt" class="MsoNormal"><span style="FONT-FAMILY:&#39;Times New Roman&#39;,&#39;serif&#39;;FONT-SIZE:12pt">Here is the problem with the solution to sending different reply then the once I receive:</span></p>

<p style="LINE-HEIGHT:normal;MARGIN:0cm 0cm 0pt" class="MsoNormal"><span style="FONT-FAMILY:&#39;Times New Roman&#39;,&#39;serif&#39;;FONT-SIZE:12pt"> </span></p>
<p style="LINE-HEIGHT:normal;MARGIN:0cm 0cm 0pt" class="MsoNormal"><span style="FONT-FAMILY:&#39;Times New Roman&#39;,&#39;serif&#39;;FONT-SIZE:12pt">I check if the reply is 603. If so, i did t_drop_replies and then t_reply with the reply i wanted to send back. 500 with append_to_reply something....</span></p>

<p style="LINE-HEIGHT:normal;MARGIN:0cm 0cm 0pt" class="MsoNormal"><span style="FONT-FAMILY:&#39;Times New Roman&#39;,&#39;serif&#39;;FONT-SIZE:12pt"> </span></p>
<p style="LINE-HEIGHT:normal;MARGIN:0cm 0cm 0pt" class="MsoNormal"><span style="FONT-FAMILY:&#39;Times New Roman&#39;,&#39;serif&#39;;FONT-SIZE:12pt">The problem is that on the 500 that i send back, the to_tag is not the same to_tag that i received with the 603.</span></p>

<p style="LINE-HEIGHT:normal;MARGIN:0cm 0cm 0pt" class="MsoNormal"><span style="FONT-FAMILY:&#39;Times New Roman&#39;,&#39;serif&#39;;FONT-SIZE:12pt">That makes some problems on the sip and lots of problems on the CDR creation (it is based on to_tag as well).</span></p>

<p style="LINE-HEIGHT:normal;MARGIN:0cm 0cm 0pt" class="MsoNormal"><span style="FONT-FAMILY:&#39;Times New Roman&#39;,&#39;serif&#39;;FONT-SIZE:12pt"> </span></p>
<p style="LINE-HEIGHT:normal;MARGIN:0cm 0cm 0pt" class="MsoNormal"><span style="FONT-FAMILY:&#39;Times New Roman&#39;,&#39;serif&#39;;FONT-SIZE:12pt">Any ideas?</span></p>
<p style="LINE-HEIGHT:normal;MARGIN:0cm 0cm 0pt" class="MsoNormal"><span style="FONT-FAMILY:&#39;Times New Roman&#39;,&#39;serif&#39;;FONT-SIZE:12pt">How do i make it the same to_tag? Removing a header and recreating it seems very dirty for it.....</span></p>

<p style="LINE-HEIGHT:normal;MARGIN:0cm 0cm 0pt" class="MsoNormal"><span style="FONT-FAMILY:&#39;Times New Roman&#39;,&#39;serif&#39;;FONT-SIZE:12pt"> </span></p>
<p style="LINE-HEIGHT:normal;MARGIN:0cm 0cm 0pt" class="MsoNormal"><span style="FONT-FAMILY:&#39;Times New Roman&#39;,&#39;serif&#39;;FONT-SIZE:12pt">BR,</span></p>
<p style="LINE-HEIGHT:normal;MARGIN:0cm 0cm 6pt" class="MsoNormal"><span style="FONT-FAMILY:&#39;Times New Roman&#39;,&#39;serif&#39;;FONT-SIZE:12pt">Uri</span></p></div>
<div class="gmail_quote">On Mon, Jun 25, 2012 at 10:25 AM, Daniel-Constantin Mierla <span dir="ltr">&lt;<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div text="#000000" bgcolor="#FFFFFF">Hello,<br><br>this 503 to 500 is a requirement from RFC, to prevent propagation of blacklisting/disabling destination hosts. I don&#39;t remember right now any configuration option for it, but you can try to enforce it from the failure route, like:<br>
<br>t_reply(&quot;503&quot;, &quot;...&quot;);<br><br>Cheers,<br>Daniel 
<div>
<div class="h5"><br><br>
<div>On 6/24/12 4:30 PM, Uri Shacked wrote:<br></div></div></div>
<blockquote type="cite">
<div>
<div class="h5">
<div dir="ltr">
<div>I just read the topic - &quot;<u><font color="#0066cc">Copy reason field from 503 to 500. </font></u><a name="1382287a1c908f03_73018"> </a>&quot;</div>
<div>Is there a way to change it if i want to send back the original leg 2 503 reply?<br><br></div>
<div class="gmail_quote">On Sun, Jun 24, 2012 at 4:17 PM, Uri Shacked <span dir="ltr">&lt;<a href="mailto:ushacked@gmail.com" target="_blank">ushacked@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div dir="ltr">
<div>Hi,</div>
<div> </div>
<div>Kamailio server is behind our company&#39;s softswitch and acts as a sip application server.</div>
<div>I notice that there are calls that the softswitch replied with 503 &quot;service unavailable&quot; and kamailio sent to the originator leg 500 &quot;service unavaileable&quot;.</div>
<div>When kamailio recieved 504 or 502 it sends them back as is. shouldn&#39;t it be the same with 503?</div>
<div> </div>
<div>It also does not have a &quot;to tag&quot; in the CDR. And the &quot;to tag&quot; in the 503 that was recieved is not equal to the 500 reply &quot;to tag&quot;  kamailio sent back.</div>
<div> </div>
<div>any ideas?</div>
<div> </div>
<div>BR,</div>
<div>Uri</div></div></blockquote></div><br></div><br>
<fieldset></fieldset> <br></div></div><pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888"></font></span></blockquote><span class="HOEnZb"><font color="#888888"><br><pre cols="72">-- 
Daniel-Constantin Mierla - <a href="http://www.asipto.com/" target="_blank">http://www.asipto.com</a>
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Seattle, USA, Sep 23-26, 2012 - <a href="http://asipto.com/u/katu" target="_blank">http://asipto.com/u/katu</a>
Kamailio Practical Workshop, Netherlands, Sep 10-12, 2012 - <a href="http://asipto.com/u/kpw" target="_blank">http://asipto.com/u/kpw</a></pre></font></span></div></blockquote></div><br></div>