Possibility To Cancel Call Duration Limit Set In App Dial With Options S(x) Or L(x:y:z) During A Call
Home » Asterisk Users » Possibility To Cancel Call Duration Limit Set In App Dial With Options S(x) Or L(x:y:z) During A Call
Hello everyone,
Does anyone know is it possible to cancel the call duration limit set in app Dial with options S(x) or L(x[:y[:z]]), by for instance entering custom feature code (application map) during the call ?
I have read somewhere that bridge features can be set using the
${BRIDGE_FEATURES} variable on channel, but it was not clear to me can they be modified that way after the bridge has started ?
Idea is to make application map for caller channel that will do Set(BRIDGE_FEATURES=S(0)) on its invocation via feature code (with some
“call unlimit autorization” dialplan logic before it), in order to be able to un-limit call duration on-demand.
Best regards,
Nenad
2 thoughts on - Possibility To Cancel Call Duration Limit Set In App Dial With Options S(x) Or L(x:y:z) During A Call
The Dial options are not dynamic during the call, they’re just read and set when Dial() is invoked. The same applies for BRIDGE_FEATURES. The TIMEOUT
dialplan function[1] is just what can be changed during the call.
[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+20+Function_TIMEOUT
Thank you Joshua, for the clarification.
I was aware of the TIMEOUT(absolute) function, in fact our current solution for call duration limit/un-limt functionality is based on usage of that function.
It is worth mentioning that it seems to me that Dial options S() and L()
limit call duration from the moment call has been answered, and TIMEOUT
limits from moment it has been executed (so rest of the call setup and time spent waiting for the answer (ringing and/or progress messages) are included in duration limit, so there is difference between call duration limiting via Dial options and via TIMEOUT function.
Thanks again,
Nenad