search for: group_count

Displaying 20 results from an estimated 76 matches for "group_count".

2005 Oct 16
1
GROUP and GROUP_COUNT
I have a macro and when I call it I have something like this: exten => s,1,NoOp(Group Count: ${GROUP_COUNT(MYGROUP)}) exten => s,n,Set(GROUP()=MYGROUP) ;Set Group exten => s,n,NoOp(Group List: ${GROUP_LIST()}) exten => s,n,NoOp(Group Count: ${GROUP_COUNT(MYGROUP)}) The GROUP_COUNT returns zero before the call to GROUP but also returns 0 after the call to GROUP. If I make 2 cal...
2010 Nov 05
1
GROUP_COUNT not counting correctly
Hello, this is a test to add a channel to multiple GROUPs. this is my dialplan : exten => s,n,NoOp(groepcount = ${GROUP_COUNT(40)}) exten => s,n,Set(GROUP(40)=40) exten => s,n,NoOp(This channel is member of : ${GROUP_LIST()}) exten => s,n,NoOp(groepcount = ${GROUP_COUNT(40)}) exten => s,n,NoOp(groepcount = ${GROUP_COUNT(40L)}) exten => s,n,Set(GROUP(40)=40L) exten => s,n,NoOp(This channel is member of :...
2008 Jun 13
1
AEL Help
...s.conf to AEL: [default] exten => _X.,1,Set(DID=${EXTEN:6}) exten => _X.,n,Goto(continue,1) exten => _1X.,1,Set(DID=${EXTEN:7}) exten => _1X.,n,Goto(continue,1) exten => continue,1,Noop(${DID}) exten => continue,n,Set(GROUP(IAX)=incoming) exten => continue,n,GotoIf($[${MATH(${GROUP_COUNT(incoming at IAX)}+${GROUP_COUNT(outgoing at IAX)},i)}>10]?fail) exten => continue,n,Goto(from-pri,${DID},1) exten => continue,n(fail),Set(DIALSTATUS=CHANUNAVAIL) I need the above to goto AEL, here's what I have so far: context default { _X. => { Set(DID=${E...
2006 Feb 02
0
agi/cagi call limit using group_count
Dear all, Anyone has experience using group and group_count to limit outgoing calls in AGI/CAGI? SET VARIABLE GROUP(${CALLERIDNUM}) OUTBOUND_GROUP EXEC Gotoif $[${GROUP_COUNT(OUTBOUND_GROUP@${CALLERIDNUM})} > 1]?BLOCK SET VARIABLE GROUP(${CALLERIDNUM}) OUTBOUND_GROUP But it doesn't work as it should. Tried in extensions.conf and it work...
2008 Jan 09
2
Busy notification with call limiting by GROUP_COUNT()
Hello all, I was wondering what will be the "proper" way to manage BUSY state notification in presence once call-limit, incominglimit and all those settings are gone. I'm using GROUP_COUNT for call limiting in Asterisk 1.4.13 but I have no idea how to set up the settings needed for BUSY notification to work as I want it to. Basically, I want to disable call waiting (this is done by the GROUP_COUNT() check in dialplan) but don't want to limit the number of outgoing calls per...
2007 Nov 22
5
Odd bug in Siemens C460IP ?
Hello, I think I have encountered an odd bug in Siemens C460 IP/dect handsets, which is a bit annoying, and I'm not (yet) sure how to get round it without lots of hacks. Basically, on all external incoming calls, we set: exten => s,n,SIPAddHeader(Alert-Info: Bellcore-dr2) This causes handsets (i.e. Cisco 7960 / Grandstream / aastra) to set a different ring cadence so to differentiate
2009 Dec 15
2
member (In use)
...nsions from queue. Set(GROUP()=${EXTEN}); // increment group count Set(CDR(accountcode)=ext${ext}); // for Phoenix Set(OUTBOUND_GROUP=${EXTEN}); // same for channel that will be created by Dial() NoOp(GROUP_COUNT of ${EXTEN}: ${GROUP_COUNT(${EXTEN})}); if ("${GROUP_COUNT(${EXTEN})}" = "1") // if not already in call { Set(DIALSTART=${EPOCH}); &Queue_log(${UNIQUEID},${PARTNER},${EXTEN},DIAL,${CALLERID(name)});...
2008 Oct 10
2
Configuring Bandwidth.com SIP trunks to prevent one-way audio
...k_1 = Dahdi/g1 trunk_2 = SIP/trunk_2 OUT_2 = SIP/bandwidth.com_outbound ;Took out the Set(GROUP()) because I moved it elsewhere to try and fix it added all the phones when Asterisk calls agents on a Queue. [frombandwidth] ;exten = _+1.,1,Set(GROUP()=SIPGROUP) exten = _+1.,1,NoOp(FromCount=${GROUP_COUNT(SIPGROUP)}) exten = _+1.,n,Set(DID=${EXTEN:2}) exten = _+1.,n,Set(CALLERID(num)=${CALLERID(num):2}) exten = _+1.,n,Goto(DID_trunk_2,${DID},1) ;What we use to dialout. Try SIP trunks first, then Dahdi trunk as backup. ;This is where it breaks. I tried to make it so there can't be more tha...
2010 Jun 05
1
Problem with GROUP()
Hello list, using asterisk 1.4.30 and trying GROUP() and GROUP_COUNT() for the first time... Having some troubles. This the dialplan (using a sub) : exten => s,n,Set(_custID=${custID}) exten => s,n,GROUP(${custID}) exten => s,n,NoOp(grouppcount = GROUP_COUNT(${custID})) exten => s,n,GoToIf($[ ${GROUP_COUNT(${custID})} > 2 ]?maxreached) The CLI sho...
2006 Mar 24
3
iax limit question
...effect, new callers hear a "call cannot be completed as dialed.." message instead of a busy signal. Maybe this is an issue with the provider, but I do not like this and want callers to hear a busy signal. [inbound] exten => 1234567,1,Set(GROUP()=limit) exten => 1234567,2,GotoIf($[${GROUP_COUNT()}>2]?103) exten => 1234567,3,Dial(Zap/5&Zap/6,25,tT) exten => 1234567,4,Voicemail,u110 exten => 1234567,5,hangup exten => 1234567,103,Busy exten => 1234576,104,hangup I also tried [inbound] exten => 1234567,1,Set(GROUP()=limit) exten => 1234567,2,GotoIf($[${GROUP_COUN...
2005 Sep 21
1
Does Asterisk know if the trunks are busy?
I am planning on dabbling with some VOIP providers. I was thinking of Teliax first. My thinking is that the first LD call would go to teliax and the second (etc.) calls would go out to the PSTN. I could then verify bandwidth and quality to decide when to add more trunks and to Internet connections. I have been doing some concept testing with FWD for toll free calls, but I am using 393 as a
2008 Aug 29
0
Asterisk cdr_mysql inexact values
...for them. I am using spriority inside that macro, so somehow cdr SOMETIMES report s as dst. If you can help me to arange my macro to remove that s from cdr or by any advice i would be gratefull. My macro: [macro-phonesystems] exten => s,1,NoOp(We are calling=${ARG1}) exten => s,2,GotoIf($[${GROUP_COUNT(ph0)}>=1]?100:3) exten => s,3,Set(GROUP()=ph0) exten => s,4,Dial(Sip/${ARG1:1}@ovh1,40,TwW) exten => s,5,NoOP(PH0) exten => s,100,GotoIf($[${GROUP_COUNT(ph1)}>=1]?200:101) exten => s,101,Set(GROUP()=ph1) exten => s,102,Dial(Sip/${ARG1:1}@ovh2,40,Tw) exten => s,103,NoOp(P...
2009 Feb 26
3
call-limit on a per destination basis
Hello, I use asterisk to to IAX2 trunking between London POP & Reunion Island pop. I would like to know if it's possible to do a kind of call-limit (i.e. restrict to XX) channels but on a per dialcode and / or destination basis. For example: [trunk] ; reunion proper, i want to send no more than 24 channels exten => _0262XXXXXX,1,Dial(IAX2/mytrunk/${EXTEN}) ; reunion mobile, i want
2009 Feb 27
0
[HOWTO] Priorize one destination over another on a link
...to modify to suit up your needs. ; Reunion Proper : use a conditional statement to dynamically limit number of channels exten => _0262XXXXXX,1,Set(GROUP()=Reunion) exten => _0262XXXXXX,n,NoOp(This channel is member of group: ${GROUP()}) exten => _0262XXXXXX,n,NoOp(Number of channels is ${GROUP_COUNT(Reunion)}) exten => _0262XXXXXX,n,GotoIf($[${GROUP_COUNT(Reunion)}>26]?500) exten => _0262XXXXXX,n,Dial(IAX2/dedibox-etang-sale/${EXTEN}) exten => _0262XXXXXX,500,NoOp(Total channels congested, retuning NOCAV) exten => _0262XXXXXX,501,Congestion() ; Reunion Mobile : always gets thro...
2013 Mar 12
0
Calls getting "stuck open"
...,Voicemail(${E}@rsnwo,b) same => n,Hangup() same => n(notloggedin),Set(LOGGED_OFF=1) same => n,Voicemail(${E}@rsnwo,u) same => n,Hangup() [blf-begincall] exten => s,1,Verbose("Beginning of Call - set BLF Custom Device state") same => n,Verbose(Updating: ${ARG1} Calls: ${GROUP_COUNT(${ARG1}@activecalls)} Status: ${ARG2}) same => n,ExecIf($[${ARG2} = RINGING]?ExecIf($[${GROUP_COUNT(${ARG1}@activecalls)} > 0]?Set(DEVICE_STATE(Custom:${ARG1})=RINGINUSE):Set(DEVICE_STATE(Custom:${ARG1})=RINGING)):Set(DEVICE_STATE(Custom:${ARG1})=INUSE)) same => n,Set(GROUP(activecalls)=${...
2015 Mar 20
0
Asterisk on OpenWrt (first time user)
...kigaUser remotesecret=MyEkigaPass fromuser=MyEkigaUser fromdomain=ekiga.net This is my dialplan: [LocalSets] exten => 101,1,Dial(SIP/MyPhoneMacAddress,30) exten => 500,1,Dial(SIP/ekiga_outbound/500,30) exten => 501,1,Set(GROUP(users)=CallsToProvider) same => n,NoOp(There are ${GROUP_COUNT(CallsToProvider)} calls for account CallsToProvider.) same => n,GotoIf($[${GROUP_COUNT(CallsToProvider)} > 1]?denied:continue) same => n(denied),NoOp(There are too many calls up already. Hang up.) same => n,HangUp() same => n(continue),NoOp(Continue processing call as normal...
2010 May 29
6
Best way to limit outgoing calls per trunk
Hi Guys, I am looking to use System() function along with some bash scripting to determine if a Trunk is being used during certain time of the day or not. Here is what I have in mind. Please guide me if you know a better way: exten => s,1,answer exten => s,n,System(/tmp/check.sh) check.sh: check EPOCH time => do an IF for certain times => Allow mutiple calls in certain times and
2008 Oct 02
1
Bug in ACL Plugin
Hello! Names of groups should be stored in backend memory pool. --- acl-backend.c.old 2008-10-02 11:43:05.000000000 +0400 +++ acl-backend.c 2008-10-02 11:43:48.000000000 +0400 @@ -62,7 +62,7 @@ backend->groups = p_new(backend->pool, const char *, group_count); for (i = 0; i < group_count; i++) - backend->groups[i] = groups[i]; + backend->groups[i] = p_strdup(backend->pool, groups[i]); qsort(backend->groups, group_count, sizeof(const char *),...
2007 Feb 27
1
Do I understand GROUPs correctly?
Hi, I was under the impression that Set(GROUP()=1234) incremented some value associated with 1234. So if I did the same thing twice, I'd get a group count of 2. Ex: exten => s,1,Set(GROUP()=1234) exten => s,n,Set(GROUP()=1234) exten => s,n,Noop(Used channels: ${GROUP_COUNT(1234}) I get this in the CLI: -- Executing Set("IAX2/test-2", "GROUP()=1234") in new stack -- Executing Set("IAX2/test-2", "GROUP()=1234") in new stack -- Executing NoOp("IAX2/test-2", "Used channels: 1") in new stack I'm trying to...
2009 Jan 18
0
ast_yyerror()
Hi All, I got this error: [Jan 18 09:56:58] WARNING[9617]: ast_expr2.fl:407 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected $end, expecting '-' or '!' or '(' or '<token>'; Input: 1 > ^ exten => s,3,GotoIf($[${GROUP_COUNT(${ARG1})} > ${LINELIMIT}]?101) exten => s,3,GotoIf($[${GROUP_COUNT(${TRUNKGROUP})} > ${LINELIMIT}]?101) exten => s,3,GotoIf($[${GROUP_COUNT(${TRUNKGROUP})} > ${LINELIMIT}]?101) not sure where that error is based on the conditions on my dial plan. TIA Regards, Ron