[Freeswitch-users] Get callid after bridge command

Steven Ayre steveayre at gmail.com
Sat Jul 6 21:25:37 MSD 2013


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 at 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 at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130706/95905e7c/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list