Hi Everyone,
When using Bayonne to dial out, must you specify the trunk that the call goes out on? ie: bayonne --control start 1 myScript
This sends the call out on trunk 1. What happens if trunk 1 already has a call on it? Can you some how place an outgoing call and have it just find an available trunk?
Thanks for any ideas.
Lachlan
I have the same problem.
Maybe, something like "bayonne --control start.group TrunkName myScript" could work ?
(as one can do in CCscript).
I haven't tested this yet.
Right now, I use the following script :
etat="`/usr/local/sbin/bayonne --status | /usr/bin/tail -1 | /bin/sed -e "s/ */ /g" | /bin/cut -d' ' -f4`"
nombre=`echo -n $etat | /usr/bin/wc -c`
for i in `/usr/bin/seq 1 $nombre`
do
if test "`echo -n $etat | /bin/cut -c${i}-${i}`" = "-"
then
echo "start `expr $i - 1` myScript" >> /var/run/bayonne/bayonne.ctrl
exit
fi
done
It works well at 99,99 %. Sometimes, a port get occupied between the "status" and the start...
Other suggestions are welcome...
FdR/ED
-- Etoile Di�se - www.etoilediese.com
_______________________________________________ Bayonne-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bayonne-devel
