Is It Possible to Know, who hangup the call? User1 or User2

janzter
Joined: Tue 19 of Nov, 2013

Is It Possible to Know, who hangup the call? User1 or User2

Posted:Tue 19 of Nov, 2013 (22:46 UTC)
Hi Guys, Please Help Me, I need to Know who hangup the call via Event
Thanks!

Original User1 to User 2


Link
Array
(
    [Event] => Link
    [Privilege] => call,all
    [Channel1] => SIP/cc100-0000016b
    [Channel2] => SIP/cc102-0000016c
    [Uniqueid1] => 1384900032.393
    [Uniqueid2] => 1384900034.394
    [CallerID1] =>
    [CallerID2] => 102
)

Hangup
Array
(
    [Event] => Hangup
    [Privilege] => call,all
    [Channel] => SIP/cc102-0000016c
    [Uniqueid] => 1384900034.394
    [Cause] => 16
    [Cause-txt] => Normal Clearing
)


Hangup Event always give's the Channel and Unique ID of User #2

I`m using a PHP phpagi-asmanager.php

Thanks
Janzter