|Summary:||ASTERISK-06408: Suggestion - Dial() parameter - add functionality of calling a macro every 'z' ms.|
|Reporter:||Nick Barnes (bcnit)||Labels:|
|Date Opened:||2006-02-23 16:16:03.000-0600||Date Closed:||2006-03-22 01:33:47.000-0600|
|Description:||A need has been identified to notify the caller of the duration of the call at regular intervals (e.g. at five minutes, the caller hears "This call has lasted five minutes", at ten minutes, "This call has lasted ten minutes" etc. etc.).|
The current Dial() parameter L(x[:y[:z]]) allows one file (as defined by LIMIT_WARNING_FILE) to be played at every 'z'ms intervals, however, it would be useful if we had the option of running a macro at every 'z'ms instead. Perhaps a new variable LIMIT_WARNING_MACRO could be used which would contain "macroname^arg1^arg2......."?
Alternatively (and probably better), a new dial parameter could be used - say R(x:macroname^arg1^arg2....) where and 'x' would be the number of seconds after which the macro would be called and then called again.... ('R' chosen for _R_epeat!).
I am no programmer, so I'm a bit stuck. I'm prepared to offer a (small) bounty for this and also to document it all on the Wiki.
Does this sound useful to anybody else?
|Comments:||By: Joshua C. Colp (jcolp) 2006-03-21 23:46:40.000-0600|
This isn't exactly possible... you can't execute a macro on a channel that's already in a bridge in an application...
By: Olle Johansson (oej) 2006-03-22 01:33:13.000-0600
Please use the mailing list for discussions.