<html><head><style type='text/css'>p { margin: 0; }</style><style type='text/css'>body { font-family: 'Arial'; font-size: 12pt; color: #000000}</style></head><body><P>I like to determine that the called user pressed ** to disconnect the call (h option for Dial CMD), and not just hang up the phone.<BR><BR>Is there a way to get that information?<BR><BR>The context file where the call file connects the call person is included (it is simplified).<BR>First thing in the context is calling up the destination, the destination ends up in a IVR to accept or decline the call. (The same can be done with privacy option as I under stand.)<BR><BR>When the call is connected I like the destination via h option to be able to press ** to disconnect and I like to catch this to log that the destination did this and not just hang up the phone when the conversation finished.<BR><BR>Is there a way to do that?<BR><BR>[incoming]<BR>exten => s,1,Wait(1)<BR>exten => s,n,Answer()<BR>exten => s,n,Dial(Local/${DSTPHONE}@from-internal|60|trgM(dst-ivr^${CALLER_NAME}))<BR>exten => s,n,Noop(After Dial)<BR>; Destination hangup<BR>exten => s,n,Goto(result-${PC_STATUS}|10)<BR>;No we get here when destination hangup, both normal hangup and by pressing **<BR>; We get here if the dst accepted the call and then pressed ** to abuse<BR>exten => result-1,10,Playback(custom/callrejected)<BR>exten => result-1,n,Hangup()<BR>exten => h,1,Noop(PC - Hangup)<BR>; HERE I LIKE TO LOG if destination pressed ** or just hangup<BR>exten => h,n,system(/pc/bin/log_call ${DIALEDTIME}:::${ANSWEREDTIME}:::${PC_STATUS}:::${HANGUPCAUSE}:::${DIALSTATUS} ) <BR><BR><FONT style="BACKGROUND-COLOR: #ffffbb">Regards Max</FONT><BR></P></body></html>