[Home]

Summary:ASTERISK-15930: [patch] Add ${TOTALCALLS} dialplan variable
Reporter:Shane Spencer (whardier)Labels:
Date Opened:2010-04-08 16:22:44Date Closed:2011-06-07 14:00:59
Priority:MajorRegression?No
Status:Closed/CompleteComponents:PBX/pbx_config
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) TOTALCALLS.diff
( 1) TOTALCALLS-DOC.diff
Description:I need to do round robin calls through certain routes and didn't want to depend on the 1 second accuracy of ${TIMESTAMP} or set a Global variable when I could just use the total call count.

This is a trivial patch
Comments:By: Paul Belanger (pabelanger) 2010-04-08 17:04:16

Thanks for the patch. Be sure to make the proper documentation changes in channelvariables.tex, etc.

By: Tilghman Lesher (tilghman) 2010-04-08 17:09:24

You can already get similar information with:  ${CUT(UNIQUEID,.,2)}.  Why add this variable, which could conflict with existing dialplans?

By: Shane Spencer (whardier) 2010-04-08 17:12:56

Updated channelvariables.tex

Was unaware of the use of totalcalls in the uniqueid.  That would work just as well.