Tutorial 3 B - Create Contact Answer Hold Unhold
2. Create Contacts, Answer, Hold and UnHold
Step 1: Updating the local hosts file
Step 2: Use soapUI to create the WSDL interface
Step 3: Login to the CCT Server
Step 4: Use Session Service to GetTerminals
Step 5: Use Session Service to GetAddresses
Step 6: Use Session Service to CreateContact
Step 7: Use Session Service to DropContact
Step 8: Use Address Service to Originate
Step 10: Use Session Service to CreateContact, Answer and drop
Step 11: Use Session Service to logOffFromCCTServer
Step 12: Simple Test to Confirm that the ssoToken has expired
2. Create Contacts, Answer, Hold and UnHoldDescription of Tutorial
This tutorial describes how to utilise the features provided by the SOA CCT Web Services. It demonstrates how to create a contact, answer, hold and unhold it. The main procedures in this tutorial are: Step1: Updating the local hosts file Step 2: Use soapUI to create the WSDL interface Step 3: Login to the CCT Server Step 4: Use Session Service to GetTerminals Step 5: Use Session Service to GetAddresses Step 6: Use Session Service to CreateContact Step 7: Use Session Service to DropContact Step 8: Use Address Service to Originate Step 10: Use Session Service to CreateContact, Answer and drop Step 11: Use Session Service to logOffFromCCTServer Step 12: Simple Test to Confirm that the ssoToken has expired This tutorial utilises the Session Service, Address Service and the Terminal Service to demonstrate this functionality. We will use a program called soapUI to send and receive SOAP requests and responses. Notes about this tutorialThe SOA Web Services must be installed and running on an available server You must determine exactly where or how you want to implement the example code shown in these tutorials in your own application. To instigate events being received by the consumers, CCT Ref client can be used to login and logout agents, agents going ready/not ready, creating contacts, answer, hold and unhold those contacts. This tutorial uses a program called soapUI 4.5.1 2.05 to send and receive SOAP requests and responses. |
Step 1: Updating the local hosts file
1. Open up the hosts file and map the host name of your server to an IP address |
Step 5: Use Session Service to GetAddresses
1. Create a new request for the method GetAddresses in the Session Service. 2. Populate the ssoToken field with the sooToken. 3. Click the green arrow button to send your request. You will be returned a GetAddressesResponse. 4. Take note of the addresses with a PASSIVE provider name in the response. There are 2 passive addresses being returned with a PASSIVE provider in this response: o Sip:8381041@sipccocs.com AddressA o Sip:8381048@sipccocs.com AddressB |