1 | <?php |
||
29 | class ChannelDestroyed extends Event implements IdentifiableEventInterface |
||
30 | { |
||
31 | /* Causes for disconnection (from Q.931) */ |
||
32 | const AST_CAUSE_UNALLOCATED = 1; |
||
33 | const AST_CAUSE_NO_ROUTE_TRANSIT_NET = 2; |
||
34 | const AST_CAUSE_NO_ROUTE_DESTINATION = 3; |
||
35 | const AST_CAUSE_CHANNEL_UNACCEPTABLE = 6; |
||
36 | const AST_CAUSE_CALL_AWARDED_DELIVERED = 7; |
||
37 | const AST_CAUSE_NORMAL_CLEARING = 16; |
||
38 | const AST_CAUSE_USER_BUSY = 17; |
||
39 | const AST_CAUSE_NO_USER_RESPONSE = 18; |
||
40 | const AST_CAUSE_NO_ANSWER = 19; |
||
41 | const AST_CAUSE_CALL_REJECTED = 21; |
||
42 | const AST_CAUSE_NUMBER_CHANGED = 22; |
||
43 | const AST_CAUSE_DESTINATION_OUT_OF_ORDER = 27; |
||
44 | const AST_CAUSE_INVALID_NUMBER_FORMAT = 28; |
||
45 | const AST_CAUSE_FACILITY_REJECTED = 29; |
||
46 | const AST_CAUSE_RESPONSE_TO_STATUS_ENQUIRY = 30; |
||
47 | const AST_CAUSE_NORMAL_UNSPECIFIED = 31; |
||
48 | const AST_CAUSE_NORMAL_CIRCUIT_CONGESTION = 34; |
||
49 | const AST_CAUSE_NETWORK_OUT_OF_ORDER = 38; |
||
50 | const AST_CAUSE_NORMAL_TEMPORARY_FAILURE = 41; |
||
51 | const AST_CAUSE_SWITCH_CONGESTION = 42; |
||
52 | const AST_CAUSE_ACCESS_INFO_DISCARDED = 43; |
||
53 | const AST_CAUSE_REQUESTED_CHAN_UNAVAIL = 44; |
||
54 | const AST_CAUSE_PRE_EMPTED = 45; |
||
55 | const AST_CAUSE_FACILITY_NOT_SUBSCRIBED = 50; |
||
56 | const AST_CAUSE_OUTGOING_CALL_BARRED = 52; |
||
57 | const AST_CAUSE_INCOMING_CALL_BARRED = 54; |
||
58 | const AST_CAUSE_BEARERCAPABILITY_NOTAUTH = 57; |
||
59 | const AST_CAUSE_BEARERCAPABILITY_NOTAVAIL = 58; |
||
60 | const AST_CAUSE_BEARERCAPABILITY_NOTIMPL = 65; |
||
61 | const AST_CAUSE_CHAN_NOT_IMPLEMENTED = 66; |
||
62 | const AST_CAUSE_FACILITY_NOT_IMPLEMENTED = 69; |
||
63 | const AST_CAUSE_INVALID_CALL_REFERENCE = 81; |
||
64 | const AST_CAUSE_INCOMPATIBLE_DESTINATION = 88; |
||
65 | const AST_CAUSE_INVALID_MSG_UNSPECIFIED = 95; |
||
66 | const AST_CAUSE_MANDATORY_IE_MISSING = 96; |
||
67 | const AST_CAUSE_MESSAGE_TYPE_NONEXIST = 97; |
||
68 | const AST_CAUSE_WRONG_MESSAGE = 98; |
||
69 | const AST_CAUSE_IE_NONEXIST = 99; |
||
70 | const AST_CAUSE_INVALID_IE_CONTENTS = 100; |
||
71 | const AST_CAUSE_WRONG_CALL_STATE = 101; |
||
72 | const AST_CAUSE_RECOVERY_ON_TIMER_EXPIRE = 102; |
||
73 | const AST_CAUSE_MANDATORY_IE_LENGTH_ERROR = 103; |
||
74 | const AST_CAUSE_PROTOCOL_ERROR = 111; |
||
75 | const AST_CAUSE_INTERWORKING = 127; |
||
76 | |||
77 | /** |
||
78 | * @var int Integer representation of the cause of the hangup |
||
79 | */ |
||
80 | private $cause; |
||
81 | |||
82 | /** |
||
83 | * @var string Text representation of the cause of the hangup |
||
84 | */ |
||
85 | private $causeTxt; |
||
86 | |||
87 | /** |
||
88 | * @var Channel |
||
89 | */ |
||
90 | private $channel; |
||
91 | |||
92 | /** |
||
93 | * @return int Integer representation of the cause of the hangup |
||
94 | */ |
||
95 | public function getCause() |
||
99 | |||
100 | /** |
||
101 | * @return string Text representation of the cause of the hangup |
||
102 | */ |
||
103 | public function getCauseTxt() |
||
107 | |||
108 | /** |
||
109 | * @return Channel |
||
110 | */ |
||
111 | public function getChannel() |
||
115 | |||
116 | public function getEventId() |
||
120 | |||
121 | /** |
||
122 | * @param AriClient $client |
||
123 | * @param string $response |
||
124 | */ |
||
125 | public function __construct(AriClient $client, $response) |
||
133 | |||
134 | } |
||
135 |