[Freeswitch-users] Best way to unset\clear export variable on FreeSWITCH

Shaun Stokes shaun.stokes at itec-support.co.uk
Thu Jan 19 14:49:17 MSK 2017


Hi All,

We're using execute_on_answer in our dialplan as follows:
<action application="export" data=" nolocal:execute_on_answer=record_session ${rec_file}"/>

However, under certain conditions we want to record the session immediately while the A leg is being processed by a LUA script (before we begin B leg), doing so causes a bug in the audio file as the call is actually recorded twice. As a result we need to unset\clear the execute_on_answer variable.

I was thinking of just setting re-exporting it with a null value, but as I can't find any instances of this being done before I'm not sure if this is best practice for FreeSWITCH:
session:execute("export"," nolocal:execute_on_answer=");

What is the correct way to unset\clear the above execute_on_answer variable in LUA?

Thanks in advance,
Shaun
[http://www.itec-support.co.uk/wp-content/uploads/2016/07/email_logo.jpg]
Shaun Stokes - Infrastructure Analyst

T :     01453 700713
E :     shaun.stokes at itec-support.co.uk
W :     www.itec-support.co.uk

Registered Address :- ITEC Support, Suite 2 Prospect House, Bath Road, Stroud, Gloucestershire GL5 3QF
Company No. 06908001

CONFIDENTIALITY NOTICE
This communication and the information it contains are intended for the person or organisation to which it is addressed. Its contents are confidential and may be protected in law. Unauthorised use, copying or disclosure of any of it may be unlawful. If you are not the intended recipient, please contact us immediately.
The contents of any attachments in this e-mail may contain software viruses, which could damage your own computer system. While ITEC Support has taken every reasonable precaution to minimise this risk, we cannot accept liability for any damage which you sustain as a result of software viruses. You should carry out your own virus checking procedure before opening any attachment.

______________________________________________________________________
This message has been checked for all known viruses by  MessageLabs Virus Scanning Service.
______________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170119/5c3119bd/attachment.html 


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