130 likes | 287 Views
1-5. CTI Message Structure. IAD R&G Group. CTI Message. Two Types Command OpenTSP OfficeServ Link Switch To support TAPI Function Call by Application, OpenTSP makes this command Command represents a physical implementation of application request. Event
E N D
1-5 CTI Message Structure IAD R&G Group
CTI Message • Two Types • Command • OpenTSP OfficeServ Link Switch • To support TAPI Function Call by Application, OpenTSP makes this command • Command represents a physical implementation of application request. • Event • Switch OfficeServ Link OpenTSP • represents that there are some changes about Call state / Device Statue etc
CTI Command / Event • Call Control Command / Event • To change Call State From A To B, this call control command is used. (Make Call, Answer Call, Drop Call etc) • To represent the current call state, CTI Event is used. • Query Command / Event • To query the current status of a specific line device like Forward, DND, Callback etc • Set / Reset Command / Event • To change the current status of a specific line device • Call Forward, DND, Vacant Message, Callback etc
Basic Format of Command/Event • Length : includes only the length of Contents. • Contents • Body of CTI Command / Event • Maximum Length less than 300 Bytes.
The Format of CTI Command • About 26 commands • CTI Command has two types • Common Part • All CTI Command has the same format as a prefix • Contents Part • According to each command id, the different contents will be filled.
The Format of CTI Event • About 45 Events • Two fields • Common Fields • Event Type, DiviceID, Seq No, Tenant No. • Content Field • According to each Event id, the different contents will be filled
IDLE DIALTONE OFFERING RINGBACK DISCONNECT CONNECT HOLD Call State Diagram
Each Message Structure • See the CTI Message Specification
Lab 2 : Call Case Sample • Idle -> DialTone -> Idle • ‘I’, ‘N’ • Idle -> DialTone -> Ringback -> Idle • ‘I’, ‘D’, ‘N’ • Idle -> DialTone -> Rinbback -> Connected -> Idle • ‘I’, ‘D’, ‘E’, ‘N’ • Idle -> DialTone ->Ringback -> Connected -> Hold -> Connected -> Idle • ‘I’, ‘D’, ‘E’, ‘H’, ‘R’, ‘N’ • Other Cases
Caller Side TSP/Switch Side Called Side Make Call to Destination Idle State Crate New Call Dial tone Event Idle State Crate New Call Dial Tone State Offering Event Ringback Event Offering State Ringback State Answer This Call Connected Event Connect State Connected Event Connect State Drop This call (Hook On) Drop Event Disconnect State Hook On Event Disconnect/idle State Deallocate Current Call IDLE State Deallocate Current Call Make/Answer/Drop Call
Caller Side TSP/Switch Side Called Side Connect Connect State (Call 1) Connect State (Call 1) Hold Command Hold Event Connect State (Call 1) Hold On State (Call 1) Dial tone Event Timeout Dial tone State (Call 2) Hook On Event IDLE State (Call 2) Retrieve Command Retrieved Event Connect State (Call 1) Connect State (Call 1) Hold / Retrieve Call
Caller Side(201) TSP/ Switch Side Called Side(202) Target Side(202) Connect Connect State (Call 1) Connect State (Call 1) Transfer Command Held Event Hold On State (Call 1) Connect State (Call 1 with 201) Dial tone Event Dial tone State (Call 2) Create New Call Dial to Destination Idle State (Call 1) Offering Event Offering State (Call 1 with 201) Answer Command Ringback State (Call 2) Connected Event Connect State (Call 2) Connect State (Call 1 with 201) Complete Transfer Command Transfered Event Completed Event Connect State (Call 1 with 202) Connect State (Call 1 with 203) Idle State (Call 1) Idle State (Call 1) Transfer Call