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.

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.

Another option is you can specify it in advance:
1) Generate a uuid (http://wiki.freeswitch.org/wiki/Mod_commands#create_uuid)
2) Specify the leg's uuid in the dialstring (http://wiki.freeswitch.org/wiki/Variable_origination_uuid)
3) Set sofia to use the uuid as the call-id (http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files#outbound-use-uuid-as-callid)

-Steve



On 6 July 2013 10:41, Mino Haluz <mino.haluz@gmail.com> wrote:
Hi,

is there any way how to get callid of a newly created outgoing call, after calling the bridge command?

M

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org