Upgrade 3CX to v18 and get it hosted free!

Asterisk cmd CallingPres

Author image

Synopsis

Change the presentation for the callerid

This Application has been removed, and is no longer present.

Description:

CallingPres(number)

Changes the presentation for the callerid. Should be called before placing an outgoing call.

The value itself is a means of giving information about the caller’s telephone number. (Note that libpri incorrectly processes this as one value, where in actual fact it is two different values, stored within the same byte.)

The values itself is defined as follows in ITU Q931 (note that the bits are being numbered from 1, not 0):

You will need to have “usecallingpres=yes” in the zapata.conf file for this to be passed out onto your PRI.

Presentation indicator (octet 3a)

Bits
7 6 Meaning
0 0 Presentation allowed
0 1 Presentation restricted
1 0 Number not available due to interworking
1 1 Reserved

Screening indicator (octet 3a)

Bits
2 1 Meaning
0 0 User-provided, not screened
0 1 User-provided, verified and passed
1 0 User-provided, verified and failed
1 1 Network provided

In essence, it says, ‘Is the person who has been called allowed to see the callers number?’ and ‘What authority was used to verify that this is a genuine number?’

Explanation

Number is a octet, and the only bits you need worry about are bits 1,2,6 and 7
Bits 1 and 2 define the screening indicator, and bits 6 and 7 define the Presentation indicator. The placement of the Bits and Meaning Header messed me up a little bit, as did the ‘(octet 3a)’ as I was wondering what importance the 3a had.

Examples for some general settings:

Bit template: 0PP000SS; where bit positions are 87654321; note that the PP bits are in the 7 and 6 positions and that the SS bits are in the 2 and 1 positions; build the desired binary number then convert to decimal

Presentation Allowed, Network Provided: decimal 3 is binary 00000011
Presentation Restricted, User-provided, not screened: decimal 32 is binary 00100000
Presentation Restricted, User-provided, verified, and passed: decimal 33 is binary 00100001
Presentation Restricted, Network Provided: decimal 35 is binary 00100011

Note: There is a newer version of the function called SetCallerPres() that it is probably better to use, since it accepts textual descriptions instead of numeric values. The result is identical, however.

See Also


Asterisk | Applications | Functions | Variables | Expressions | Asterisk FAQ


Article Reviews

Write a Review

Your email address will not be published. Required fields are marked *

Required Field. Minimum 5 characters.

Required Field. Minimum 5 characters, maximum 50.

Required field.There is an error with this field.

Required Field.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

There are no reviews for this article. Be the first one to write a review.

Related Posts:

Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.