[Asterisk-Users] SET & CHECK group
Mark Halverson
mark at opbx.com
Sun Apr 3 10:20:35 MST 2005
I attempted to use the incominglimit and outgoinglimit in iax.conf and it
doesn’t seem to work anylonger, running CVS-HEAD 3/16/05
So I tried using the SetGroup but, in the dialplan I am already using Get
and Check Group. I tried it with different variables and it still doesn't
work....any ideas?
Basically I want each IAX Client coming in to be limited to a single call -
I then only want 1 call on each outbound SIP channel/account.
I believe the problem to be with (${CALLERIDNUM}) as it is setting the group
to: CALLERID/something - that something is always changing with each call
so the group using calleridnum never exceeds 1 and all calls go through.
Example:
exten => _1NXXNXXXXXX,1,SetGroup(${CALLERIDNUM})
exten => _1NXXNXXXXXX,2,Checkgroup(1)
exten => _1NXXNXXXXXX,3,SetGroup(CH1)
exten => _1NXXNXXXXXX,4,CheckGroup(1)
exten => _1NXXNXXXXXX,5,Dial(SIP/${EXTEN}@CH1)
exten => _1NXXNXXXXXX,103,background(busy)
exten => _1NXXNXXXXXX,104,hangup
exten => _1NXXNXXXXXX,105,SetGroup(CH2)
exten => _1NXXNXXXXXX,106,CheckGroup(1)
exten => _1NXXNXXXXXX,107,Dial(SIP/${EXTEN}@CH2)
exten => _1NXXNXXXXXX,207,Dial(IAX2/${EXTEN}@NUFONE)
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.1 - Release Date: 4/1/2005
More information about the asterisk-users
mailing list