Please make a script the name should be "custom_cdr", and in the directly /etc/asterisk/gw/
Notice: When you have a call or SMS Coming in/out,the gateway will auto run a script [align=center][font=宋体]/my_tools/process_cdr or /my_tools/process_sms
And the it will transfer 7 values to the script name of custom_cdr.The value is Caller ID ;Callee ID; From; To;Start time;Duration;Result.
You can deal with the values according to your needs.
For example,i test it follows:
# cd /etc/asterisk/gw
# vi custom_cdr
/usr/bin/logger -t CDR -p local3.info "$1|$2|$3|$4|$5|$6|$7"
Notic: the custom.sh will aoto run when your gateway turn on.
On the other hand,now the gateway can allow the custom edit your own dialplan.About how to do it i have wrote a manual for you.
Please download it from attachment.
If you have any questions please let me know,my contact info be shown as below: