I checked. I get same UUID.<div><div><br></div><div>---------------</div><div><div> //obtain new UUID from server</div><div> string pStrNewUUID = pObjEslConn.Api("create_uuid", null).GetBody();</div>
<div><br></div><div> ESLevent pObjESLEvOriginate = null;</div><div> pObjESLEvOriginate =</div><div> pObjEslConn.Bgapi(</div><div> "originate",</div><div> "{" +</div>
<div> "origination_uuid=" + pStrNewUUID + "," +</div><div> "ignore_early_media=true,origination_caller_id_name=..}sofia/gateway/v/1" + aStrPhNo + " 1056 XML default", </div>
<div> pStrNewUUID);</div><div><br></div><div> //if this remains the same, then no need to have this logic</div><div> string pStrJobUUID = pObjESLEvOriginate.GetHeader("Job-UUID", -1);</div>
<div>---------------</div><br class="Apple-interchange-newline"><div>At this point, pStrJobUUID and pStrNewUUID are the same value.</div><div><br></div><div>Is this normal?</div><div><br></div><div>Thanks.</div><div><br>
</div><div>Malay</div><div class="gmail_quote"><br></div><div class="gmail_quote">On Wed, Apr 18, 2012 at 12:43 AM, Peter Olsson <span dir="ltr"><<a href="mailto:peter.olsson@visionutveckling.se" target="_blank">peter.olsson@visionutveckling.se</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Seems strange. These must be two different values. The first uuid is generated for the actual call, the second is a uuid to help you keep track of the background job. Are you sure they are the same, and not just very similar?<br>
<br>
/Peter<br>
<br>
18 apr 2012 kl. 06:58 skrev "Malay Thakershi" <<a href="mailto:mthakershi@gmail.com" target="_blank">mthakershi@gmail.com</a><mailto:<a href="mailto:mthakershi@gmail.com" target="_blank">mthakershi@gmail.com</a>>>:<br>
<div><br>
I am using exact same code as given here: <a href="http://wiki.freeswitch.org/wiki/Esl#Examples" target="_blank">http://wiki.freeswitch.org/wiki/Esl#Examples</a><br>
<br>
bgapi to invoke "originate"<br>
<br>
Thanks.<br>
<br>
Malay<br>
<br>
</div><div>On Tue, Apr 17, 2012 at 6:54 PM, Avi Marcus <<a href="mailto:avi@avimarcus.net" target="_blank">avi@avimarcus.net</a><mailto:<a href="mailto:avi@avimarcus.net" target="_blank">avi@avimarcus.net</a>>> wrote:<br>
Are you using the same bgapi or just a plain API?<br>
-Avi<br>
<br>
<br>
</div><div>On Wed, Apr 18, 2012 at 2:30 AM, Malay Thakershi <<a href="mailto:mthakershi@gmail.com" target="_blank">mthakershi@gmail.com</a><mailto:<a href="mailto:mthakershi@gmail.com" target="_blank">mthakershi@gmail.com</a>>> wrote:<br>
Hello,<br>
<br>
Here is a code snippet from ESL example in wiki. <a href="http://wiki.freeswitch.org/wiki/Esl#Examples" target="_blank">http://wiki.freeswitch.org/wiki/Esl#Examples</a><br>
<br>
my $uuid = $con->api("create_uuid")->getBody();<br>
my $res =<br>
$con->bgapi("originate","{origination_uuid=$uuid}$target 9664");<br>
my $job_uuid = $res->getHeader("Job-UUID");<br>
<br>
I use same code but in ManagedELS. But, I always get uuid and job_uuid same value.<br>
<br>
My question is, if it is same value then is it necessary to get job_uuid from res?<br>
<br>
Thanks.<br>
<br>
Malay Thakershi<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
</div><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><mailto:<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>><br>
<div><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
</div><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><mailto:<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>><br>
<div><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
</div><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><mailto:<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>><br>
<div><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
</div><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><mailto:<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>><br>
<div><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
</div>!DSPAM:4f8e476532761383613141!<br>
<div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
</div><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><mailto:<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>><br>
<div><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
</div><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><mailto:<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>><br>
<div><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
</div>!DSPAM:4f8e476532761383613141!<br>
<div><div><br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br></div>
</div>