<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>Hello PlayMen,</div>

<div>&nbsp;</div>

<div>&nbsp; &nbsp; Looks like you are replying with &quot;100 Trying&quot; after calling t_relay().<br/>
&nbsp; &nbsp; Can you reorganize the script so that the &quot;100 Trying&quot; is replied immediately after receiving the intitial INVITE?</div>

<div>&nbsp; &nbsp;&nbsp;sl_send_reply(&quot;100&quot;, &quot;Trying&quot;);</div>

<div><br/>
&nbsp; &nbsp; This will hopefully prevent the sender from re-transmitting the INVITE at the first place.&nbsp;</div>

<div>&nbsp;</div>

<div>Best Regards,<br/>
- Gary</div>
</div>

<div>
<div>
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Sent:</b>&nbsp;Wednesday, November 19, 2014 at 2:04 PM<br/>
<b>From:</b>&nbsp;&quot;Dragomir Haralambiev&quot; &lt;goup2010@gmail.com&gt;<br/>
<b>To:</b>&nbsp;&quot;OpenSIPS users mailling list&quot; &lt;users@lists.opensips.org&gt;<br/>
<b>Subject:</b>&nbsp;Re: [OpenSIPS-Users] repeated INVITE issue</div>

<div name="quoted-content">
<div>
<div>Yes I do.</div>

<div>Here is part of my script:<br/>
&nbsp;&nbsp;if ( t_check_trans() ) {<br/>
&nbsp;&nbsp;&nbsp;xlog(&quot;L_ERR&quot;,&nbsp;&quot;&#36;fU: This INVITE is already received&quot;);<br/>
&nbsp;&nbsp;&nbsp;exit;<br/>
&nbsp;&nbsp;}</div>
</div>

<div class="gmail_extra">&nbsp;
<div class="gmail_quote">2014-11-19 20:50 GMT+02:00 campusvtv <span>&lt;<a href="campusvtv@gmail.com" target="_parent">campusvtv@gmail.com</a>&gt;</span>:

<blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex;border-left: 1.0px rgb(204,204,204) solid;padding-left: 1.0ex;">
<div>Hello,<br/>
<br/>
are you using t_check_trans before&nbsp; t_relay to check if the second and third INVITEs are retransmission?<br/>
<br/>
Regards.<br/>
<br/>
El 19/11/2014 13:41, Dragomir Haralambiev escribi&oacute;:
<div>
<div class="h5">&nbsp;
<blockquote>
<div>
<div>It replies back with provisional response (100 - Ok giving a try), but a bit too late - after more than one invite has been received already.</div>

<div>The question is more why OpenSips sends 3 replies to the upstream provider instead just one since the invites are duplicates.</div>
</div>

<div class="gmail_extra">&nbsp;
<div class="gmail_quote">2014-11-19 20:14 GMT+02:00 campusvtv <span>&lt;<a href="campusvtv@gmail.com" target="_parent">campusvtv@gmail.com</a>&gt;</span>:

<blockquote class="gmail_quote" style="margin: 0.0px 0.0px 0.0px 0.8ex;padding-left: 1.0ex;border-left-color: rgb(204,204,204);border-left-width: 1.0px;border-left-style: solid;">
<div>Hello,<br/>
<br/>
check why OpenSIPs don&#39;t send provisional response to user that send 3 INVITEs or why the user don&#39;t receive these provisional responses.<br/>
<br/>
Regards<br/>
&nbsp;
<div>El 19/11/2014 12:05, Dragomir Haralambiev escribi&oacute;:</div>

<blockquote>
<div>
<div>
<div>
<div>Hello folks,</div>

<div>&nbsp;</div>

<div>I have opensips (v1.11.3) running here. I am having the following problem:<br/>
Sometimes Opensips gets 3 INVITE&#39;s with the same From: tag ~0.5 seconds apart of each oother.<br/>
After executing t_relay() opensips sends 3 invites to the upstream provider.<br/>
What should I do to limit t_relay() of forwarding only one INVITE request?<br/>
This is how trace looks like:</div>

<div>&nbsp;<font face="monospace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OpenSips<br/>
---- INVITE -----&gt;<br/>
---- INVITE -----&gt;<br/>
---- INVITE -----&gt;<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t_relay<br/>
&lt;--100 Give a Try--<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ---- INVITE -----&gt;<br/>
&lt;--100 Give a Try--<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ---- INVITE -----&gt;<br/>
&lt;--100 Give a Try--<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ---- INVITE -----&gt;</font></div>

<div>&nbsp;</div>

<div><font face="Courier New">Best regards,</font></div>

<div><font face="Courier New">PlayMen</font></div>
</div>
&nbsp;

<fieldset>&nbsp;</fieldset>
</div>
</div>

<pre>_______________________________________________
Users mailing list
<a href="Users@lists.opensips.org" target="_parent">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</div>
<br/>
_______________________________________________<br/>
Users mailing list<br/>
<a href="Users@lists.opensips.org" target="_parent">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/>
&nbsp;</blockquote>
</div>
</div>
&nbsp;

<fieldset>&nbsp;</fieldset>
&nbsp;

<pre>_______________________________________________
Users mailing list
<a href="Users@lists.opensips.org" target="_parent">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</div>
</div>
</div>
<br/>
_______________________________________________<br/>
Users mailing list<br/>
<a href="Users@lists.opensips.org" target="_parent">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/>
&nbsp;</blockquote>
</div>
</div>
_______________________________________________ Users mailing list Users@lists.opensips.org <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></div>
</div>
</div>
</div></div></body></html>