[asterisk-users] Record() : How to get filename created with %d?

Eric "ManxPower" Wieling eric at fnords.org
Sun Nov 11 11:18:30 CST 2007


You need to look at the files in /path/to/src/asterisk/doc (or /docs, I 
don't recall) there is much information there, including a file named 
README.variables (1.2) or channelvariables.txt (1.4).

Vincent wrote:
> On Sat, 10 Nov 2007 23:05:47 -0600, "Eric \"ManxPower\" Wieling"
> <eric at fnords.org> wrote:
>> Why not use ${UNIQUEID}?
> 
> It's not listed in ATFT, even 2nd ed, so I didn't know about it.
> 
> Seems like ${UNIQUEID} is generated with each new call, and includes
> an extension:
> 
>     -- Executing [666 at my-phones:1] Verbose("SIP/9001-081d6630",
> "1194783496.46") in new stack
> 1194783496.46
>     -- Executing [666 at my-phones:2] Verbose("SIP/9001-081d6630",
> "1194783496.46") in new stack
> 1194783496.46
>   == Auto fallthrough, channel 'SIP/9001-081d6630' status is 'UNKNOWN'
> 
>     -- Executing [666 at my-phones:1] Verbose("SIP/9001-081f5940",
> "1194783510.47") in new stack
> 1194783510.47
>     -- Executing [666 at my-phones:2] Verbose("SIP/9001-081f5940",
> "1194783510.47") in new stack
> 1194783510.47
>   == Auto fallthrough, channel 'SIP/9001-081f5940' status is 'UNKNOWN'
> 
> Looks like an equally good way to generate a unique filename. Thanks!
> 
> 
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 




More information about the asterisk-users mailing list