Re: [asterisk-users] Limit total length of calls to a specifig SIP peer

2010-06-09 Thread Laurent CARON
On 08/06/2010 19:19, Steve Edwards wrote: > The ONLY way (how's that for humble) to do this in a reliable and robust > method is to use a real database. Personally, I like MySQL and I prefer to > do database work in an AGI in a compiled language like C. > > Maintaining the accumulated duration in a

Re: [asterisk-users] Limit total length of calls to a specifig SIP peer

2010-06-08 Thread Steve Edwards
On Tue, 8 Jun 2010, Laurent CARON wrote: > I'm currently using a cheap SIP provider for outbound calls. > > I do have 6 channels to them. > > In their terms of service there is the following limit: > > The total duration of calls during one single day should not exceed 24 > hours or we do have the

Re: [asterisk-users] Limit total length of calls to a specifig SIP peer

2010-06-08 Thread Laurent CARON
On 08/06/2010 15:21, Danny Nicholas wrote: > My .02 - I would set up a context for dialing with this provider that counts > minutes and stops the dial with a message once you get to 1321 minutes (22 > hours). > > Exten => _8X.,1,noop(call using Cheap sip) > Exten => _8X.,2,macro(call_out,${EXTEN:

Re: [asterisk-users] Limit total length of calls to a specifig SIP peer

2010-06-08 Thread Danny Nicholas
sers-boun...@lists.digium.com] On Behalf Of Laurent CARON Sent: Tuesday, June 08, 2010 7:53 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] Limit total length of calls to a specifig SIP peer Hi, I'm currently using a cheap SIP provider for outbound calls. I

Re: [asterisk-users] Limit total length of calls to a specifig SIP peer

2010-06-08 Thread Mike
terisk-users- > boun...@lists.digium.com] On Behalf Of Laurent CARON > Sent: Tuesday, June 08, 2010 8:53 > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: [asterisk-users] Limit total length of calls to a specifig SIP > peer > > Hi, > > I'm cu

[asterisk-users] Limit total length of calls to a specifig SIP peer

2010-06-08 Thread Laurent CARON
Hi, I'm currently using a cheap SIP provider for outbound calls. I do have 6 channels to them. In their terms of service there is the following limit: The total duration of calls during one single day should not exceed 24 hours or we do have the right to terminate the contract...blah blah Wha