I am currently working on implementing a feature using the Dial
command with the g
option to determine whether the caller or the callee has disconnected. Everything works fine in most cases, but I encountered an issue when the channel that initiated the call performs a Park
. In this scenario, it is interpreted as the other party disconnecting, and the post-Dial processing proceeds.
I believe that if a Park
is performed by the caller, it should be treated as a disconnect by the caller, and no further processing should occur after the Dial
, even with the g
option set.
However, assuming this is the intended behavior, is there any way to determine who actually disconnected when a Park
is performed?
For example, is there a way to set a custom context before parking the call to differentiate this scenario?
Alternatively, is there any variable that could indicate whether the call was parked or disconnected within the h
extension?
[featuremap]
parkcall => *9