Displaying 2 results from an estimated 2 matches for "currentchannel3".
Did you mean:
currentchannel1
2006 Mar 29
1
OT: HOWTO: Query channel state on an Ateus Voice Blue GSM gateway
...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}" != "" ]
then
if [ $CURRENTCHANNEL1 = "ulaw" ]
then
TOTALCHANNELS=$((TOTALCHANNELS+1))
fi
fi
if [ "${GSMCHANNEL:118:7}" != "" ]
then
if [ $CURRENTC...
2006 Mar 31
4
How to check if a phone / line is used?
In the past I used SetGroup and CheckGroup to figure out if my allowed
providers lines are all used or not.
Since most of my provider have given me a single line anyway, I wonder
if there is a way to check if this (provider) line is taken already.
How can I do that?
Same is with the phone. How can I see in CLI if a phone is now in use or
not?
"Sip show peers" shows me just if it is