CallingPres( ) | Changes the presentation for the Caller ID |
CallingPres( presentation )
Changes the presentation parameters for the Caller ID on a Q931 PRI connection. These parameters should be set before placing an outgoing call. The argument presentation controls two things: whether or not the person being called can view the Caller ID information (known as presentation ), and whether or not the Caller ID information has been verified by an authoritative source (known as screening ).
|
This application takes the call presentation setting and the screening setting and combines them into one number. The values themselves are defined in the ITU Q931 standard, as shown in Tables B-1 and B-2.
Bit 2 | Bit 1 | Explanation |
---|---|---|
|
| Caller ID information was provided by the user , and not screened. |
| 1 | Caller ID information was provided by the user, and successfully verified. |
1 |
| Caller ID information was provided by the user, and verification failed. |
1 | 1 | Caller ID information was provided by the network. |
Bit 7 | Bit 6 | Explanation |
---|---|---|
|
| Presentation of the Caller ID information is allowed. |
| 1 | Presentation of the Caller ID information is restricted. |
1 |
| The number is not available due to interworking. |
1 | 1 | Reserved. |
Bits 3, 4, 5, and 8 should all be set to zero ( ). Please note that the bits are numbered from most significant to least significant, like this: 87654321.
; set presentation to: ; Presentation Allowed (00000000) ; Network Provided (00000011) ; ------------------ ---------- ; Result = 3 (bitwise AND) (00000011) exten => 123,1,CallingPres(3) exten => 123,2,Dial(Zap/g1/8885551212) ; set presentation to: ; Presentation Restricted (00100000) ; User-provided, verified, and passed (00000001) ; ------------------ ---------- ; Result = 33 (bitwise AND) (00100001) exten => 124,1,CallingPres(33) exten => 124,2,Dial(Zap/g1/8885551213)
SetCallerPres( ) , SetCallerID( )