<div>Hi there,</div>
<div> </div>
<div>I have the following simple test script running in mod_managed:</div>
<div> </div>
<div><font color="#330033">Session.Answer();</font></div>
<div><font color="#330033"></font> </div>
<div><font color="#330033">string Uuid = fsApi.ExecuteString(&quot;create_uuid&quot;);</font></div>
<div><font color="#330033">string originateString = string.Format(@&quot;{{ignore_early_media=true}}[origination_uuid={0}]user/3478309995@64.40.xx.xxx &#39;&amp;park&#39;&quot;, Uuid);</font></div>
<div><font color="#330033">apiResult = fsApi.Execute(&quot;originate&quot;, originateString);</font></div>
<div><font color="#330033"></font> </div>
<div><font color="#330033">Session.Hangup(&quot;NORMAL_CLEARING&quot;);</font></div>
<div><font color="#330033"> </font></div>
<div><font color="#330033">When I run this script and I anwser the call, the console shows the error message:</font></div>
<div><font color="#330033"></font> </div>
<div><font color="#cc0000">[CRIT] switch_core_session.c:1287 Duplicate UUID!</font></div>
<div><font color="#330033"></font> </div>
<div><font color="#330033"></font> </div>
<div><font color="#330033">However &#39;show channels&#39; reveals that the UUID is the expected value (that given in origination_uuid=), when the call is ringing and after it is answered.</font></div>
<div><font color="#330033"></font> </div>
<div><font color="#330033">It is as if, FS is creating the call with the given UUID, and then on answer trying to set the UUID to the given UUID again, but failing when it see the existing call.</font></div>
<div><font color="#330033"></font> </div>
<div><font color="#330033">I updated to the latest GIT HEAD just before sending this email.</font><font color="#0000ff" size="2"><font color="#0000ff" size="2"><font size="2"></font></font></font></div>
<div>
<p><font size="2">Any ideas? Is this something I should be worried about - or am I using <font color="#330033">origination_uuid incorrectly?</font></font></p>
<p><font size="2"><font color="#330033"></font></font> </p>
<p><font size="2"><font color="#330033">Thanks</font></font></p>
<p><font size="2"><font color="#330033"></font></font> </p>
<p><font size="2"><font color="#330033"></font></font> </p>
<p><font size="2">2010-07-22 21:49:37.843750 [DEBUG] sofia_glue.c:2442 Set Codec sofia/internal/<a href="http://sip:3478309995@71.225.60.199:5900">sip:3478309995@71.225.60.199:5900</a> PCMU/8000 20 ms 160 samples<br>2010-07-22 21:49:37.843750 [DEBUG] sofia_glue.c:3935 Set 2833 dtmf send payload to 101<br>
2010-07-22 21:49:37.843750 [DEBUG] sofia_glue.c:2682 AUDIO RTP [sofia/internal/<a href="http://sip:3478309995@71.225.60.199:5900">sip:3478309995@71.225.60.199:5900</a>] 64.40.12.122 port 26654 -&gt; 71.225.60.199 port 32126 codec: 0 ms: 20<br>
2010-07-22 21:49:37.843750 [DEBUG] switch_rtp.c:1413 Starting timer [soft] 160 bytes per 20ms<br>2010-07-22 21:49:37.843750 [DEBUG] sofia_glue.c:2892 Set 2833 dtmf send payload to 101<br>2010-07-22 21:49:37.843750 [DEBUG] sofia_glue.c:2897 Set 2833 dtmf receive payload to 101<br>
2010-07-22 21:49:37.843750 [DEBUG] switch_channel.c:2539 (sofia/internal/<a href="http://sip:3478309995@71.225.60.199:5900">sip:3478309995@71.225.60.199:5900</a>) Callstate Change RINGING -&gt; ACTIVE<br>2010-07-22 21:49:37.843750 [NOTICE] sofia.c:4876 Channel [sofia/internal/<a href="http://sip:3478309995@71.225.60.199:5900">sip:3478309995@71.225.60.199:5900</a>] has been answered<br>
2010-07-22 21:49:37.843750 [DEBUG] switch_ivr_originate.c:3351 Originate Resulted in Success: [sofia/internal/<a href="http://sip:3478309995@71.225.60.199:5900">sip:3478309995@71.225.60.199:5900</a>]<br>2010-07-22 21:49:37.843750 [CRIT] switch_core_session.c:1287 Duplicate UUID!<br>
2010-07-22 21:49:37.843750 [CRIT] switch_core_session.c:457 sofia/internal/<a href="http://sip:3478309995@71.225.60.199:5900">sip:3478309995@71.225.60.199:5900</a> set UUID=73e6a583-a88c-42be-8908-860a637a67cb FAILED<br>2010-07-22 21:49:37.843750 [DEBUG] switch_ivr_originate.c:3351 Originate Resulted in Success: [sofia/internal/<a href="http://sip:3478309995@71.225.60.199:5900">sip:3478309995@71.225.60.199:5900</a>]<br>
2010-07-22 21:49:37.843750 [DEBUG] mod_commands.c:2936 (sofia/internal/<a href="http://sip:3478309995@71.225.60.199:5900">sip:3478309995@71.225.60.199:5900</a>) State Change CS_CONSUME_MEDIA -&gt; CS_EXECUTE<br>2010-07-22 21:49:37.843750 [DEBUG] switch_core_session.c:1039 Send signal sofia/internal/<a href="http://sip:3478309995@71.225.60.199:5900">sip:3478309995@71.225.60.199:5900</a> [BREAK]<br>
2010-07-22 21:49:37.843750 [DEBUG] switch_core_state_machine.c:314 (sofia/internal/<a href="http://sip:3478309995@71.225.60.199:5900">sip:3478309995@71.225.60.199:5900</a>) Running State Change CS_EXECUTE<br>2010-07-22 21:49:37.843750 [ALERT] switch_cpp.cpp:1177 +OK 73e6a583-a88c-42be-8908-860a637a67cb</font></p>

<p><font size="2">2010-07-22 21:49:37.843750 [DEBUG] switch_core_state_machine.c:348 (sofia/internal/<a href="http://sip:3478309995@71.225.60.199:5900">sip:3478309995@71.225.60.199:5900</a>) State EXECUTE<br>2010-07-22 21:49:37.843750 [DEBUG] mod_sofia.c:235 sofia/internal/<a href="http://sip:3478309995@71.225.60.199:5900">sip:3478309995@71.225.60.199:5900</a> SOFIA EXECUTE<br>
2010-07-22 21:49:37.843750 [DEBUG] switch_core_state_machine.c:157 sofia/internal/<a href="http://sip:3478309995@71.225.60.199:5900">sip:3478309995@71.225.60.199:5900</a> Standard EXECUTE<br>EXECUTE sofia/internal/<a href="http://sip:3478309995@71.225.60.199:5900">sip:3478309995@71.225.60.199:5900</a> park()<br>
2010-07-22 21:49:37.843750 [DEBUG] switch_cpp.cpp:602 CoreSession::hangup<br></font></p></div>