Cost control¶
1. Application calculates total call cost for an elapsed period (minutes).
2. In case if calculated cost exceeds specified threshold - e-mail is send to specified e-mail using specified mail template and mail account.
When mail is composed following arguments are passed:
${PEER} - name of a peer, on which there was a check
${COST} - total calls cost for the elapsed period
${COST_THRESHOLD} - threshold value for call cost for elapsed period