RE: [asterisk-users] Do I understand GROUPs correctly?
Thank you, that is exactly what I needed. Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joshua Colp Sent: Tuesday, February 27, 2007 11:35 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [asterisk-users] Do I understand GROUPs correctly? Greetings Mike, On Tue, 2007-02-27 at 11:28 -0500, Mike wrote: Ok, that sort of makes sense. But what I am doing is passing off a call into my Asterisk system to a cell phone. I want this to count as 2 channels. So, I am doing, in effect, this kind of algo: Answer the call Set(Group) to increment channel to 1 Play IVR, go into menus, etc. Eventually go into a Set(group) again to increment channel before dialing a cell phone using a dial(cellphone#) cmd. If that doesn't work, how do I accomplish the same kind of thing elegantly? From show application Dial: If the OUTBOUND_GROUP variable is set, all peer channels created by this application will be put into that group (as in Set(GROUP()=...). This would make it so that your outgoing channel would be in the group and the count would be 2. Is this what you are looking for? Joshua Colp Software Developer Digium, Inc. ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Do I understand GROUPs correctly?
Mike wrote: 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}) If this is a direct copy/paste then your error is in line 3. You have a } positioned incorrectly. My example below: exten = _35XX,1,Set(GROUP()=Max_Calls) exten = _35XX,n,NoOP(Active Calls: ${GROUP_COUNT(Max_Calls)}) Doug -- Ben Franklin quote: Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety. ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [asterisk-users] Do I understand GROUPs correctly?
Actually it wasnt a straight paste. The straight cut and paste is: exten = s,1,Set(GROUP()=${VAR}) exten = s,n,Set(GROUP()=${VAR}) exten = s,n,Noop(Used channels: ${GROUP_COUNT(${VAR})}) I believe that's good. But The group count is not 2, but 1. I thought I'd be 2 since I called Set(group) twice. Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Doug Lytle Sent: Tuesday, February 27, 2007 10:21 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Do I understand GROUPs correctly? Mike wrote: 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}) If this is a direct copy/paste then your error is in line 3. You have a } positioned incorrectly. My example below: exten = _35XX,1,Set(GROUP()=Max_Calls) exten = _35XX,n,NoOP(Active Calls: ${GROUP_COUNT(Max_Calls)}) Doug -- Ben Franklin quote: Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety. ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Do I understand GROUPs correctly?
Doug Lytle wrote: Mike wrote: 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}) If this is a direct copy/paste then your error is in line 3. You have a } positioned incorrectly. My example below: exten = _35XX,1,Set(GROUP()=Max_Calls) exten = _35XX,n,NoOP(Active Calls: ${GROUP_COUNT(Max_Calls)}) Apart from that you assign the group 1234 twice to the *same* channel. So GROUP_COUNT(1234) correctly reports only *1* channel to be in that group. Regards, Philipp -- amooma GmbH - Bachstr. 126 - 56566 Neuwied - http://www.amooma.de Let's use IT to solve problems and not to create new ones. Asterisk - http://www.das-asterisk-buch.de Geschäftsführer: Stefan Wintermeyer Handelsregister: Neuwied B 14998 ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Do I understand GROUPs correctly?
Mike wrote: Actually it wasn’t a straight paste. The straight cut and paste is: exten = s,1,Set(GROUP()=${VAR}) exten = s,n,Set(GROUP()=${VAR}) exten = s,n,Noop(Used channels: ${GROUP_COUNT(${VAR})}) I've never tried using variables with GROUP(), but am guessing it's permitted. Try adding another Set and see if the count moves to 2. It may be starting at 0? Doug -- Ben Franklin quote: Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety. ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Do I understand GROUPs correctly?
Philipp Kempgen wrote: Doug Lytle wrote: Apart from that you assign the group 1234 twice to the *same* channel. So GROUP_COUNT(1234) correctly reports only *1* That would be it! Doug -- Ben Franklin quote: Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety. ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [asterisk-users] Do I understand GROUPs correctly?
Ok, that sort of makes sense. But what I am doing is passing off a call into my Asterisk system to a cell phone. I want this to count as 2 channels. So, I am doing, in effect, this kind of algo: Answer the call Set(Group) to increment channel to 1 Play IVR, go into menus, etc. Eventually go into a Set(group) again to increment channel before dialing a cell phone using a dial(cellphone#) cmd. If that doesn't work, how do I accomplish the same kind of thing elegantly? Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Philipp Kempgen Sent: Tuesday, February 27, 2007 10:57 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Do I understand GROUPs correctly? Doug Lytle wrote: Mike wrote: 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}) If this is a direct copy/paste then your error is in line 3. You have a } positioned incorrectly. My example below: exten = _35XX,1,Set(GROUP()=Max_Calls) exten = _35XX,n,NoOP(Active Calls: ${GROUP_COUNT(Max_Calls)}) Apart from that you assign the group 1234 twice to the *same* channel. So GROUP_COUNT(1234) correctly reports only *1* channel to be in that group. Regards, Philipp -- amooma GmbH - Bachstr. 126 - 56566 Neuwied - http://www.amooma.de Let's use IT to solve problems and not to create new ones. Asterisk - http://www.das-asterisk-buch.de Geschäftsführer: Stefan Wintermeyer Handelsregister: Neuwied B 14998 ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [asterisk-users] Do I understand GROUPs correctly?
Greetings Mike, On Tue, 2007-02-27 at 11:28 -0500, Mike wrote: Ok, that sort of makes sense. But what I am doing is passing off a call into my Asterisk system to a cell phone. I want this to count as 2 channels. So, I am doing, in effect, this kind of algo: Answer the call Set(Group) to increment channel to 1 Play IVR, go into menus, etc. Eventually go into a Set(group) again to increment channel before dialing a cell phone using a dial(cellphone#) cmd. If that doesn't work, how do I accomplish the same kind of thing elegantly? From show application Dial: If the OUTBOUND_GROUP variable is set, all peer channels created by this application will be put into that group (as in Set(GROUP()=...). This would make it so that your outgoing channel would be in the group and the count would be 2. Is this what you are looking for? Joshua Colp Software Developer Digium, Inc. ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Do I understand GROUPs correctly?
Dear Mike, I had wanted to do something that is similar to your need as I wanted to be able to add one active channel in multiple groups, it worked with The Ramon's example in the link below which uses categories beside the set command, note there are two examles depending on the asterisk version you are using: http://www.voip-info.org/wiki/view/asterisk+cmd+setgroup Thx MAG Mike wrote: Ok, that sort of makes sense. But what I am doing is passing off a call into my Asterisk system to a cell phone. I want this to count as 2 channels. So, I am doing, in effect, this kind of algo: Answer the call Set(Group) to increment channel to 1 Play IVR, go into menus, etc. Eventually go into a Set(group) again to increment channel before dialing a cell phone using a dial(cellphone#) cmd. If that doesn't work, how do I accomplish the same kind of thing elegantly? Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Philipp Kempgen Sent: Tuesday, February 27, 2007 10:57 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Do I understand GROUPs correctly? Doug Lytle wrote: Mike wrote: 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}) If this is a direct copy/paste then your error is in line 3. You have a } positioned incorrectly. My example below: exten = _35XX,1,Set(GROUP()=Max_Calls) exten = _35XX,n,NoOP(Active Calls: ${GROUP_COUNT(Max_Calls)}) Apart from that you assign the group 1234 twice to the *same* channel. So GROUP_COUNT(1234) correctly reports only *1* channel to be in that group. Regards, Philipp -- amooma GmbH - Bachstr. 126 - 56566 Neuwied - http://www.amooma.de Let's use IT to solve problems and not to create new ones. Asterisk - http://www.das-asterisk-buch.de Geschäftsführer: Stefan Wintermeyer Handelsregister: Neuwied B 14998 ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- Thx MAG ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users