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]

Reply via email to