The sip_call_id variable contains that value. Note the aleg and bleg will each have their own version of the variable since they'll each have their own call-id.<div><div><div><br></div><div>After calling bridge you'll be back in the aleg and the bleg won't exist any more, so short of using the on_reporting hook or CDRs it might be problematic to access if you need it during the call. If you only need it afterwards it'll be in the CDR for the bleg. The bridge_uuid variable on the aleg should give you the uuid of the bleg, from which you can find the call-id for that channel.</div>
<div><br></div><div>Another option is you can specify it in advance:</div><div>1) Generate a uuid (<a href="http://wiki.freeswitch.org/wiki/Mod_commands#create_uuid">http://wiki.freeswitch.org/wiki/Mod_commands#create_uuid</a>)</div>
<div>2) Specify the leg's uuid in the dialstring (<a href="http://wiki.freeswitch.org/wiki/Variable_origination_uuid">http://wiki.freeswitch.org/wiki/Variable_origination_uuid</a>)</div><div>3) Set sofia to use the uuid as the call-id (<a href="http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files#outbound-use-uuid-as-callid">http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files#outbound-use-uuid-as-callid</a>)</div>
<div><br></div><div>-Steve</div><div><br></div><div><br><br><div class="gmail_quote">On 6 July 2013 10:41, Mino Haluz <span dir="ltr"><<a href="mailto:mino.haluz@gmail.com" target="_blank">mino.haluz@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>is there any way how to get callid of a newly created outgoing call, after calling the bridge command?</div>
<span class="HOEnZb"><font color="#888888"><div><br></div><div>M</div></font></span></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" 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">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>
<br></blockquote></div><br></div></div></div>