keywords: ip pbx voip gateway gsm gateway

× Questions about VS-GW2120/GW1600/GW1202 and WGW1002G GSM Series VoIP Gateway

VS-GW1200-4G (sms and cdr log.)

7 years 10 months ago #9349 by [email protected]
GSM Gateway VS-GW1200-4G, How to change sms and cdr store from sqlite to mysql (another machine), Or I can edit dialplan in VS-GW1200-4G?.

thank you.
khan
7 years 10 months ago #9350 by rick.zhu
Hi,
Sorry to reply you delay.

Now the gateway can support deal with the CDR according to your needs.

Step 1:

Please upgrade your gateway to new version(upper v1.1.5).The link be shown as below:

downloads.openvox.cn/pub/firmwares/GSM%2...ay/wg400-current.img

Step 2:

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 [/font][/align]
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:
Step 1:
# cd /etc/asterisk/gw
# vi custom_cdr
#!/bin/sh
/usr/bin/logger -t CDR -p local3.info "$1|$2|$3|$4|$5|$6|$7"

Step 2:
# vi remotelogger
#!/bin/sh
REMOTE_LOGGING_SERIVCE=172.16.2.209
PORT=10514syslogd -R $REMOTE_LOGGING_SERIVCE:$PORT -m 0 -b 2 -L -O /tmp/CDRlog


Step 3:
#vi custom.sh
#!/bin/sh
ifconfig eth0:1 192.168.31.38 netmask 255.255.255.0 up > /dev/null 2>&1
/etc/asterisk/gw/remotelogger


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:
Skype: rick.zhu3
Gtalk: This email address is being protected from spambots. You need JavaScript enabled to view it.
e-mail: This email address is being protected from spambots. You need JavaScript enabled to view it.

Best Regards.
Attachments:
The following user(s) said Thank You: [email protected]
Time to create page: 0.031 seconds
Powered by Kunena Forum