I'm testing two options from dial command and can not make them to work. L(x[:y][:z]): Limit the call to 'x' ms, warning when 'y' ms are left, repeated every 'z' ms) Only 'x' is required, 'y' and 'z' are optional. The following special variables are optional for limit calls: (pasted from app_dial.c) w: Allow the called user to start recording after pressing *1 or what defined in features.conf (Asterisk > v1.0.x) for example I've tired: exten => 21,1,Dial(${phone1},20,r,w) exten => 21,1,Dial(${phone1},20,r,L(5[:4][:1])) but none is working. I've *-1.0.5 but I can not find app_dial.c nor features.conf contains any define recording options. -- #Joseph
> exten => 21,1,Dial(${phone1},20,r,L(5[:4][:1]))I think should be: exten => 21,1,Dial(${phone1},20,r,L(5:4:1)) The [] mean the parameter is optional, but you don't use them when specifying the values. --Luki
Trevor G. Hammonds
2005-Feb-27 05:24 UTC
[Asterisk-Users] Limit the call & recording when pressing *1
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