Link to home
Start Free TrialLog in
Avatar of lorsungcu
lorsungcu

asked on

How can I tell for sure which party hung up a call in Asterisk?

I need to be able to tell which party hung up a call in Asterisk - is there something in the logs that will tell me that, or is there something I can add to the dialplan?  I also need to be able to tell the difference between a call that was hung up normally and a call that was ended as a result of network issues; I assume that will be something I need to add dialplan stuff for...Im using Elastix as the PBX, and ideally I'd like to add this data into CDR data, so it's searchable and we can view it within the various call data pages.
Avatar of Alex Bahar
Alex Bahar
Flag of Australia image

Disconnect code/clause should be in the CDRs. So you can seperate the normal call clearing from abnormal disconnects (if Asterisk is aware of it of course).
 
Caller party/Called Party clearing are both considered normal disconnect. The only way to understand whic party hung up first is to look at the call traces. But you cannto leave the traces enabled all the time as it will affect the performance if you have large call volume.
Avatar of lorsungcu
lorsungcu

ASKER

What in the call trace will show who hung up?  I can set a separate server up to handle this, if I need.
ASKER CERTIFIED SOLUTION
Avatar of col_forbin13
col_forbin13
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial