CallingPres( )


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 has been replaced by the SetCallerPres( ) application, which is easier to use and less dependent on the internal Zaptel structures.


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.

Table B-1. Screening is controlled by bits 2 and 1

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.


Table B-2. Presentation is controlled by bits 7 and 6

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) 

See Also

SetCallerPres( ) , SetCallerID( )



Asterisk. The Future of Telephony
Asterisk: The Future of Telephony: The Future of Telephony
ISBN: B0026OR3OO
EAN: N/A
Year: 2001
Pages: 380

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net