Displaying 1 result from an estimated 1 matches for "querygsmgateway".
2006 Mar 29
1
OT: HOWTO: Query channel state on an Ateus Voice Blue GSM gateway
...to be no built-in mechanism to determine if the
gateway is full, so this script parses the output of "asterisk -rx sip show
channels XXX.XXX.XXX.XXX" to determine the number of channels currently in
use. Hope this helps someone.
Notes:
1. 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 &quo...