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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
--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

Reply via email to