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

Vincent vincent.delporte at bigfoot.com
Sun Nov 11 05:23:40 CST 2007


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!




More information about the asterisk-users mailing list