<div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="font-family:&#39;Courier New&#39;;font-size:12px">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 </span></blockquote><div><br></div><div>They&#39;re documented on Confluence / the wiki, but to include them in this thread and for your info</div><div><br></div><div>Variables in {} are set on all the legs</div><div>Variables in [] are set only on the leg they appear before</div><div><br></div><div>{a=123}[b=456]user/1000|[b=789]user/1001</div><div>The call to 1000 will have a=123 &amp; b=456</div><div>The call to 1001 will have a=123 &amp; b=789<br><br>Dialplan parsing happens in to stages - hunting and execution. In hunting it goes through the extensions, looks for all matching conditions, and builds up a list of all actions to execute. It then executes those actions in order. When an action has inline=true it is executed immediately during the hunt instead of being queued for the execution stage. That means the variable value is available for other conditions to check during the hunting stage. However the actions don&#39;t expand the value until they&#39;re executed so ${my_uuid} in your bridge isn&#39;t expanded until execution and therefore the variable doesn&#39;t need to be set inline.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 14 July 2015 at 14:35, Denis Jakovlev <span dir="ltr">&lt;<a href="mailto:yadenis@seznam.cz" target="_blank">yadenis@seznam.cz</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>
<span style="font-family:&#39;Courier New&#39;;font-size:9pt">Dobrý 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:&#39;calibri&#39;;color:#c0c0c0"><i><span class="">-- <br>
S pozdravem,<br>
Ing.Denis Jakovlev                           <br>
<a href="http://mob.tel" target="_blank">mob.tel</a>. 775-415-382<br>
<br></span>
úterý 14. července 2015, 14:51:28, napsal jste:<br>
<br>
</i></span></span><div><div class="h5"><table>
<tbody><tr>
<td width="2" bgcolor="#0000ff"><br>
</td>
<td><span style="font-family:&#39;courier new&#39;;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&#39;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&#39;ll have the duplicate error return as all the b-legs would get the same uuid.<br>
<br>
You also definitely <i>don&#39;t</i> need inline=true, I would avoid using it as it&#39;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:&#39;courier new&#39;;font-size:9pt" href="mailto:yadenis@seznam.cz" target="_blank">yadenis@seznam.cz</a><span style="font-family:&#39;courier new&#39;;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">&quot;set&quot; <span style="color:#660066">data<span style="color:#666600">=<span style="color:#008800">&quot;my_uuid=${create_uuid foo}&quot; <span style="color:#660066">inline<span style="color:#666600">=<span style="color:#008800">&quot;true&quot;<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">&quot;bridge&quot; <span style="color:#660066">data<span style="color:#666600">=<span style="color:#008800">&quot;{origination_uuid=${uuid}}user/1003&quot;<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                           <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:&#39;courier new&#39;;font-size:9pt" href="http://mob.tel" target="_blank">mob.tel</a><span style="font-family:&#39;courier new&#39;;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:&#39;courier new&#39;;font-size:9pt" href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a style="font-family:&#39;courier new&#39;;font-size:9pt" href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
<span style="font-family:&#39;courier new&#39;;font-size:9pt">Official FreeSWITCH Sites<br>
</span><a style="font-family:&#39;courier new&#39;;font-size:9pt" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a style="font-family:&#39;courier new&#39;;font-size:9pt" href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a style="font-family:&#39;courier new&#39;;font-size:9pt" href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
<span style="font-family:&#39;courier new&#39;;font-size:9pt">FreeSWITCH-users mailing list<br>
</span><a style="font-family:&#39;courier new&#39;;font-size:9pt" href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a style="font-family:&#39;courier new&#39;;font-size:9pt" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
<span style="font-family:&#39;courier new&#39;;font-size:9pt">UNSUBSCRIBE:</span><a style="font-family:&#39;courier new&#39;;font-size:9pt" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a style="font-family:&#39;courier new&#39;;font-size:9pt" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></td>
</tr>
</tbody></table>
</div></div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>