I setup all for read and write to all in manager.conf without success.
Below the AMI events for hangup:
Event: Newexten
Privilege: dialplan,all
Channel: SIP/05832585252-00000023
Context: appoggiocc
Extension: h
Priority: 1
Application: Hangup
AppData:
Uniqueid: 1343571184.47
Event: MusicOnHold
Privilege: call,all
State: Start
Channel: SIP/41-00000021
UniqueID: 1343556484.44
Class: default
Event: Hangup
Privilege: call,all
Channel: Agent/2001
Uniqueid: 1343571184.48
CallerIDNum: 05832585252
CallerIDName: <unknown>
ConnectedLineNum: 3332528989
ConnectedLineName: <unknown>
Cause: 0
Cause-txt: Unknown
Event: VarSet
Privilege: dialplan,all
Channel: SIP/05832585252-00000023
Variable: RTPAUDIOQOS
Value: ssrc=272022469;themssrc=1968036758;lp=0;rxjitter=0.000389;rxcount=1849;txjitter=0.000000;txcount=1828;rlp=0;rtt=0.000000
Uniqueid: 1343571184.47
Event: VarSet
Privilege: dialplan,all
Channel: SIP/05832585252-00000023
Variable: RTPAUDIOQOSJITTER
Value: minrxjitter=0.000000;maxrxjitter=0.000000;avgrxjitter=0.000000;stdevrxjitter=0.000000;reported_minjitter=0.000000;reported_maxjitter=0.000000;reported_avgjitter=0.000000;reported_stdevjitter=0.000000;
Uniqueid: 1343571184.47
Event: VarSet
Privilege: dialplan,all
Channel: SIP/05832585252-00000023
Variable: RTPAUDIOQOSLOSS
Value: minrxlost=0.000000;maxrxlost=0.000000;avgrxlost=0.000000;stdevrxlost=0.000000;reported_minlost=0.000000;reported_maxlost=0.000000;reported_avglost=0.000000;reported_stdevlost=0.000000;
Uniqueid: 1343571184.47
Event: VarSet
Privilege: dialplan,all
Channel: SIP/05832585252-00000023
Variable: RTPAUDIOQOSRTT
Value: minrtt=0.000000;maxrtt=0.000000;avgrtt=0.000000;stdevrtt=0.000000;
Uniqueid: 1343571184.47
Event: VarSet
Privilege: dialplan,all
Channel: SIP/05832585252-00000023
Variable: RTPAUDIOQOS
Value: ssrc=272022469;themssrc=1968036758;lp=0;rxjitter=0.000389;rxcount=1849;txjitter=0.000000;txcount=1828;rlp=0;rtt=0.000000
Uniqueid: 1343571184.47
Event: Hangup
Privilege: call,all
Channel: SIP/05832585252-00000023
Uniqueid: 1343571184.47
CallerIDNum: 3332528989
CallerIDName: <unknown>
ConnectedLineNum: 05832585252
ConnectedLineName: <unknown>
Cause: 16
Cause-txt: Normal Clearing