bayonne-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bayonne-devel] Placing an outgoing call on an available trunk.


From: Etoile Dièse
Subject: Re: [Bayonne-devel] Placing an outgoing call on an available trunk.
Date: Tue, 03 May 2005 22:44:14 +0200
User-agent: Opera M2/7.54 (Win32, build 3865)

Le Tue, 03 May 2005 11:47:37 +1000, Lachlan Ross <address@hidden> a écrit:

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]