<html><head><title>Re: [Freeswitch-users] How do I know uuid both leg before bridge?</title>
</head>
<body>
<span style=" font-family:'Courier New'; font-size: 9pt;">Dobr&#253; den,<br>
<br>
Great! Thanks a lot for the help. Now it is working as it should. <br>
<br>
I think it is worth adding these things in questions and answers, so that people know about these brackets [ ] and how it works inline=true <br>
<br>
<span style=" font-family:'calibri'; color: #c0c0c0;"><i>-- <br>
S pozdravem,<br>
Ing.Denis Jakovlev &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>
mob.tel. 775-415-382<br>
<br>
&#250;ter&#253; 14. &#269;ervence 2015, 14:51:28, napsal jste:<br>
<br>
</i></span></span><table>
<tr>
<td width=2 bgcolor= #0000ff><br>
</td>
<td><span style=" font-family:'courier new'; font-size: 9pt;">Use origination_uuid=${my_uuid} not ${uuid}<br>
<br>
${uuid} is the existing a-leg, origination_uuid will be the new b-leg<br>
<br>
Currently you're trying to create a b-leg with the same uuid as the a-leg, hence the error.<br>
<br>
I also suggest you put origination_uuid in [] not {} - if you ever add extra legs you'll have the duplicate error return as all the b-legs would get the same uuid.<br>
<br>
You also definitely <i>don't</i> need inline=true, I would avoid using it as it'll execute much earlier than you need it, and if you use set the same variable inline later in your dialplan then it may not create the bridge with the uuid you expect.<br>
<br>
Steve<br>
<br>
<br>
<br>
On 14 July 2015 at 13:36, Denis Jakovlev &lt;</span><a style=" font-family:'courier new'; font-size: 9pt;" href="mailto:yadenis@seznam.cz">yadenis@seznam.cz</a><span style=" font-family:'courier new'; font-size: 9pt;">&gt; wrote:<br>
Hi All,<br>
<br>
For my tasks need to know uuid both feet before bridge. How can i do this?<br>
<br>
If I do in the dialplan<br>
<span style=" font-size: 10pt; color: #000088; background-color: #fafafa;">&lt;action <span style=" color: #660066;">application<span style=" color: #666600;">=<span style=" color: #008800;">"set" <span style=" color: #660066;">data<span style=" color: #666600;">=<span style=" color: #008800;">"my_uuid=${create_uuid foo}" <span style=" color: #660066;">inline<span style=" color: #666600;">=<span style=" color: #008800;">"true"<span style=" color: #000088;">/&gt; <br>
</span><span style=" font-size: 9pt; color: #000000; background-color: transparent;">and then <br>
<span style=" font-size: 10pt; color: #000088; background-color: #fafafa;">&lt;action <span style=" color: #660066;">application<span style=" color: #666600;">=<span style=" color: #008800;">"bridge" <span style=" color: #660066;">data<span style=" color: #666600;">=<span style=" color: #008800;">"{origination_uuid=${uuid}}user/1003"<span style=" color: #000088;">/&gt; <br>
<br>
</span><span style=" font-size: 9pt; color: #000000; background-color: transparent;">I get an error <br>
<span style=" font-size: 10pt; color: #006666; background-color: #fafafa;">2015<span style=" color: #666600;">-<span style=" color: #006666;">07<span style=" color: #666600;">-<span style=" color: #006666;">14 14<span style=" color: #666600;">:<span style=" color: #006666;">25<span style=" color: #666600;">:<span style=" color: #006666;">32.350565 <span style=" color: #666600;">[<span style=" color: #000000;">CRIT<span style=" color: #666600;">]<span style=" color: #000000;"> switch_core_session<span style=" color: #666600;">.<span style=" color: #000000;">c<span style=" color: #666600;">:<span style=" color: #006666;">2342 <span style=" color: #660066;">Duplicate<span style=" color: #000000;"> UUID<span style=" color: #666600;">!<br>
<span style=" color: #006666;">2015<span style=" color: #666600;">-<span style=" color: #006666;">07<span style=" color: #666600;">-<span style=" color: #006666;">14 14<span style=" color: #666600;">:<span style=" color: #006666;">25<span style=" color: #666600;">:<span style=" color: #006666;">32.350565 <span style=" color: #666600;">[<span style=" color: #000000;">CRIT<span style=" color: #666600;">]<span style=" color: #000000;"> mod_sofia<span style=" color: #666600;">.<span style=" color: #000000;">c<span style=" color: #666600;">:<span style=" color: #006666;">4376 <span style=" color: #660066;">Error Creating Session <br>
<br>
</span><span style=" font-size: 9pt; color: #000000; background-color: transparent;">How correctly before bridge I assign or generate a uuid and use later?<br>
<br>
<span style=" color: #c0c0c0;"><i>-- <br>
S pozdravem,<br>
Ing.Denis Jakovlev &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>
</i></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><a style=" color: #c0c0c0; font-family:'courier new'; font-size: 9pt; font-style: Italic;" href="http://mob.tel">mob.tel</a><span style=" font-family:'courier new'; font-size: 9pt; color: #c0c0c0;"><i>. 775-415-382<br>
<br>
</i><span style=" color: #000000;">_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
</span></span><a style=" font-family:'courier new'; font-size: 9pt;" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a style=" font-family:'courier new'; font-size: 9pt;" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><br>
<br>
<span style=" font-family:'courier new'; font-size: 9pt;">Official FreeSWITCH Sites<br>
</span><a style=" font-family:'courier new'; font-size: 9pt;" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
<a style=" font-family:'courier new'; font-size: 9pt;" href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a><br>
<a style=" font-family:'courier new'; font-size: 9pt;" href="http://www.cluecon.com">http://www.cluecon.com</a><br>
<br>
<span style=" font-family:'courier new'; font-size: 9pt;">FreeSWITCH-users mailing list<br>
</span><a style=" font-family:'courier new'; font-size: 9pt;" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a style=" font-family:'courier new'; font-size: 9pt;" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
<span style=" font-family:'courier new'; font-size: 9pt;">UNSUBSCRIBE:</span><a style=" font-family:'courier new'; font-size: 9pt;" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a style=" font-family:'courier new'; font-size: 9pt;" href="http://www.freeswitch.org">http://www.freeswitch.org</a></td>
</tr>
</table>
</body></html>