We are trying to use the TSP API to write an interface that allows one of our custom apps to place a call and pass a client matter code (CMC) to the phone system, but are having troubles with the tone.
has anyone done this? if so, can you post an example of how this can be done.
we have used the API, and see that it is possible, but we can't seem to get it working.
The issue is that while Cisco states that it can pass the CMC after receiving a tone we have been unable to get the tone correct. We are asking for an example of working code. What we know so far is:
The Cisco CallManager alerts a user of a phone that a FAC or CMC must be entered by sending a "ZipZip" tone to the phone, which the phone in turn plays to the user. The CiscoTSP will send a new LINE_DEVSPECIFIC event to the application whenever a "ZipZip" tone is to be played by the application. The application can use this to indicate when a FAC or CMC is required. For an application to start receiving the new LINE_DEVSPECIFIC event, it must perform the following steps:
â¢lineOpen with dwExtVersion set to 0x00050000 or higher
â¢lineDevSpecific - Set Status Messages to turn on the Call Tone Changed device specific events
The application can enter the FAC or CMC code by using the lineDial() API. The code may be entered in its entirety or it may be entered one digit at a time. An application may also enter the FAC and CMC code in the same string as long as they are separated by a "#" character and also ended with a "#" character. The optional "#" character at the end only serves to indicate to the Cisco CallManager that dialing is complete.
We cannot find any examples of using the tone change events and what is in the API documentation is not clear