export variable from bind_digit_action called dialplan
I have the following in the dialplan entry that starts recording: <action application="export" inline="true" data="rec_file=$${recordings_dir}/${caller_id_number}.${callscreen_destination_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/> With set or export it only shows up on the leg that has the bind_digit_action setup. I need to see rec_file as a channel/session variable no matter whether the call is incoming or outgoing. (Both have the bind_digit_action set so only the internal user can activate it.) I have a script called from api_hangup_hook that needs to see this as it is used to setup call records in Odoo, if a recording took place, it is supposed to log an entry. Right now, it doesn't on incoming due to the bind_digit_action not setting a channel/session variable if it isn't the aleg. Any help would be greatly appreciated. Trever
participants (1)
-
Trever L. Adams