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
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
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
6 years 8 months ago - 6 years 8 months ago#11198by zveruga
I have change a file /etc/asterisk/gw/custom.sh to folowed version:
#!/bin/sh
echo ""> /etc/asterisk/extensions_routing.conf
echo "qqq">/etc/asterisk/test # I add this line for testing
but extensions_routing.conf still with content after reboot asterisk or reboot OS. I think file extensions_routing.conf recovered after execute custom.sh becouse file /etc/asterisk/test has created so script executed on startup.
When I run /etc/asterisk/gw/custom.sh in ssh consloe - it execute noraml: extensions_routing.conf is clean and /etc/asterisk/test created with content qqq.