Re: [Asterisk-Users] SetGroup CheckGroup
C F wrote: On 6/1/05, Joseph [EMAIL PROTECTED] wrote: Is there updated spot on the wiki that shows how then new setgroup and checkgroup functions are to be done? For example, if we want to make sure a sip phone can only take one call from the queue, how would you check the current call count? Well try: http://www.voip-info.org/wiki-asterisk+cmd+setgroup http://www.voip-info.org/wiki-asterisk+cmd+checkgroup If you try to use the checkgroup function you get the following warning: Jun 2 06:04:45 WARNING[26654]: app_groupcount.c:131 group_check_exec: The CheckGroup application has been deprecated, please use a combination of the GotoIf application and the GROUP_COUNT() function. This is on cvs head. Does this look like the right replacement for cvs? exten = 11,1,NoOp(Testing) exten = 11,2,Set(GROUP()=${EXTEN}) exten = 11,3,GotoIf($[ ${GROUP_COUNT()} 1 ]?103) exten = 11,4,NoOp(At 4) exten = 11,5,Hangup exten = 11,103,NoOp(at 103) exten = 11,104,NoOp(at 104) I guess this would mean that if group_count() is greater than 1 meaning 1 or more calls are on this group, than go to 103? respectfully, Joseph ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[Asterisk-Users] SetGroup CheckGroup
Is there updated spot on the wiki that shows how then new setgroup and checkgroup functions are to be done? For example, if we want to make sure a sip phone can only take one call from the queue, how would you check the current call count? -- respectfully, Joseph === -= ** = ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] SetGroup CheckGroup
On 6/1/05, Joseph [EMAIL PROTECTED] wrote: Is there updated spot on the wiki that shows how then new setgroup and checkgroup functions are to be done? For example, if we want to make sure a sip phone can only take one call from the queue, how would you check the current call count? Well try: http://www.voip-info.org/wiki-asterisk+cmd+setgroup http://www.voip-info.org/wiki-asterisk+cmd+checkgroup ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Setgroup Checkgroup
I don't see why it bothers you what channel name it checks, you didn't mention if it works or not, so I'm asking you does it work? is the second call pushed down to priority 206? On 4/11/05, Ronald Wiplinger [EMAIL PROTECTED] wrote: I have some troubles to use Setgroup / Checkgroup!!! I setup a test (NoOP's are deleted): First caller should get first line, second caller should get second line, third caller should get busy and send an email. Note, that I used twice here to check the first line!!! [trunkint_A] exten = _90N.,104,SetGroup(sip-13); increase Group counter exten = _90N.,105,CheckGroup(1); check no more than 1 in this group exten = _90N.,106,NoOp(Line 106) exten = _90N.,107,Dial(SIP/${EXTEN:[EMAIL PROTECTED]) exten = _90N.,108,hangup ; exten = _90N.,206,SetGroup(sip-12) exten = _90N.,207,CheckGroup(1) exten = _90N.,208,NoOp(Line 208) exten = _90N.,209,Dial(SIP/${EXTEN:[EMAIL PROTECTED]) exten = _90N.,210,hangup ; exten = _90N.,308,SetGroup(sip-13) exten = _90N.,309,CheckGroup(1) exten = _90N.,310,NoOp(Line 310) exten = _90N.,311,Dial(SIP/${EXTEN:[EMAIL PROTECTED]) exten = _90N.,312,hangup ; exten = _90N.,410,Busy exten = _90N.,411,SYSTEM(mail -s 'VPBX all lines in use' [EMAIL PROTECTED]) I thought that 104 will set the Group counter sip-13 to 1 and will use line 107 for the dial command If another caller comes in that way, sip-13 would be 2 and because Checkgroup allows only 1, the Group coutner would be setback to 1 and it will follow the jump to 206 and sets the Group counter sip-12 to 1 A third call should now find Group counter sip-12 and sip-13 set to 1 and give a busy signal and send an email. HOWEVER, the log file show: -- Executing SetGroup(Local/[EMAIL PROTECTED],2, sip-13) in new stack -- Executing CheckGroup(Local/[EMAIL PROTECTED],2, 1) in new stack -- Executing NoOp(Local/[EMAIL PROTECTED],2, Line 106) in new stack -- Executing Dial(Local/[EMAIL PROTECTED],2, SIP/[EMAIL PROTECTED]) in new stack -- Called [EMAIL PROTECTED] so far so good! -- Executing SetGroup(SIP/615-92c3, sip-13) in new stack -- Executing CheckGroup(SIP/615-92c3, 1) in new stack -- Executing NoOp(SIP/615-92c3, Line 106) in new stack -- Executing Dial(SIP/615-92c3, SIP/[EMAIL PROTECTED]) in new stack -- Called [EMAIL PROTECTED] Ahh, it does not check Group counter sip-13, ... it checks SIP/615-92c3 and Local/[EMAIL PROTECTED],2 How can I make it that it checks exactly the Group countersip-13 bye Ronald ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Setgroup Checkgroup
On 4/11/05, Damian Funnell [EMAIL PROTECTED] wrote: I would try setting the group name to something shorter and less likely to conflict with any reserved system names (try something arbitrary like 'group1', 'group2', etc. Our experience with SetGroup certainly doesn't indicate that using two or more setgroups results in previous ones reverting to zero - we have a total of four SetGroups and these are set and checked extensively through our dial plan and they work fine. You wont see it unless you run into problems or use noop in your dial plan to show you what is being done. But by design setgroup just sets a variable for the current channel, it's the same as using SetVar(GROUP=whatever), as soon as issue setgroup again the first group is gone, consider the following: exten _.,1,SetGroup(test) exten _.,2,SetGroup(test2) exten _.,3,GetGroupCount(test) exten _.,4,Noop(${GROUPCOUNT}) exten _.,5,GetGroupCount(test2) exten _.,6,Noop(${GROUPCOUNT}) line 4 above will return 0, and line 6 will return 1. The reason is because you have overwritten the variable ${GROUP} at line 2. To Ronald, I think your problem has to do with the fact that you are using local channels, which are then mapped to sip channels, but I don't think you should have any operational problems, correct me if I'm wrong. Ronald Wiplinger wrote: Damian Funnell wrote: Hi Ronald, We use SetGroup/CheckGroup and your syntax appears to be fine (either that or ours is broken too, but it seems to work ok!) One question - what lines do you have in priority 1 - 3? We found that our dial plan would not work unless the first priority (for all extensions) was 1 and unless the priorities increased an integer at a time (not sure if this is by design or not, but was the only way it would work regardless). It starts correct with 1 (there are some NoOp and ENUM lookup, which is not interesting for that case) Also (and this is really grasping at straws), have you tried using different group names in case 'sip-1x' has any special meaning? These names can be anything that is meaningful and we use the format 'line28x' for our group names (which works fine). The real group name is sip- (my phone number) I have shorten it at the example. I read somewhere, if you have TWO or more Setgroup than all previous ones will be set to zero back!!! If that is the case than it makes not much sense to use it that way I do. As you can see in the CLI outputs, I copied, it uses a different name of the group variable. bye Ronald Good luck! Ronald Wiplinger wrote: I have some troubles to use Setgroup / Checkgroup!!! I setup a test (NoOP's are deleted): First caller should get first line, second caller should get second line, third caller should get busy and send an email. Note, that I used twice here to check the first line!!! [trunkint_A] exten = _90N.,104,SetGroup(sip-13); increase Group counter exten = _90N.,105,CheckGroup(1); check no more than 1 in this group exten = _90N.,106,NoOp(Line 106) exten = _90N.,107,Dial(SIP/${EXTEN:[EMAIL PROTECTED]) exten = _90N.,108,hangup ; exten = _90N.,206,SetGroup(sip-12) exten = _90N.,207,CheckGroup(1) exten = _90N.,208,NoOp(Line 208) exten = _90N.,209,Dial(SIP/${EXTEN:[EMAIL PROTECTED]) exten = _90N.,210,hangup ; exten = _90N.,308,SetGroup(sip-13) exten = _90N.,309,CheckGroup(1) exten = _90N.,310,NoOp(Line 310) exten = _90N.,311,Dial(SIP/${EXTEN:[EMAIL PROTECTED]) exten = _90N.,312,hangup ; exten = _90N.,410,Busy exten = _90N.,411,SYSTEM(mail -s 'VPBX all lines in use' [EMAIL PROTECTED]) I thought that 104 will set the Group counter sip-13 to 1 and will use line 107 for the dial command If another caller comes in that way, sip-13 would be 2 and because Checkgroup allows only 1, the Group coutner would be setback to 1 and it will follow the jump to 206 and sets the Group counter sip-12 to 1 A third call should now find Group counter sip-12 and sip-13 set to 1 and give a busy signal and send an email. HOWEVER, the log file show: -- Executing SetGroup(Local/[EMAIL PROTECTED],2, sip-13) in new stack -- Executing CheckGroup(Local/[EMAIL PROTECTED],2, 1) in new stack -- Executing NoOp(Local/[EMAIL PROTECTED],2, Line 106) in new stack -- Executing Dial(Local/[EMAIL PROTECTED],2, SIP/[EMAIL PROTECTED]) in new stack -- Called [EMAIL PROTECTED] so far so good! -- Executing SetGroup(SIP/615-92c3, sip-13) in new stack -- Executing CheckGroup(SIP/615-92c3, 1) in new stack -- Executing NoOp(SIP/615-92c3, Line 106) in new stack -- Executing Dial(SIP/615-92c3, SIP/[EMAIL PROTECTED]) in new stack -- Called [EMAIL PROTECTED] Ahh, it does not check Group counter sip-13, ... it checks SIP/615-92c3 and
[Asterisk-Users] Setgroup Checkgroup
I have some troubles to use Setgroup / Checkgroup!!! I setup a test (NoOP's are deleted): First caller should get first line, second caller should get second line, third caller should get busy and send an email. Note, that I used twice here to check the first line!!! [trunkint_A] exten = _90N.,104,SetGroup(sip-13); increase Group counter exten = _90N.,105,CheckGroup(1); check no more than 1 in this group exten = _90N.,106,NoOp(Line 106) exten = _90N.,107,Dial(SIP/${EXTEN:[EMAIL PROTECTED]) exten = _90N.,108,hangup ; exten = _90N.,206,SetGroup(sip-12) exten = _90N.,207,CheckGroup(1) exten = _90N.,208,NoOp(Line 208) exten = _90N.,209,Dial(SIP/${EXTEN:[EMAIL PROTECTED]) exten = _90N.,210,hangup ; exten = _90N.,308,SetGroup(sip-13) exten = _90N.,309,CheckGroup(1) exten = _90N.,310,NoOp(Line 310) exten = _90N.,311,Dial(SIP/${EXTEN:[EMAIL PROTECTED]) exten = _90N.,312,hangup ; exten = _90N.,410,Busy exten = _90N.,411,SYSTEM(mail -s 'VPBX all lines in use' [EMAIL PROTECTED]) I thought that 104 will set the Group counter sip-13 to 1 and will use line 107 for the dial command If another caller comes in that way, sip-13 would be 2 and because Checkgroup allows only 1, the Group coutner would be setback to 1 and it will follow the jump to 206 and sets the Group counter sip-12 to 1 A third call should now find Group counter sip-12 and sip-13 set to 1 and give a busy signal and send an email. HOWEVER, the log file show: -- Executing SetGroup(Local/[EMAIL PROTECTED],2, sip-13) in new stack -- Executing CheckGroup(Local/[EMAIL PROTECTED],2, 1) in new stack -- Executing NoOp(Local/[EMAIL PROTECTED],2, Line 106) in new stack -- Executing Dial(Local/[EMAIL PROTECTED],2, SIP/[EMAIL PROTECTED]) in new stack -- Called [EMAIL PROTECTED] so far so good! -- Executing SetGroup(SIP/615-92c3, sip-13) in new stack -- Executing CheckGroup(SIP/615-92c3, 1) in new stack -- Executing NoOp(SIP/615-92c3, Line 106) in new stack -- Executing Dial(SIP/615-92c3, SIP/[EMAIL PROTECTED]) in new stack -- Called [EMAIL PROTECTED] Ahh, it does not check Group counter sip-13, ... it checks SIP/615-92c3 and Local/[EMAIL PROTECTED],2 How can I make it that it checks exactly the Group countersip-13 bye Ronald ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Setgroup Checkgroup
Hi Ronald, We use SetGroup/CheckGroup and your syntax appears to be fine (either that or ours is broken too, but it seems to work ok!) One question - what lines do you have in priority 1 - 3? We found that our dial plan would not work unless the first priority (for all extensions) was 1 and unless the priorities increased an integer at a time (not sure if this is by design or not, but was the only way it would work regardless). Also (and this is really grasping at straws), have you tried using different group names in case 'sip-1x' has any special meaning? These names can be anything that is meaningful and we use the format 'line28x' for our group names (which works fine). Good luck! Ronald Wiplinger wrote: I have some troubles to use Setgroup / Checkgroup!!! I setup a test (NoOP's are deleted): First caller should get first line, second caller should get second line, third caller should get busy and send an email. Note, that I used twice here to check the first line!!! [trunkint_A] exten = _90N.,104,SetGroup(sip-13); increase Group counter exten = _90N.,105,CheckGroup(1); check no more than 1 in this group exten = _90N.,106,NoOp(Line 106) exten = _90N.,107,Dial(SIP/${EXTEN:[EMAIL PROTECTED]) exten = _90N.,108,hangup ; exten = _90N.,206,SetGroup(sip-12) exten = _90N.,207,CheckGroup(1) exten = _90N.,208,NoOp(Line 208) exten = _90N.,209,Dial(SIP/${EXTEN:[EMAIL PROTECTED]) exten = _90N.,210,hangup ; exten = _90N.,308,SetGroup(sip-13) exten = _90N.,309,CheckGroup(1) exten = _90N.,310,NoOp(Line 310) exten = _90N.,311,Dial(SIP/${EXTEN:[EMAIL PROTECTED]) exten = _90N.,312,hangup ; exten = _90N.,410,Busy exten = _90N.,411,SYSTEM(mail -s 'VPBX all lines in use' [EMAIL PROTECTED]) I thought that 104 will set the Group counter sip-13 to 1 and will use line 107 for the dial command If another caller comes in that way, sip-13 would be 2 and because Checkgroup allows only 1, the Group coutner would be setback to 1 and it will follow the jump to 206 and sets the Group counter sip-12 to 1 A third call should now find Group counter sip-12 and sip-13 set to 1 and give a busy signal and send an email. HOWEVER, the log file show: -- Executing SetGroup(Local/[EMAIL PROTECTED],2, sip-13) in new stack -- Executing CheckGroup(Local/[EMAIL PROTECTED],2, 1) in new stack -- Executing NoOp(Local/[EMAIL PROTECTED],2, Line 106) in new stack -- Executing Dial(Local/[EMAIL PROTECTED],2, SIP/[EMAIL PROTECTED]) in new stack -- Called [EMAIL PROTECTED] so far so good! -- Executing SetGroup(SIP/615-92c3, sip-13) in new stack -- Executing CheckGroup(SIP/615-92c3, 1) in new stack -- Executing NoOp(SIP/615-92c3, Line 106) in new stack -- Executing Dial(SIP/615-92c3, SIP/[EMAIL PROTECTED]) in new stack -- Called [EMAIL PROTECTED] Ahh, it does not check Group counter sip-13, ... it checks SIP/615-92c3 and Local/[EMAIL PROTECTED],2 How can I make it that it checks exactly the Group countersip-13 bye Ronald ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Setgroup Checkgroup
Damian Funnell wrote: Hi Ronald, We use SetGroup/CheckGroup and your syntax appears to be fine (either that or ours is broken too, but it seems to work ok!) One question - what lines do you have in priority 1 - 3? We found that our dial plan would not work unless the first priority (for all extensions) was 1 and unless the priorities increased an integer at a time (not sure if this is by design or not, but was the only way it would work regardless). It starts correct with 1 (there are some NoOp and ENUM lookup, which is not interesting for that case) Also (and this is really grasping at straws), have you tried using different group names in case 'sip-1x' has any special meaning? These names can be anything that is meaningful and we use the format 'line28x' for our group names (which works fine). The real group name is sip- (my phone number) I have shorten it at the example. I read somewhere, if you have TWO or more Setgroup than all previous ones will be set to zero back!!! If that is the case than it makes not much sense to use it that way I do. As you can see in the CLI outputs, I copied, it uses a different name of the group variable. bye Ronald Good luck! Ronald Wiplinger wrote: I have some troubles to use Setgroup / Checkgroup!!! I setup a test (NoOP's are deleted): First caller should get first line, second caller should get second line, third caller should get busy and send an email. Note, that I used twice here to check the first line!!! [trunkint_A] exten = _90N.,104,SetGroup(sip-13); increase Group counter exten = _90N.,105,CheckGroup(1); check no more than 1 in this group exten = _90N.,106,NoOp(Line 106) exten = _90N.,107,Dial(SIP/${EXTEN:[EMAIL PROTECTED]) exten = _90N.,108,hangup ; exten = _90N.,206,SetGroup(sip-12) exten = _90N.,207,CheckGroup(1) exten = _90N.,208,NoOp(Line 208) exten = _90N.,209,Dial(SIP/${EXTEN:[EMAIL PROTECTED]) exten = _90N.,210,hangup ; exten = _90N.,308,SetGroup(sip-13) exten = _90N.,309,CheckGroup(1) exten = _90N.,310,NoOp(Line 310) exten = _90N.,311,Dial(SIP/${EXTEN:[EMAIL PROTECTED]) exten = _90N.,312,hangup ; exten = _90N.,410,Busy exten = _90N.,411,SYSTEM(mail -s 'VPBX all lines in use' [EMAIL PROTECTED]) I thought that 104 will set the Group counter sip-13 to 1 and will use line 107 for the dial command If another caller comes in that way, sip-13 would be 2 and because Checkgroup allows only 1, the Group coutner would be setback to 1 and it will follow the jump to 206 and sets the Group counter sip-12 to 1 A third call should now find Group counter sip-12 and sip-13 set to 1 and give a busy signal and send an email. HOWEVER, the log file show: -- Executing SetGroup(Local/[EMAIL PROTECTED],2, sip-13) in new stack -- Executing CheckGroup(Local/[EMAIL PROTECTED],2, 1) in new stack -- Executing NoOp(Local/[EMAIL PROTECTED],2, Line 106) in new stack -- Executing Dial(Local/[EMAIL PROTECTED],2, SIP/[EMAIL PROTECTED]) in new stack -- Called [EMAIL PROTECTED] so far so good! -- Executing SetGroup(SIP/615-92c3, sip-13) in new stack -- Executing CheckGroup(SIP/615-92c3, 1) in new stack -- Executing NoOp(SIP/615-92c3, Line 106) in new stack -- Executing Dial(SIP/615-92c3, SIP/[EMAIL PROTECTED]) in new stack -- Called [EMAIL PROTECTED] Ahh, it does not check Group counter sip-13, ... it checks SIP/615-92c3 and Local/[EMAIL PROTECTED],2 How can I make it that it checks exactly the Group countersip-13 bye Ronald ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- Ronald Wiplinger (CEO of ELMIT) http://www.elmit.com+886 (0) 939--77-55-16 or FWD 511208 - I'm a SpamCon Foundation Member, #694, Verify it at http://www.spamcon.org PS: Spam prevention! Our system is protected with a spam prevention program. If you send us an e-mail, our system will send you a confirmation message back. Just reply to this confirmation message please. After receiving this confirmation message, our system will send the hold message (one) and all future messages (after the received confirmation message) to me without asking you again. ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Setgroup Checkgroup
I would try setting the group name to something shorter and less likely to conflict with any reserved system names (try something arbitrary like 'group1', 'group2', etc. Our experience with SetGroup certainly doesn't indicate that using two or more setgroups results in previous ones reverting to zero - we have a total of four SetGroups and these are set and checked extensively through our dial plan and they work fine. Ronald Wiplinger wrote: Damian Funnell wrote: Hi Ronald, We use SetGroup/CheckGroup and your syntax appears to be fine (either that or ours is broken too, but it seems to work ok!) One question - what lines do you have in priority 1 - 3? We found that our dial plan would not work unless the first priority (for all extensions) was 1 and unless the priorities increased an integer at a time (not sure if this is by design or not, but was the only way it would work regardless). It starts correct with 1 (there are some NoOp and ENUM lookup, which is not interesting for that case) Also (and this is really grasping at straws), have you tried using different group names in case 'sip-1x' has any special meaning? These names can be anything that is meaningful and we use the format 'line28x' for our group names (which works fine). The real group name is sip- (my phone number) I have shorten it at the example. I read somewhere, if you have TWO or more Setgroup than all previous ones will be set to zero back!!! If that is the case than it makes not much sense to use it that way I do. As you can see in the CLI outputs, I copied, it uses a different name of the group variable. bye Ronald Good luck! Ronald Wiplinger wrote: I have some troubles to use Setgroup / Checkgroup!!! I setup a test (NoOP's are deleted): First caller should get first line, second caller should get second line, third caller should get busy and send an email. Note, that I used twice here to check the first line!!! [trunkint_A] exten = _90N.,104,SetGroup(sip-13); increase Group counter exten = _90N.,105,CheckGroup(1); check no more than 1 in this group exten = _90N.,106,NoOp(Line 106) exten = _90N.,107,Dial(SIP/${EXTEN:[EMAIL PROTECTED]) exten = _90N.,108,hangup ; exten = _90N.,206,SetGroup(sip-12) exten = _90N.,207,CheckGroup(1) exten = _90N.,208,NoOp(Line 208) exten = _90N.,209,Dial(SIP/${EXTEN:[EMAIL PROTECTED]) exten = _90N.,210,hangup ; exten = _90N.,308,SetGroup(sip-13) exten = _90N.,309,CheckGroup(1) exten = _90N.,310,NoOp(Line 310) exten = _90N.,311,Dial(SIP/${EXTEN:[EMAIL PROTECTED]) exten = _90N.,312,hangup ; exten = _90N.,410,Busy exten = _90N.,411,SYSTEM(mail -s 'VPBX all lines in use' [EMAIL PROTECTED]) I thought that 104 will set the Group counter sip-13 to 1 and will use line 107 for the dial command If another caller comes in that way, sip-13 would be 2 and because Checkgroup allows only 1, the Group coutner would be setback to 1 and it will follow the jump to 206 and sets the Group counter sip-12 to 1 A third call should now find Group counter sip-12 and sip-13 set to 1 and give a busy signal and send an email. HOWEVER, the log file show: -- Executing SetGroup(Local/[EMAIL PROTECTED],2, sip-13) in new stack -- Executing CheckGroup(Local/[EMAIL PROTECTED],2, 1) in new stack -- Executing NoOp(Local/[EMAIL PROTECTED],2, Line 106) in new stack -- Executing Dial(Local/[EMAIL PROTECTED],2, SIP/[EMAIL PROTECTED]) in new stack -- Called [EMAIL PROTECTED] so far so good! -- Executing SetGroup(SIP/615-92c3, sip-13) in new stack -- Executing CheckGroup(SIP/615-92c3, 1) in new stack -- Executing NoOp(SIP/615-92c3, Line 106) in new stack -- Executing Dial(SIP/615-92c3, SIP/[EMAIL PROTECTED]) in new stack -- Called [EMAIL PROTECTED] Ahh, it does not check Group counter sip-13, ... it checks SIP/615-92c3 and Local/[EMAIL PROTECTED],2 How can I make it that it checks exactly the Group counter sip-13 bye Ronald ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[Asterisk-Users] SetGroup, CheckGroup
I have a rather long dial plan, but it includes support for call waiting. However, the setgroup checkgroup commands don't seem to be working. Can anyone help on this one? Excerpts are below. First exten-vm is dialed and then dial-new. As I understand, priority 1 increments the active channels for the caller and then in dial-new priority 8 increments for Arg3, or the Callee extension. Problem is, that priority 9 always goes on to 10 (i.e. group never is on-the-phone. Am I missing something? When ext201 dials 202, CLI shows: -- Executing Macro(SIP/201-8571, exten-vm|202|202) in new stack -- Executing SetGroup(SIP/201-8571, 201) in new stack -- Executing SetMusicOnHold(SIP/201-8571, default) in new stack -- Executing SetVar(SIP/201-8571, FROMCONTEXT=exten-vm) in new stack -- Executing GotoIf(SIP/201-8571, 0?9:5) in new stack -- Goto (macro-exten-vm,s,5) -- Executing Macro(SIP/201-8571, dial-new|15|tr|202|202) in new stack -- Executing DBget(SIP/201-8571, CallForwardIm=CF/202) in new stack -- DBget: varname=CallForwardIm, family=CF, key=202 -- DBget: Value not found in database. -- Executing Goto(SIP/201-8571, s|4) in new stack -- Goto (macro-dial-new,s,4) -- Executing DBget(SIP/201-8571, DNDStatus=DND/202) in new stack -- DBget: varname=DNDStatus, family=DND, key=202 -- DBget: Value not found in database. -- Executing Goto(SIP/201-8571, s|8) in new stack -- Goto (macro-dial-new,s,8) -- Executing SetGroup(SIP/201-8571, 202) in new stack I'll be most grateful for any assistance. Thanks Mike [macro-exten-vm] exten = s,1,SetGroup(${CALLERIDNUM}) exten = s,2,SetMusicOnHold(default) exten = s,3,Setvar(FROMCONTEXT=exten-vm) exten = s,4,GotoIf($[${CALLERIDNUM} = ${ARG2}]?9:5) ;check self-voicemail exten = s,5,Macro(dial-new,${RINGTIMER},${DIAL_OPTIONS},${ARG2},${ARG1}) [macro-dial-new] ;now check if destination is on a call exten = s,8,SetGroup(${ARG3}) exten = s,9,CheckGroup(1) ;go to 110 then 25 if on the phone (CW handler), go to 10 if not on the phone exten = s,110,Goto(s,25) ;line is clear, begin dial sequence exten = s,10,Setvar(ChanType=${E${ARG3}}) ;Get the channel type exten = s,11,Dial(${ChanType}/${ARG3},${ARG1},${ARG2}) Mike Sander -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.7.3 - Release Date: 24/01/2005 ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users