[Freeswitch-users] export variable from bind_digit_action called dialplan

Trever L. Adams trever at middleearth.sapphiresunday.org
Wed Aug 10 04:30:52 MSD 2016


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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 872 bytes
Desc: OpenPGP digital signature
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160809/8b75fd4b/attachment.bin 


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