User who answer the bridge in a execute_answer
Hi, i'm writing some dialplan parts that get executed on execute_on_answer. In this dialplan that get executed i need to make a directory to handle recordings for record_session and my folder structure is: USER/YEAR/MONTH/HOUR-MINUTE-SECOND-CALLER_NUMBER.wav ------ <action application="system" data="mkdir -p $${base_dir}/recordings/${sip_from_user}/${strftime(%Y)}/${strftime(%m)}/" /> <action application="bind_meta_app" data="1 a s record_session::$${base_dir}/recordings/${sip_from_user}/${strftime(%Y)}/${strftime(%m)}/${strftime(%H_%M_%S)}-${caller_id_number}.wav" /> ------ The call flow is: Call from external -> IVR -> Transfer to Group -> Execute on Answer -> system/bind_meta_app Pratically, i need the number (or better the user) that answered the call: what variable should i check? I tried with sip_from_user, callee_id_number and some other. Thank for your help, Best Regards, Daniele
Try running the info app there and see if the info is anywhere in that output . Mike On Nov 23, 2009, at 5:36 AM, Albano Daniele Salvatore - Lavoro wrote:
Hi,
i'm writing some dialplan parts that get executed on execute_on_answer. In this dialplan that get executed i need to make a directory to handle recordings for record_session and my folder structure is: USER/YEAR/MONTH/HOUR-MINUTE-SECOND-CALLER_NUMBER.wav
------ <action application="system" data="mkdir -p $${base_dir}/recordings/${sip_from_user}/${strftime(%Y)}/${strftime(%m)}/" /> <action application="bind_meta_app" data="1 a s record_session::$${base_dir}/recordings/${sip_from_user}/${strftime(%Y)}/${strftime(%m)}/${strftime(%H_%M_%S)}-${caller_id_number}.wav" /> ------
The call flow is: Call from external -> IVR -> Transfer to Group -> Execute on Answer -> system/bind_meta_app
Pratically, i need the number (or better the user) that answered the call: what variable should i check?
I tried with sip_from_user, callee_id_number and some other.
Thank for your help,
Best Regards, Daniele <info.vcf>_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hi, thanks for the suggestion! In the end i updated freeswitch using lastest source in the trunk and callee_id_number worked! Best Regard, Daniele Michael Jerris ha scritto:
Try running the info app there and see if the info is anywhere in that output .
Mike
On Nov 23, 2009, at 5:36 AM, Albano Daniele Salvatore - Lavoro wrote:
Hi,
i'm writing some dialplan parts that get executed on execute_on_answer. In this dialplan that get executed i need to make a directory to handle recordings for record_session and my folder structure is: USER/YEAR/MONTH/HOUR-MINUTE-SECOND-CALLER_NUMBER.wav
------ <action application="system" data="mkdir -p $${base_dir}/recordings/${sip_from_user}/${strftime(%Y)}/${strftime(%m)}/" /> <action application="bind_meta_app" data="1 a s record_session::$${base_dir}/recordings/${sip_from_user}/${strftime(%Y)}/${strftime(%m)}/${strftime(%H_%M_%S)}-${caller_id_number}.wav" /> ------
The call flow is: Call from external -> IVR -> Transfer to Group -> Execute on Answer -> system/bind_meta_app
Pratically, i need the number (or better the user) that answered the call: what variable should i check?
I tried with sip_from_user, callee_id_number and some other.
Thank for your help,
Best Regards, Daniele>
participants (2)
-
Albano Daniele Salvatore - Lavoro
-
Michael Jerris