keywords:pbx ip pbx voip gateway gsm gateway

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

Config files auto recovery

3 years 1 month ago #11190 by zveruga
Hi.
For my purposes I change extra-channels.conf file (in particular a context=gsm-1 change to context=mygsm-1)
But every time when gateway reboting file reseting to original and my changes is gone.
Can you give me a advice - how I can change extra-channels.conf permanently?
3 years 1 month ago #11191 by crystal.han
Hi,
You can customize dial rules extensions_custom.conf file.
1. add the following in /etc/asterisk/gw/custom.sh file: echo> /etc/asterisk/extensions_routing.conf
  asterisk -rx "core reload"




 2. Finally, execute the command: / my_tools / sync2flash


For more help,you can add my skype:crystalhan6.
The following user(s) said Thank You: zveruga
3 years 1 month ago #11192 by zveruga

1. add the following in /etc/asterisk/gw/custom.sh file: echo> /etc/asterisk/extensions_routing.conf

This will erase extensions_routing.conf and I will be able to create contexts [gsm-N] in extensions_custom.conf, am I right?

2. Finally, execute the command: / my_tools / sync2flash

What ectually do this command?
3 years 1 month ago #11193 by crystal.han
1.yes,you are right
2.This command is configured to prevent lost after restart
3 years 1 month ago #11195 by zveruga
I add echo> /etc/asterisk/extensions_routing.conf in /etc/asterisk/gw/custom.sh
but when I restart asterisk or restart OS nothing happnes - file /etc/asterisk/extensions_routing.conf not cleared.
I use last firmware version 2.3.1
# cat /etc/asterisk/gw/custom.sh
#!/bin/sh
echo> /etc/asterisk/extensions_routing.conf
3 years 1 month ago #11196 by crystal.han
1.Please define your own dialing rules in the configuration file /etc/asterisk/gw/custom.sh
2.A space echo and> in line, you need to execute the command / my_tools / sync2flash then reboot to take effect
Time to create page: 0.023 seconds
Powered by Kunena Forum