Thanks everyone for the answers. I ended up doing something like this:

exten => s,1,Set(TIMEOUT(absolute)=180)
exten => s,2,Answer
exten => s,3,Playback(demo-instruct)
exten => s,4,GoTo(s,3)

Liviu

----- Original Message ----- 
From: "Jim Van Meggelen" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, April 09, 2008 9:06 AM
Subject: RE: [on-asterisk] Burn minutes


Use local channels for this sort of stuff.

Create a context like

[time_waster]

exten => s,1,Noop(--=Just killing time=--)
exten => s,n,Answer()
exten => s,n,Wait(howeverlongyouneedtowait) ; or you may want
Playback(someaudiosothelineisnotquiet)
exten => s,n,Hangup()

Then just have the destination channel for the call file be

Local/[EMAIL PROTECTED]


Jim



Liviu Toma wrote:
> Hello,
> 
> I am looking for a way to place a call autmatically to burn
> minutes on an inbound VoIP account (one of thise free
> accounts hat has to be used at least once every X days,
> otherwise it expires). I can place the call by placing a file
> /var/spool/asterisk/outgoing from a crontab job, I can also
> recognize my call on the inbound side and route it to a
> special extension. What I need help with is:
> - what to do with both ends of the call (which are
> originating and terminating into my asterisk). Something like
> puting them in an endless loop which plays a silent file.
> - how to terminate the call automatically after N minutes
> 
> Thanks,
> Liviu
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED] For
> additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to