To enable Call Center Analyser to report Outbound Calls when displaying reporting, then follow the below procedure on enabling outbound call logging and how to use it.
In order for outbound call reporting for Call Center Analyser to work on your Com.X, extensions need to have an account code.
1. Log into the Comma GUI of the Com.X
2. Select Start panel and then select Configuration.
3. Select the Extensions Panel.
4. Right click the extension/s you would like to enable outbound logging on, and select Edit.
5. Select the Advance panel, under the heading Account Code, insert an Account Code of your liking, then select Accept.
6. Then select Review apply.
For the above, each account code is reported on like a queue, so if each extension has it's own account code, it will report each outbound callers calls in a separate queue.
7. Then from the command line Edit the file /etc/asterisk/globals_custom.conf using jed or nano
sudo jed /etc/asterisk/globals_custom.conf
8. Then insert the following two lines:
[globals](+)
ASTOUT = TRUE
9. Select F10 and Save the /etc/asterisk/globals_custom.conf file and exit
10. Then from the command line edit the file /etc/asterisk/extensions_custom.conf using jed or nano.
sudo jed /etc/asterisk/extensions_custom.conf
11. Edit the macro-dialout-trunk-predial-hook to look like the below:
[macro-dialout-trunk-predial-hook]
exten => s,1,Set(pre_num=${CUT(OUT_${DIAL_TRUNK},$,1)})
exten => s,n,GotoIf($["${pre_num:0:9}" != "AMP:mISDN"]?notmisdn)
exten => s,n,Set(misdn=${CUT(pre_num,/,2)})
exten => s,n,misdn_check_l2l1(${misdn},5)
exten => s,n(notmisdn),NoOp()
exten => s,n,GotoIf($["${CDR(accountcode)}"==""]?notac)
exten => s,n,ResetCDR()
exten => s,n,Set(ACCOUNTCODE=${CDR(accountcode)})
exten => s,n,NoOp(The ASTOUT flag is equal to ${ASTOUT} and "${ASTOUT}" )
exten => s,n,GotoIf($["${ASTOUT}"=="TRUE"]?asternic)
exten => s,n,MacroExit
exten => s,n(asternic),Macro(dialout-trunk-predial-hook-asternic,)
exten => s,n(notac),MacroExit
Ensure that the macro-dialout-trunk-predial-hook looks exactly like the above. (see screenshot below)
12. Select F10 and Save the /etc/asterisk/extensions_custom.conf file and exit
The macro-dialout-trunk-predial-hook-asternic is defined in /etc/asterisk/extensions_override_freepbx.conf.
13. From the command line edit the file /etc/asterisk/extensions_overide_freepbx.conf using jed or nano.
sudo jed /etc/asterisk/extensions_overide_freepbx.conf
This file should contain nothing, and you will need to add the below script, by just coping it directly into file once you have jed or nano /etc/asterisk/extensions_overide_freepbx.conf and save it.
14. Select F10 and Save the /etc/asterisk/extensions_overide_freepbx.conf file and exit
15. From the command line reload the dialplan for asterisk to initiate above changes by:
sudo asterisk -rx "dialplan relaod"