[Asterisk-Users] Limit the call & recording when pressing *1

Trevor G. Hammonds trevor at skyhost.net
Sun Feb 27 05:24:46 MST 2005


Joseph wrote on Saturday, 26 February 2005 8:38 PM:

> I'm testing two options from dial command and can not make them to
> work. 

< < < S N I P > > >

> exten => 21,1,Dial(${phone1},20,r,w)
> exten => 21,1,Dial(${phone1},20,r,L(5[:4][:1]))

Try: 

exten => 21,1,Dial(${phone1},20,rw)

Options should be combined.   

and

exten => 21,1,Dial(${phone1},20,rwL(300000:240000:60000))

This limits the call to five minutes, warning every 60 seconds when four
minutes are remaining.  Keep in mind that time is specified in milliseconds.
(FYI:  There are 60,000 milliseconds in a minute.)

		Sincerely,
		Trevor Hammonds




More information about the asterisk-users mailing list