[Asterisk-Users] Limiting outbound calls
Ron Wellsted
ron at wellsted.org.uk
Tue May 10 12:24:15 MST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Adrian Avramescu wrote:
> My VoIP provider allows me to have more than one call outbound on the
> same line simultaneously, for some reason. I am pretty sure that they
> do not want this to happen, so I'd like instead to limit each line to
> one call.
> I do not want the users to have to dial another prefix to go out on
> another line. Is there any way to add multiple accounts for my _9.
> extension and have Asterisk automatically find one that is not being
> used?
> I know * keeps track of which lines are in use, so I do not think it
> should be hard to do. I have looked at SetGroup and CheckGroup(1)
> commands but I can't figure out how to have it try the next line then
> the next and so on in case of failure.
try:
exten => _9.,1,SetGroup(voip1)
exten => _9.,2,CheckGroup(1)
exten => _9.,3,Dial(${VOIP1}...)
exten => _9.,4,Hangup()
exten => _9.,103,NoOp()
exten => _9.,104,SetGroup(voip2)
exten => _9.,105,Dial(${VOIP2}...)
exten => _9.,106,Hangup()
exten => _9.,205,NoOp()
exten => _9.,206,Playtones(congestion)
exten => _9.,207,Congestion()
exten => _9.,208,Hangup()
HTH
- --
Ron Wellsted
http://www.wellsted.org.uk
ron at wellsted.org.uk
FWD:519961 Gossiptel:9309811
N 52.567623, W 2.137621
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iQEVAwUBQoEKX0tP/KMNOfRbAQJS8Af/QiZa4w+LflEnDb8jmXh6P1O4vlHem4lH
7p3aI5WkE02lLXxIR+B+dRFTdCKoe6BYreDb36JP7FPpmEVhn/JNxFQZl884VX8D
78Zyjqaj08wr0nsTOwI3ceXtTpt/cqmmGW82HujWp6yMyTA1o25f4tq3Dv7EytEY
nffhcpZ59XSKfKsT4xVgSx836O6KgkLiAMMlOi7Q9HwX4cyLOxSOyyjLClQE0QsE
8bFZP6m5BdoL1qn8eZInpQuuOUpopnB4QAD+PvfVVwwmii1YlJCVXu480nX8aiK5
rDh7U6OvIs7Vh/e1unMOneIuUd0lkOEV49sRQLWZuguX3x/fSuCZGA==
=X/sm
-----END PGP SIGNATURE-----
More information about the asterisk-users
mailing list