Displaying 1 result from an estimated 1 matches for "querygamgateway".
2006 Mar 29
1
OT: HOWTO: Query channel state on an Ateus Voice Blue GSM gateway
...Execute from /var/lib/asterisk/agi-bin as 'querygsmgateway.agi'
2. Replace .201 with the last dotted quad of your gateway's IP address (in
this example, 192.168.1.201 is the IP of the gateway)
3. Assumes that the variable ${DIALSTRING} is set with the NAMA number of
the mobile to call
querygamgateway.agi:
#!/bin/bash
GSMCHANNEL=`asterisk -rx "SIP SHOW CHANNELS" | grep -a -A0 ".201"`
CURRENTCHANNEL1=${GSMCHANNEL:55:7}
CURRENTCHANNEL2=${GSMCHANNEL:118:7}
CURRENTCHANNEL3=${GSMCHANNEL:181:7}
CURRENTCHANNEL4=${GSMCHANNEL:244:7}
TOTALCHANNELS=0
if [ "${GSMCHANNEL:55:7}&q...