Can anyone suggest on how to capture the hangupcause code in the below scenario.
Server dials a customer.
Once customer answers and input a dtmf, server will dial other DNIS.
Native bridging will happen on the call(with two channels).
Now i need to capture both the channels hangup cause code.
In my setup, i am able to get the hangupcause code only for the one channel in which i have initiated the first call.
suggest me on getting the cause code of the second call as well