how to find who has disconnected call

General discussions about Asterisk.

Moderators: Moderator, Support

how to find who has disconnected call

Postby hkc323 » Mon Oct 05, 2015 6:58 am

Any help >>>>???
Test case :
Assume . A is Src and B is dst
1) User A and User B are on Call
2) User B has disconnected call .
or
2) User A has disconnected call.

CDR() has userfield can be read and write .
CDR() dst src dchannel channel lastapp lastcontaxt .
which variable and how to use them .
hkc323
Newsterisk
 
Posts: 37
Joined: Sun Dec 22, 2013 11:40 pm

Re: how to find who has disconnected call

Postby hkc323 » Tue Oct 06, 2015 7:41 am

Dear Digium engineers or asterisk Developer/Professional please help me on this below.


https://supportforums.cisco.com/discussion/11687901/ucce-85-call-terminator-information-who-ended-call


like cisco support :
Hello,

In the TCD (Termination Call Detail) table which you can find in the HDS database, you can find a column called "CallDisposition". This column contains codes that refer to how the call was ended (i.e. Call Disposition code of 52 refers to "Called Party Disconnected").

Reference: CTI Server Reference Guide

http://www.cisco.com/en/US/docs/voice_i ... isvr80.pdf

Also, you can find many posts on this forum relating to "Call Disposition" (i.e. https://supportforums.cisco.com/message/3490321)

1. If the customer disconnects the call, the Call disposition of the call(all 3 legs) will be 13.

2. If the agent disconnects the call, the second call leg disposition is 52 and other 2 is 13

====
Dose asterisk has some set of functionality or feature . ???/
Please reply as soon as possible .

===
hkc323
Newsterisk
 
Posts: 37
Joined: Sun Dec 22, 2013 11:40 pm

Re: how to find who has disconnected call

Postby david55 » Tue Oct 06, 2015 2:50 pm

See viewtopic.php?f=13&t=83916

You can also get it from the order of the hangup events in channel event logging, which you should probably be using as it sounds like you have non-trivial logging requirements.

This should have been asked on Asterisk Support.
david55
Moves Like Spencer
 
Posts: 12570
Joined: Fri Sep 26, 2008 5:03 am

Re: how to find who has disconnected call

Postby satish4asterisk » Wed Oct 07, 2015 3:57 am

I normally use something like below to find out who disconnected the call

exten => _X.,1,Set(DisconnectedBy=CALLER)
; g - Proceed with dialplan execution at the next priority in the current extension if the destination channel hangs up.
same => n,Dial(${YOUR_DIAL_TECHNOLOGY}/${NUMBER},,g)
same => n,Set(DisconnectedBy=CALLEE)
same => n,Hangup

exten => h,1,NoOp(DisconnectedBy ${DisconnectedBy})
same => n,Set(CDR(userfield)=${DisconnectedBy})

--Satish Barot
satish4asterisk
Oldsterisk
 
Posts: 210
Joined: Fri Dec 23, 2011 1:12 am

Re: how to find who has disconnected call

Postby hkc323 » Wed Oct 07, 2015 4:33 am

Many Many Thanks your suggestion works .
hkc323
Newsterisk
 
Posts: 37
Joined: Sun Dec 22, 2013 11:40 pm


Return to Asterisk General

Who is online

Users browsing this forum: No registered users and 6 guests