Bryan Mahin
2006-Apr-05 14:47 UTC
[Asterisk-Users] How to restrict simultaneous phone registrations
Hello all, I am looking for a way to restrict users from logging in two separate phones with the same authorization name/password at the same time. Meaning, I only want users to be able to place a call from one phone in one location, but have the ability to move from computer to computer. Has anyone found any sort of solution for this type scenario? Thanks, Bryan Mahin Please visit us @ www.uneta.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060405/7dfdc653/attachment.htm
Eric "ManxPower" Wieling
2006-Apr-05 16:50 UTC
[Asterisk-Users] How to restrict simultaneous phone registrations
Bryan Mahin wrote:> Hello all, > > I am looking for a way to restrict users from logging in two separate > phones with the same authorization name/password at the same time. > Meaning, I only want users to be able to place a call from one phone in > one location, but have the ability to move from computer to computer. > Has anyone found any sort of solution for this type scenario?This is a non-issue, because a second registration to the same account will override and previous registrations for that account.
Ronald Wiplinger
2006-Apr-05 17:57 UTC
[Asterisk-Users] How to restrict simultaneous phone registrations
Eric "ManxPower" Wieling wrote:> Bryan Mahin wrote: >> Hello all, >> >> I am looking for a way to restrict users from logging in two separate >> phones with the same authorization name/password at the same time. >> Meaning, I only want users to be able to place a call from one phone in >> one location, but have the ability to move from computer to computer. >> Has anyone found any sort of solution for this type scenario? > > This is a non-issue, because a second registration to the same account > will override and previous registrations for that account.While it is a non-issue, it is still annoying if both phones try to register all the time, ..... bye Ronald Wiplinger -------------- next part -------------- A non-text attachment was scrubbed... Name: ronald.vcf Type: text/x-vcard Size: 319 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20060405/235f635f/ronald.vcf
Bryan Mahin
2006-Apr-05 19:50 UTC
[Asterisk-Users] How to restrict simultaneous phone registrations
:) I should rephrase my question. And included a bit more information on what I am trying to accomplish. Solution 1 (preferred) I am working on an asterisk installation where most end users will use softphones. If I am not able to lock down calling to one phone at a time, the end users will share their login information with friends, family, neighbors, and the some girl they meet on myspace. Currently, I am able to register two phones at separate locations with the same account on each phone and make concurrent calls. For example, If I login extension 333 at location A, and 333 at location B, simultaneous calls can be placed from both phones at the exact same time. I only want calls placed from extension 333 to work from either A or B not A and B concurrently. Here is my ideal solution. Location A wants to make a call, but location B has a call in progress. Location B has to either close their phone, or hang up before Location A can make the call. OR.. Solution 2. :) A way I can distinguish in my CDR the IP address or some other recognizable difference between the two locations when they make concurrent calls using the same extension. The complication here is; I can currently the log IP addresses, but as the end phones are on the internet, Nat'd, and I am using a siparator for traversal. As a result, my logs show the IP address of the siparator and I don't have any other data to distinguish the end phones. OR.. Solution 2.5 One thought I've had is to send logs from the siparator to a syslog server, parse them, hunt for simultaneous calls placed by the same accounts from different locations, and bill the end users accordingly. But I really dislike this idea as no one likes to be hit with surcharges. Any help or insight is greatly appreciated. Thanks again, Bryan Mahin -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Eric "ManxPower" Wieling Sent: Wednesday, April 05, 2006 7:50 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] How to restrict simultaneous phone registrations Bryan Mahin wrote:> Hello all, > > I am looking for a way to restrict users from logging in two separate > phones with the same authorization name/password at the same time. > Meaning, I only want users to be able to place a call from one phonein> one location, but have the ability to move from computer to computer. > Has anyone found any sort of solution for this type scenario?This is a non-issue, because a second registration to the same account will override and previous registrations for that account. _______________________________________________ --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 Please visit us @ www.uneta.com
Bill Gibbs
2006-Apr-05 19:55 UTC
[Asterisk-Users] How to restrict simultaneous phone registrations
I say just bill the user at extension 333 it's his responsibility to keep the login info private. If he disputes it, refund the first time then change the password to something really complicated then start billing him if it keeps happening after that! Bill -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Bryan Mahin Sent: Wednesday, April 05, 2006 10:50 PM To: asterisk-users@lists.digium.com Subject: RE: [Asterisk-Users] How to restrict simultaneous phone registrations :) I should rephrase my question. And included a bit more information on what I am trying to accomplish. Solution 1 (preferred) I am working on an asterisk installation where most end users will use softphones. If I am not able to lock down calling to one phone at a time, the end users will share their login information with friends, family, neighbors, and the some girl they meet on myspace. Currently, I am able to register two phones at separate locations with the same account on each phone and make concurrent calls. For example, If I login extension 333 at location A, and 333 at location B, simultaneous calls can be placed from both phones at the exact same time. I only want calls placed from extension 333 to work from either A or B not A and B concurrently. Here is my ideal solution. Location A wants to make a call, but location B has a call in progress. Location B has to either close their phone, or hang up before Location A can make the call. OR.. Solution 2. :) A way I can distinguish in my CDR the IP address or some other recognizable difference between the two locations when they make concurrent calls using the same extension. The complication here is; I can currently the log IP addresses, but as the end phones are on the internet, Nat'd, and I am using a siparator for traversal. As a result, my logs show the IP address of the siparator and I don't have any other data to distinguish the end phones. OR.. Solution 2.5 One thought I've had is to send logs from the siparator to a syslog server, parse them, hunt for simultaneous calls placed by the same accounts from different locations, and bill the end users accordingly. But I really dislike this idea as no one likes to be hit with surcharges. Any help or insight is greatly appreciated. Thanks again, Bryan Mahin -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Eric "ManxPower" Wieling Sent: Wednesday, April 05, 2006 7:50 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] How to restrict simultaneous phone registrations Bryan Mahin wrote:> Hello all, > > I am looking for a way to restrict users from logging in two separate > phones with the same authorization name/password at the same time. > Meaning, I only want users to be able to place a call from one phonein> one location, but have the ability to move from computer to computer. > Has anyone found any sort of solution for this type scenario?This is a non-issue, because a second registration to the same account will override and previous registrations for that account. _______________________________________________ --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 Please visit us @ www.uneta.com _______________________________________________ --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
Bryan Mahin
2006-Apr-05 20:00 UTC
[Asterisk-Users] How to restrict simultaneous phone registrations
Lol.. To an extent I agree. But I feel the best way is to find a way to block the problem completely. :) -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Bill Gibbs Sent: Wednesday, April 05, 2006 10:55 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [Asterisk-Users] How to restrict simultaneous phone registrations I say just bill the user at extension 333 it's his responsibility to keep the login info private. If he disputes it, refund the first time then change the password to something really complicated then start billing him if it keeps happening after that! Bill -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Bryan Mahin Sent: Wednesday, April 05, 2006 10:50 PM To: asterisk-users@lists.digium.com Subject: RE: [Asterisk-Users] How to restrict simultaneous phone registrations :) I should rephrase my question. And included a bit more information on what I am trying to accomplish. Solution 1 (preferred) I am working on an asterisk installation where most end users will use softphones. If I am not able to lock down calling to one phone at a time, the end users will share their login information with friends, family, neighbors, and the some girl they meet on myspace. Currently, I am able to register two phones at separate locations with the same account on each phone and make concurrent calls. For example, If I login extension 333 at location A, and 333 at location B, simultaneous calls can be placed from both phones at the exact same time. I only want calls placed from extension 333 to work from either A or B not A and B concurrently. Here is my ideal solution. Location A wants to make a call, but location B has a call in progress. Location B has to either close their phone, or hang up before Location A can make the call. OR.. Solution 2. :) A way I can distinguish in my CDR the IP address or some other recognizable difference between the two locations when they make concurrent calls using the same extension. The complication here is; I can currently the log IP addresses, but as the end phones are on the internet, Nat'd, and I am using a siparator for traversal. As a result, my logs show the IP address of the siparator and I don't have any other data to distinguish the end phones. OR.. Solution 2.5 One thought I've had is to send logs from the siparator to a syslog server, parse them, hunt for simultaneous calls placed by the same accounts from different locations, and bill the end users accordingly. But I really dislike this idea as no one likes to be hit with surcharges. Any help or insight is greatly appreciated. Thanks again, Bryan Mahin -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Eric "ManxPower" Wieling Sent: Wednesday, April 05, 2006 7:50 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] How to restrict simultaneous phone registrations Bryan Mahin wrote:> Hello all, > > I am looking for a way to restrict users from logging in two separate > phones with the same authorization name/password at the same time. > Meaning, I only want users to be able to place a call from one phonein> one location, but have the ability to move from computer to computer. > Has anyone found any sort of solution for this type scenario?This is a non-issue, because a second registration to the same account will override and previous registrations for that account. _______________________________________________ --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 Please visit us @ www.uneta.com _______________________________________________ --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 Please visit us @ www.uneta.com
Alexander Lopez
2006-Apr-05 21:09 UTC
[Asterisk-Users] How to restrict simultaneous phone registrations
You can grab the DeviceIP and what it is NATed as with the SIPCHANINFO function: show function SIPCHANINFO -= Info about function 'SIPCHANINFO' =- [Syntax] SIPCHANINFO(item) [Synopsis] Gets the specified SIP parameter from the current channel [Description] Valid items are: - peerip The IP address of the peer. - recvip The source IP address of the peer. - from The URI from the From: header. - uri The URI from the Contact: header. - useragent The useragent. - peername The name of the peer.> -----Original Message-----<SNIP>
Bryan Mahin
2006-Apr-05 21:43 UTC
[Asterisk-Users] How to restrict simultaneous phone registrations
I am only seeing the siparator ip. Tried the following. ${SIPCHANINFO(peerip)} ${SIPCHANINFO(recvip)} ${SIPCHANINFO(from)} ${SIPCHANINFO(uri)} -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Alexander Lopez Sent: Thursday, April 06, 2006 12:10 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [Asterisk-Users] How to restrict simultaneous phone registrations You can grab the DeviceIP and what it is NATed as with the SIPCHANINFO function: show function SIPCHANINFO -= Info about function 'SIPCHANINFO' =- [Syntax] SIPCHANINFO(item) [Synopsis] Gets the specified SIP parameter from the current channel [Description] Valid items are: - peerip The IP address of the peer. - recvip The source IP address of the peer. - from The URI from the From: header. - uri The URI from the Contact: header. - useragent The useragent. - peername The name of the peer.> -----Original Message-----<SNIP> _______________________________________________ --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 Please visit us @ www.uneta.com
Bryan Mahin
2006-Apr-05 21:47 UTC
[Asterisk-Users] How to restrict simultaneous phone registrations
I apologize if this information is posted elsewhere. Unfortunately I haven't found it yet if it is. I'm not familiar with the channel counting features could you please explain? Also, how are you tagging the phones to account codes? -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Darren Wiebe Sent: Thursday, April 06, 2006 12:04 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] How to restrict simultaneous phone registrations -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Here's how I do it. I have the phones tagged to accountcodes and I use the channel counting features of asterisk to limit an accountcode to X number of simultaneous calls. Darren Wiebe darren@aleph-com.net Bryan Mahin wrote:> Lol.. To an extent I agree. But I feel the best way is to find a wayto> block the problem completely. :) > > -----Original Message----- > From: asterisk-users-bounces@lists.digium.com > [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of BillGibbs> Sent: Wednesday, April 05, 2006 10:55 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: RE: [Asterisk-Users] How to restrict simultaneous phone > registrations > > I say just bill the user at extension 333 it's his responsibility to > keep the login info private. If he disputes it, refund the first time > then change the password to something really complicated then start > billing him if it keeps happening after that! > > Bill > > -----Original Message----- > From: asterisk-users-bounces@lists.digium.com > [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Bryan > Mahin > Sent: Wednesday, April 05, 2006 10:50 PM > To: asterisk-users@lists.digium.com > Subject: RE: [Asterisk-Users] How to restrict simultaneous phone > registrations > > :) I should rephrase my question. And included a bit more informationon> what I am trying to accomplish. > > Solution 1 (preferred) > > I am working on an asterisk installation where most end users will use > softphones. If I am not able to lock down calling to one phone at a > time, the end users will share their login information with friends, > family, neighbors, and the some girl they meet on myspace. > > Currently, I am able to register two phones at separate locations with > the same account on each phone and make concurrent calls. > > For example, If I login extension 333 at location A, and 333 atlocation> B, simultaneous calls can be placed from both phones at the exact same > time. I only want calls placed from extension 333 to work from eitherA> or B not A and B concurrently. > > Here is my ideal solution. Location A wants to make a call, butlocation> B has a call in progress. Location B has to either close their phone,or> hang up before Location A can make the call. > > > OR.. Solution 2. :) > A way I can distinguish in my CDR the IP address or some other > recognizable difference between the two locations when they make > concurrent calls using the same extension. The complication here is;I> can currently the log IP addresses, but as the end phones are on the > internet, Nat'd, and I am using a siparator for traversal. As aresult,> my logs show the IP address of the siparator and I don't have anyother> data to distinguish the end phones. > > OR.. Solution 2.5 > One thought I've had is to send logs from the siparator to a syslog > server, parse them, hunt for simultaneous calls placed by the same > accounts from different locations, and bill the end users accordingly. > But I really dislike this idea as no one likes to be hit with > surcharges. > > Any help or insight is greatly appreciated. > > Thanks again, > Bryan Mahin > > > -----Original Message----- > From: asterisk-users-bounces@lists.digium.com > [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Eric > "ManxPower" Wieling > Sent: Wednesday, April 05, 2006 7:50 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [Asterisk-Users] How to restrict simultaneous phone > registrations > > Bryan Mahin wrote: >> Hello all, >> >> I am looking for a way to restrict users from logging in two separate >> phones with the same authorization name/password at the same time. >> Meaning, I only want users to be able to place a call from one phone > in >> one location, but have the ability to move from computer to computer. >> Has anyone found any sort of solution for this type scenario? > > This is a non-issue, because a second registration to the same account> will override and previous registrations for that account. > _______________________________________________- -- Darren Wiebe darren@aleph-com.net Aleph Communications ASTPP - Open Source Voip Billing & Calling Cards www.aleph-com.net/astpp -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFENJMw4DADnh+tnOQRAnA6AJ9WPEQKXAVidz7g6aXkIbeCqD2LfwCdF7yd f3ImomYaAAikmfoocM76Pdo=9FdV -----END PGP SIGNATURE----- _______________________________________________ --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 Please visit us @ www.uneta.com
Michiel van Baak
2006-Apr-06 00:11 UTC
[Asterisk-Users] How to restrict simultaneous phone registrations
On 17:47, Wed 05 Apr 06, Bryan Mahin wrote:> Hello all, > > I am looking for a way to restrict users from logging in two separate > phones with the same authorization name/password at the same time. > Meaning, I only want users to be able to place a call from one phone in > one location, but have the ability to move from computer to computer. > Has anyone found any sort of solution for this type scenario?Use agents. When agent X logs in on location A, the other phone that is logged in as agent X will be logged off. -- Michiel van Baak http://michiel.vanbaak.info michiel@vanbaak.info GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7E0B9A2D "Why is it drug addicts and computer afficionados are both called users?"
Jonathan k. Creasy
2006-Apr-06 04:47 UTC
[Asterisk-Users] How to restrict simultaneous phone registrations
> > I apologize if this information is posted elsewhere. Unfortunately I > haven't found it yet if it is. I'm not familiar with the channel > counting features could you please explain? Also, how are you tagging > the phones to account codes? >You can limit calls using the set/check group commands. http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+SetGroup Account codes are set either by using the Set function or the accountcode= property in the SIP/IAX conf files. -Jonathan
Bryan Mahin
2006-Apr-06 09:25 UTC
[Asterisk-Users] How to restrict simultaneous phone registrations
If I lock the account down to one simultaneous call, this will resolve one problem but create another. The user will only be able to place or receive one call and not be able to conference call two or three people at a time. Correct? I really need to be able to lock the account down so multiple calls can be placed from an account at Location A but not the same account at Location B at the same time. Kind of like the old version of AOL instant messenger. If you logon in a second location, it'll bump off the first location. You couldn't use it in two places at once. An even better scenario would be that both locations can be logged in but only the second location to login can place calls. This would cause someone to have to close their phone and re-open it to place calls (bumping off the other phone). -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Darren Wiebe Sent: Thursday, April 06, 2006 11:07 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] How to restrict simultaneous phone registrations -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jonathan k. Creasy wrote:>> I apologize if this information is posted elsewhere. Unfortunately I >> haven't found it yet if it is. I'm not familiar with the channel >> counting features could you please explain? Also, how are you tagging >> the phones to account codes? >> > > You can limit calls using the set/check group commands. > > http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+SetGroup > > Account codes are set either by using the Set function or the > accountcode= property in the SIP/IAX conf files. > > -JonathanExactly, I'll post a sample dialplan. This dialplan is for ASTPP but should give you the idea. # exten => _1XXXXXXXXXX,1,Set(GROUP()=${ACCOUNTCODE}) # exten => _1XXXXXXXXXX,2,AGI(astpp-authorize.agi,${ACCOUNTCODE},${EXTEN}) # exten => _1XXXXXXXXXX,3,GotoIf($["${CALLSTATUS}" = "0"]?60) ; Checks if account has sufficient funds # exten => _1XXXXXXXXXX,4,GotoIf($["${CALLSTATUS}" = "1"]?70) ; Checks if the phone number exists # exten => _1XXXXXXXXXX,5,GotoIf($["${CALLSTATUS}" = "2"]?80) ; Check if account exists # exten => _1XXXXXXXXXX,6,GotoIf($["${GROUP_COUNT()}" > "${MAXCHANNELS}"]?90) ; Verify number of outgoing channels # ; assigned to account. # exten => _1XXXXXXXXXX,7,Set(GROUP(${TRUNK1}-OUTBOUND)=OUTBOUND) # exten => _1XXXXXXXXXX,8,GotoIf($["${GROUP_COUNT(OUTBOUND@${TRUNK1}-OUTBOUND)}" > "${TRUNK1_MAXCHANNELS}"]?10) # exten => _1XXXXXXXXXX,9,Dial(${LCRSTRING1}||${TIMELIMIT}|${OPTIONS}) # exten => _1XXXXXXXXXX,110,Busy # exten => _1XXXXXXXXXX,10,Set(GROUP(${TRUNK2}-OUTBOUND)=OUTBOUND) # exten => _1XXXXXXXXXX,11,GotoIf($["${GROUP_COUNT(OUTBOUND@${TRUNK2}-OUTBOUND)}" > "${TRUNK2_MAXCHANNELS}"]?13) # exten => _1XXXXXXXXXX,12,Dial(${LCRSTRING2}||${TIMELIMIT}|${OPTIONS}) # exten => _1XXXXXXXXXX,113,Busy # exten => _1XXXXXXXXXX,13,Set(GROUP(${TRUNK2}-OUTBOUND)=OUTBOUND) # exten => _1XXXXXXXXXX,14,GotoIf($["${GROUP_COUNT(OUTBOUND@${TRUNK3}-OUTBOUND)}" > "${TRUNK3_MAXCHANNELS}"]?16) # exten => _1XXXXXXXXXX,15,Dial(${LCRSTRING3}||${TIMELIMIT}|${OPTIONS}) # exten => _1XXXXXXXXXX,116,Busy # exten => _1XXXXXXXXXX,16,Set(GROUP(${TRUNK4}-OUTBOUND)=OUTBOUND) # exten => _1XXXXXXXXXX,17,GotoIf($["${GROUP_COUNT(OUTBOUND@${TRUNK4}-OUTBOUND)}" > "${TRUNK4_MAXCHANNELS}"]?19) # exten => _1XXXXXXXXXX,18,Dial(${LCRSTRING4}||${TIMELIMIT}|${OPTIONS}) # exten => _1XXXXXXXXXX,119,Busy # exten => _1XXXXXXXXXX,19,Set(GROUP(${TRUNK5}-OUTBOUND)=OUTBOUND) # exten => _1XXXXXXXXXX,20,GotoIf($["${GROUP_COUNT(OUTBOUND@${TRUNK5})-OUTBOUND}" > "${TRUNK5_MAXCHANNELS}"]?22) # exten => _1XXXXXXXXXX,21,Dial(${LCRSTRING5}||${TIMELIMIT}|${OPTIONS}) # exten => _1XXXXXXXXXX,122,Busy # exten => _1XXXXXXXXXX,22,Goto(100) # exten => _1XXXXXXXXXX,60,Congestion ; '0' Tells them they do not have enough money # exten => _1XXXXXXXXXX,61,Hangup # exten => _1XXXXXXXXXX,70,Congestion '1' Bad Phone Number # exten => _1XXXXXXXXXX,71,Hangup # exten => _1XXXXXXXXXX,80,Congestion # exten => _1XXXXXXXXXX,81,Hangup # exten => _1XXXXXXXXXX,90,Congestion ; Their outgoing channel limit is full already # exten => _1XXXXXXXXXX,91,Hangup # exten => _1XXXXXXXXXX,100,Congestion ; No Route Available # exten => _1XXXXXXXXXX,101,Hangup Some of the group counts are for outgoing trunks. It's just the first one that you need. - -- Darren Wiebe darren@aleph-com.net Aleph Communications ASTPP - Open Source Voip Billing & Calling Cards www.aleph-com.net/astpp -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFENS6w4DADnh+tnOQRAlTmAKCI8x7xV2nUlfhT4n325iqApMmecACcCATV cpS+R+PdpYV6Rc6Sk7BIrGM=hZRr -----END PGP SIGNATURE----- _______________________________________________ --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 Please visit us @ www.uneta.com
Bryan Mahin
2006-Apr-06 09:33 UTC
[Asterisk-Users] How to restrict simultaneous phone registrations
Correct, and I can lookup the registration IP's but they are NAT'd. I'm using a siparator for traversal. This means the only IP's asterisk is seeing are that of the siparator. At this point I'm not aware of a fix to see the end user's IP while using NAT traversal. I'm not opposed to ditching the siparator if there's a better solution. All ideas are welcome. (That's within budget of course) :) -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Eric "ManxPower" Wieling Sent: Thursday, April 06, 2006 5:27 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] How to restrict simultaneous phone registrations The only thing registration does is inform Asterisk about what IP the device is at. It has nothing at all to do with Device -> Asterisk calls. Registration only affects Asterisk -> Device calls. In a Device -> Asterisk call, Asterisk does not care what IP the device is at as long as the correct user/password are provided. Bryan Mahin wrote:> :) I should rephrase my question. And included a bit more informationon> what I am trying to accomplish. > > Solution 1 (preferred) > > I am working on an asterisk installation where most end users will use > softphones. If I am not able to lock down calling to one phone at a > time, the end users will share their login information with friends, > family, neighbors, and the some girl they meet on myspace. > > Currently, I am able to register two phones at separate locations with > the same account on each phone and make concurrent calls. > > For example, If I login extension 333 at location A, and 333 atlocation> B, simultaneous calls can be placed from both phones at the exact same > time. I only want calls placed from extension 333 to work from eitherA> or B not A and B concurrently. > > Here is my ideal solution. Location A wants to make a call, butlocation> B has a call in progress. Location B has to either close their phone,or> hang up before Location A can make the call. > > > OR.. Solution 2. :) > A way I can distinguish in my CDR the IP address or some other > recognizable difference between the two locations when they make > concurrent calls using the same extension. The complication here is;I> can currently the log IP addresses, but as the end phones are on the > internet, Nat'd, and I am using a siparator for traversal. As aresult,> my logs show the IP address of the siparator and I don't have anyother> data to distinguish the end phones. > > OR.. Solution 2.5 > One thought I've had is to send logs from the siparator to a syslog > server, parse them, hunt for simultaneous calls placed by the same > accounts from different locations, and bill the end users accordingly. > But I really dislike this idea as no one likes to be hit with > surcharges._______________________________________________ --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 Please visit us @ www.uneta.com
Bryan Mahin
2006-Apr-06 09:57 UTC
[Asterisk-Users] How to restrict simultaneous phone registrations
Correct, and I can lookup the registration IP's but they are NAT'd. I'm using a siparator for traversal. This means the only IP's asterisk is seeing are that of the siparator. At this point I'm not aware of a fix to see the end user's IP while using NAT traversal. I'm not opposed to ditching the siparator if there's a better solution. All ideas are welcome. (That's within budget of course) :) -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Eric "ManxPower" Wieling Sent: Thursday, April 06, 2006 5:27 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] How to restrict simultaneous phone registrations The only thing registration does is inform Asterisk about what IP the device is at. It has nothing at all to do with Device -> Asterisk calls. Registration only affects Asterisk -> Device calls. In a Device -> Asterisk call, Asterisk does not care what IP the device is at as long as the correct user/password are provided. Bryan Mahin wrote:> :) I should rephrase my question. And included a bit more informationon> what I am trying to accomplish. > > Solution 1 (preferred) > > I am working on an asterisk installation where most end users will use > softphones. If I am not able to lock down calling to one phone at a > time, the end users will share their login information with friends, > family, neighbors, and the some girl they meet on myspace. > > Currently, I am able to register two phones at separate locations with > the same account on each phone and make concurrent calls. > > For example, If I login extension 333 at location A, and 333 atlocation> B, simultaneous calls can be placed from both phones at the exact same > time. I only want calls placed from extension 333 to work from eitherA> or B not A and B concurrently. > > Here is my ideal solution. Location A wants to make a call, butlocation> B has a call in progress. Location B has to either close their phone,or> hang up before Location A can make the call. > > > OR.. Solution 2. :) > A way I can distinguish in my CDR the IP address or some other > recognizable difference between the two locations when they make > concurrent calls using the same extension. The complication here is;I> can currently the log IP addresses, but as the end phones are on the > internet, Nat'd, and I am using a siparator for traversal. As aresult,> my logs show the IP address of the siparator and I don't have anyother> data to distinguish the end phones. > > OR.. Solution 2.5 > One thought I've had is to send logs from the siparator to a syslog > server, parse them, hunt for simultaneous calls placed by the same > accounts from different locations, and bill the end users accordingly. > But I really dislike this idea as no one likes to be hit with > surcharges._______________________________________________ --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 Please visit us @ www.uneta.com
Bryan Mahin
2006-Apr-06 09:58 UTC
[Asterisk-Users] How to restrict simultaneous phone registrations
If I lock the account down to one simultaneous call, this will resolve one problem but create another. The user will only be able to place or receive one call and not be able to conference call two or three people at a time. Correct? I really need to be able to lock the account down so multiple calls can be placed from an account at Location A but not the same account at Location B at the same time. Kind of like the old version of AOL instant messenger. If you logon in a second location, it'll bump off the first location. You couldn't use it in two places at once. An even better scenario would be that both locations can be logged in but only the second location to login can place calls. This would cause someone to have to close their phone and re-open it to place calls (bumping off the other phone). -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Darren Wiebe Sent: Thursday, April 06, 2006 11:07 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] How to restrict simultaneous phone registrations -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jonathan k. Creasy wrote:>> I apologize if this information is posted elsewhere. Unfortunately I >> haven't found it yet if it is. I'm not familiar with the channel >> counting features could you please explain? Also, how are you tagging >> the phones to account codes? >> > > You can limit calls using the set/check group commands. > > http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+SetGroup > > Account codes are set either by using the Set function or the > accountcode= property in the SIP/IAX conf files. > > -JonathanExactly, I'll post a sample dialplan. This dialplan is for ASTPP but should give you the idea. # exten => _1XXXXXXXXXX,1,Set(GROUP()=${ACCOUNTCODE}) # exten => _1XXXXXXXXXX,2,AGI(astpp-authorize.agi,${ACCOUNTCODE},${EXTEN}) # exten => _1XXXXXXXXXX,3,GotoIf($["${CALLSTATUS}" = "0"]?60) ; Checks if account has sufficient funds # exten => _1XXXXXXXXXX,4,GotoIf($["${CALLSTATUS}" = "1"]?70) ; Checks if the phone number exists # exten => _1XXXXXXXXXX,5,GotoIf($["${CALLSTATUS}" = "2"]?80) ; Check if account exists # exten => _1XXXXXXXXXX,6,GotoIf($["${GROUP_COUNT()}" > "${MAXCHANNELS}"]?90) ; Verify number of outgoing channels # ; assigned to account. # exten => _1XXXXXXXXXX,7,Set(GROUP(${TRUNK1}-OUTBOUND)=OUTBOUND) # exten => _1XXXXXXXXXX,8,GotoIf($["${GROUP_COUNT(OUTBOUND@${TRUNK1}-OUTBOUND)}" > "${TRUNK1_MAXCHANNELS}"]?10) # exten => _1XXXXXXXXXX,9,Dial(${LCRSTRING1}||${TIMELIMIT}|${OPTIONS}) # exten => _1XXXXXXXXXX,110,Busy # exten => _1XXXXXXXXXX,10,Set(GROUP(${TRUNK2}-OUTBOUND)=OUTBOUND) # exten => _1XXXXXXXXXX,11,GotoIf($["${GROUP_COUNT(OUTBOUND@${TRUNK2}-OUTBOUND)}" > "${TRUNK2_MAXCHANNELS}"]?13) # exten => _1XXXXXXXXXX,12,Dial(${LCRSTRING2}||${TIMELIMIT}|${OPTIONS}) # exten => _1XXXXXXXXXX,113,Busy # exten => _1XXXXXXXXXX,13,Set(GROUP(${TRUNK2}-OUTBOUND)=OUTBOUND) # exten => _1XXXXXXXXXX,14,GotoIf($["${GROUP_COUNT(OUTBOUND@${TRUNK3}-OUTBOUND)}" > "${TRUNK3_MAXCHANNELS}"]?16) # exten => _1XXXXXXXXXX,15,Dial(${LCRSTRING3}||${TIMELIMIT}|${OPTIONS}) # exten => _1XXXXXXXXXX,116,Busy # exten => _1XXXXXXXXXX,16,Set(GROUP(${TRUNK4}-OUTBOUND)=OUTBOUND) # exten => _1XXXXXXXXXX,17,GotoIf($["${GROUP_COUNT(OUTBOUND@${TRUNK4}-OUTBOUND)}" > "${TRUNK4_MAXCHANNELS}"]?19) # exten => _1XXXXXXXXXX,18,Dial(${LCRSTRING4}||${TIMELIMIT}|${OPTIONS}) # exten => _1XXXXXXXXXX,119,Busy # exten => _1XXXXXXXXXX,19,Set(GROUP(${TRUNK5}-OUTBOUND)=OUTBOUND) # exten => _1XXXXXXXXXX,20,GotoIf($["${GROUP_COUNT(OUTBOUND@${TRUNK5})-OUTBOUND}" > "${TRUNK5_MAXCHANNELS}"]?22) # exten => _1XXXXXXXXXX,21,Dial(${LCRSTRING5}||${TIMELIMIT}|${OPTIONS}) # exten => _1XXXXXXXXXX,122,Busy # exten => _1XXXXXXXXXX,22,Goto(100) # exten => _1XXXXXXXXXX,60,Congestion ; '0' Tells them they do not have enough money # exten => _1XXXXXXXXXX,61,Hangup # exten => _1XXXXXXXXXX,70,Congestion '1' Bad Phone Number # exten => _1XXXXXXXXXX,71,Hangup # exten => _1XXXXXXXXXX,80,Congestion # exten => _1XXXXXXXXXX,81,Hangup # exten => _1XXXXXXXXXX,90,Congestion ; Their outgoing channel limit is full already # exten => _1XXXXXXXXXX,91,Hangup # exten => _1XXXXXXXXXX,100,Congestion ; No Route Available # exten => _1XXXXXXXXXX,101,Hangup Some of the group counts are for outgoing trunks. It's just the first one that you need. - -- Darren Wiebe darren@aleph-com.net Aleph Communications ASTPP - Open Source Voip Billing & Calling Cards www.aleph-com.net/astpp -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFENS6w4DADnh+tnOQRAlTmAKCI8x7xV2nUlfhT4n325iqApMmecACcCATV cpS+R+PdpYV6Rc6Sk7BIrGM=hZRr -----END PGP SIGNATURE----- _______________________________________________ --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 Please visit us @ www.uneta.com
broadbandvoice@comcast.net
2006-Apr-22 16:34 UTC
[Asterisk-Users] How to restrict simultaneous phone registrations
disable three-way calling, restric channels to one per call. -------------- Original message -------------- From: "Bill Gibbs" <bgibbs@edurotech.com>> I say just bill the user at extension 333 it's his responsibility to > keep the login info private. If he disputes it, refund the first time > then change the password to something really complicated then start > billing him if it keeps happening after that! > > Bill > > -----Original Message----- > From: asterisk-users-bounces@lists.digium.com > [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Bryan > Mahin > Sent: Wednesday, April 05, 2006 10:50 PM > To: asterisk-users@lists.digium.com > Subject: RE: [Asterisk-Users] How to restrict simultaneous phone > registrations > > :) I should rephrase my question. And included a bit more information on > what I am trying to accomplish. > > Solution 1 (preferred) > > I am working on an asterisk installation where most end users will use > softphones. If I am not able to lock down calling to one phone at a > time, the end users will share their login information with friends, > family, neighbors, and the some girl they meet on myspace. > > Currently, I am able to register two phones at separate locations with > the same account on each phone and make concurrent calls. > > For example, If I login extension 333 at location A, and 333 at location > B, simultaneous calls can be placed from both phones at the exact same > time. I only want calls placed from extension 333 to work from either A > or B not A and B concurrently. > > Here is my ideal solution. Location A wants to make a call, but location > B has a call in progress. Location B has to either close their phone, or > hang up before Location A can make the call. > > > OR.. Solution 2. :) > A way I can distinguish in my CDR the IP address or some other > recognizable difference between the two locations when they make > concurrent calls using the same extension. The complication here is; I > can currently the log IP addresses, but as the end phones are on the > internet, Nat'd, and I am using a siparator for traversal. As a result, > my logs show the IP address of the siparator and I don't have any other > data to distinguish the end phones. > > OR.. Solution 2.5 > One thought I've had is to send logs from the siparator to a syslog > server, parse them, hunt for simultaneous calls placed by the same > accounts from different locations, and bill the end users accordingly. > But I really dislike this idea as no one likes to be hit with > surcharges. > > Any help or insight is greatly appreciated. > > Thanks again, > Bryan Mahin > > > -----Original Message----- > From: asterisk-users-bounces@lists.digium.com > [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Eric > "ManxPower" Wieling > Sent: Wednesday, April 05, 2006 7:50 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [Asterisk-Users] How to restrict simultaneous phone > registrations > > Bryan Mahin wrote: > > Hello all, > > > > I am looking for a way to restrict users from logging in two separate > > phones with the same authorization name/password at the same time. > > Meaning, I only want users to be able to place a call from one phone > in > > one location, but have the ability to move from computer to computer. > > Has anyone found any sort of solution for this type scenario? > > This is a non-issue, because a second registration to the same account > will override and previous registrations for that account. > _______________________________________________ > --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 > > Please visit us @ www.uneta.com > > _______________________________________________ > --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-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060422/0c37d37b/attachment.htm