2 namespace callnotifier;
6 const ALERTING = "\x01";
7 const CALL_PROCEEDING = "\x02";
9 const CONNECT = "\x07";
10 const SETUP_ACKNOWLEDGE = "\x0D";
11 const DISCONNECT = "\x45";
12 const RELEASE = "\x4D";
13 const RELEASE_COMPLETE = "\x5A";
14 const FACILITY = "\x62";
15 const INFORMATION = "\x7B";
18 * Message type, see the class constants
24 * Call reference number to distinguish concurrent calls
31 * If the message is from the call originating device, or the
34 * - 0 = device that originated the call
35 * - 1 = device that answers to orignator requests
42 * Service AccessPoint Identifier
51 * Is 1 when the message contains a command to the TE or
52 * the answer to a command from the TE.
54 * 0 when it it is a request from the TE to the network,
55 * or the answer to a TE request.
62 * Terminal Endpoint Identifier (internal Telephone ID)
63 * TEI=127 means broadcast
71 * 0 - information block
78 * Array of EDSS1_Parameter objects
82 public $parameters = array();
85 public function getTypeName()
87 $rc = new \ReflectionClass($this);
88 foreach ($rc->getConstants() as $name => $value) {
89 if (ord($value) == $this->type) {