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

Steve Murphy murf at digium.com
Tue Nov 13 08:45:21 CST 2007


On Tue, 2007-11-13 at 01:27 +0100, Vincent wrote:

> 
> BTW, what's the difference between functions and applications?

Functions are pretty much like applications, but the difference is: 

Functions can return a value, and you can use them to set a value as
well, depending on the function

Applications do not really return a value (besides a result code that
copuld terminate the dialplan)

For instance, you can say Set(x=${CDR(userfield)} to set x to the value
of the userfield variable in the CDR, and you can also say
Set(CDR(userfield)=${x}) to set that field to the value of x. DB, CDR,
and others can be used to set/get various values.

You can read the doc/channelvariables document, and also the 'core show
applications', 'core show functions' and 'core show application xxx' and
'core show function XXX' to get documentation on every app and func that
is installed in asterisk.


murf

-- 
Steve Murphy
Software Developer
Digium
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3227 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20071113/a2478cdb/attachment.bin 


More information about the asterisk-users mailing list