Daniel,<div><br></div><div>    I believe to have located the issue -- my apologies for not updating this thread however I wanted to confirm its resolution.  It appears that there was an email that went out stating to take out km_append_branch / append_branch from failure route.  It was appending two branches, one when I updated $ru and another after I did append_branch.  Taking out the append_branch call resolved the issue.</div>
<div><br></div><div>Sincerely,</div><div>Brandon Armstead<br><br><div class="gmail_quote">On Wed, Dec 14, 2011 at 1:36 AM, Daniel-Constantin Mierla <span dir="ltr">&lt;<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<div><div class="h5"><br>
<br>
On 12/14/11 1:14 AM, Brandon Armstead wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
    I am running into a problem where I am experiencing duplicated INVITE&#39;s being originated from Kamailio proxy.<br>
<br>
U 2011/12/13 23:58:17.543802 KAMAILIO:5060 -&gt; PSTN:5060<br>
INVITE sip:URI@PSTN SIP/2.0.<br>
<br>
U 2011/12/13 23:58:17.543840 KAMAILIO:5060 -&gt; PSTN:5060<br>
INVITE sip:URI@PSTN SIP/2.0.<br>
<br>
As you can see that the timestamp between the two invites is literally a fraction of seconds.<br>
<br>
There is no failure condition that is causing this with append_branch<br>
<br>
There is no retransmission timer issue that is causing this (using default timing):<br>
<br>
modparam(&quot;tm&quot;, &quot;retr_timer1&quot;, 500)<br>
modparam(&quot;tm&quot;, &quot;retr_timer2&quot;, 4000)<br>
<br>
Any thoughts / ideas - as this is causing a race condition in which there is a 200 OK that is being sent back from upstream -- and we are then CANCELING the 2nd INVITE which is essentially causing on overall problem with the call.<br>

<br>
Thanks for all help / thoughts / input in advance, thanks!<br>
</blockquote></div></div>
if there is a CANCEL for second INVITE, then it is parallel forking with two branches. If you can provide ngrep with the INVITEs, I can confirm it properly. Can you check there are not two contacts in usrloc?<br>
<br>
Cheers,<br>
Daniel<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
<a href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a> -- <a href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a><br>
<br>
</font></span></blockquote></div><br></div>