Re: [asterisk-users] Prepay Limited Calls.

2010-08-09 Thread Nasir Iqbal
Hi Use "Set(TIMEOUT(absolute)=XYZ)" in your dialplan or timeout parameter in Dial and Originate commands. Get maximum available seconds from your db for calling peer and use it as timeout. But after every call you have to deduct used time from you db for calling peer. Regards On Mon, Aug 9, 2010

Re: [asterisk-users] Prepay Limited Calls.

2010-08-09 Thread Faisal Hanif
Hi, It is simple to use max_limit perameter in dial command. Regards, Faisal Hanif On 8/9/2010 2:01 PM, Catalin S. wrote: Hello, I wish to make a simple system to limit peers at x minutes depending of buyer voip packet. Can someone help me with some directions? I intend to make a separate d

[asterisk-users] Prepay Limited Calls.

2010-08-09 Thread Catalin S.
Hello, I wish to make a simple system to limit peers at x minutes depending of buyer voip packet. Can someone help me with some directions? I intend to make a separate dial plan and every calls to be in cdr table in mysql. Is any chance to make some scripts to drop calls after peer used all minute