[Freeswitch-users] User who answer the bridge in a execute_answer

Albano Daniele Salvatore - Lavoro info at daccii.it
Mon Nov 23 02:36:57 PST 2009


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: info.vcf
Type: text/x-vcard
Size: 381 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091123/eba245aa/attachment-0002.vcf 


More information about the FreeSWITCH-users mailing list