keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Questions about VS-GW2120/GW1600/GW1202 and WGW1002G GSM Series VoIP Gateway

custom.sh not found

6 years 10 months ago #11576 by radiostudent
hello,
i am owner of a gsm gateway

Model Name: VS-GGU-E2M0400
Modem Description: 850/900/1800/1900MHz@GSM
Software Version: 2.3.2
Hardware Version: Date 2012-11-09 FPGA 11 Hardware 00
Slot Number: 1
Storage Usage: 1.7M/62.0M (3%)
Memory Usage:
79.5708 % Memory Clean
Build Time: 2016-12-21 17:15:24


i was trying to set a callback function after following your instructions on a pdf i found, it works, but after every reboot thinks stop working. i tried to fix it by adding the custom dialplan in the custom.sh, but after many trial and error, custom.sh seems not to be loading on startup.
before rebooting, my custom.sh on /etc/asterisk/gw/ looks like this:

#!/bin/bash

chmod -R 0777 /etc/asterisk/agi-bin/
echo > /etc/asterisk/extensions_routing.conf
asterisk -rx "core reload"

but nothing is happening. then i manually restarted the system, with:
root@Openvox-Wireless-Gateway:/etc# /etc/start
and i get this error when it comes to custom.sh

root@Openvox-Wireless-Gateway:/etc# /etc/start
.........................................
.........Wireless Gateway Start..........
.........................................
Version: 2.3.2
mount: mounting /dev/mtdblock8 on /data failed
/etc
cfg version support


insmod: cannot insert '/lib/modules/2.6.33.5/led_key.ko': File exists (-1): F exists
Starting csmencaps
insmod: cannot insert '/lib/modules/2.6.33.5/csmencaps.ko': File exists (-1):le exists
LAN:10.55.3.2
ifconfig: SIOCSIFFLAGS: Cannot assign requested address
mknod: /dev/led_key: File exists
NTPSVR is ,pool.ntp.org,64.236.96.53,time.nist.gov
sync ntp time sucess
Sun Jun 18 21:39:55 2017
return flag :0

manager.conf is OK

insmod: cannot insert '/lib/modules/2.6.33.5/dahdi.ko': File exists (-1): Filxists
Start get module type...
open file fail: /dev/dahdi/1, Device or resource busy
insert module type to redis......
module type is m35
[info]Connect to 127.0.0.1:6379 success.
Asterisk already running on /var/run/asterisk.ctl. Use 'asterisk -r' to connect.

get redis client ok

admin:Openvox-Wireless-Gateway:dbd6bc1505166e4c3ee67285af6cf8bb
Syntax OK
2017-06-18 21:40:12: (network.c.379) can't bind to port: 80 Address already in use
/etc/start: /etc/start: 344: /etc/asterisk/gw/custom.sh: not found
vm.oom_kill_allocating_task = 1
vm.oom_dump_tasks = 1


Dialplan reloaded.
.........................................
...........Wireless Gateway End..........
.........................................

what is wrong? any advice?
thanks
6 years 10 months ago #11578 by heizi.lv
Hi,

Could you give me remote access for a check?I will help you to find the problem.

You can add me as your skype friend for a convenient contact.My skype: This email address is being protected from spambots. You need JavaScript enabled to view it.
Time to create page: 0.036 seconds
Powered by Kunena Forum