I would like to know how to get the FAC of a call by TAPI, Is it possible ?
Note that this pertains only to allowing applications to provide FAC or CMC for calls they may be attempting - there is no facility for an app to learn of any FAC or CMC used during a call they may be receiving.
Applications can determine the FAC or CMC used for a particular call historically via the Call Detail Record system:
Forced Authorization Code and Client Matter Code :
Cisco Unified TSP supports and interacts with two Cisco Unified Communications Manager features: Forced Authorization Code (FAC) and Client Matter Code (CMC). The FAC feature lets the System Administrator require users to enter an authorization code to reach certain dialed numbers. The CMC feature lets the System Administrator require users to enter a client matter code to reach certain dialed numbers. The system alerts a user of a phone that a FAC or CMC must be entered by sending a “ZipZip” tone to the phone that the phone in turn plays to the user. Cisco Unified TSP will send a new LINE_DEVSPECIFIC event to the application whenever the application should play a “ZipZip” tone. Applications can use this event to indicate when aFAC or CMC isrequired.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 with the lineDial() API. Applications can enter the code in its entirety or 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 dialing is complete.
If an application does a lineRedirect() or a lineBlindTransfer() to a destination that requires a FAC or CMC, Cisco Unified TSP returns an error. The error that Cisco Unified TSP returns indicates whether a FAC, a CMC, or both are required. Cisco Unified TSPsupportstwo new lineDevSpecific() functions, one for Redirect and one for BlindTransfer, that allows an application to enter a FAC or CMC, or both, when a call gets redirected or blind transferred.