O'Reilly logo

Asterisk: The Future of Telephony by Leif Madsen, Jared Smith, Jim Van Meggelen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

SetCallerPres() — Sets Caller ID presentation flags

Synopsis

    SetCallerPres(presentation)

Sets the Caller ID presentation flags on a Q931 PRI connection.

Valid presentations are:

allowed_not_screened

Presentation Allowed, Not Screened

allowed_passed_screen

Presentation Allowed, Passed Screen

allowed_failed_screen

Presentation Allowed, Failed Screen

allowed

Presentation Allowed, Network Number

prohib_not_screened

Presentation Prohibited, Not Screened

prohib_passed_screen

Presentation Prohibited, Passed Screen

prohib_failed_screen

Presentation Prohibited, Failed Screen

prohib

Presentation Prohibited, Network Number

unavailable

Number Unavailable

Always returns 0.

               exten => 123,1,SetCallerPres(allowed_not_screened)
    exten => 123,2,Dial(Zap/g1/8885551212)

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required