[Freeswitch-users] Set channel variables before bridge leg B hangup

Zoltán Szabó zoell at zoell.us
Thu Mar 5 20:06:41 MSK 2015


Hi,

In lua I bridge two sessions. When leg B hangup the call I need to set up
some custom channel variables for odbc_cdr reporting.

freeswitch.bridge(session1, session2);
session2:execute("set", "custom_var1=asdf");

But when the set command tries to run, the log says "channel is hangup
already".

Is there any way to do this properly?

Many thanks,
Zoltan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150305/d999a45f/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list