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

LookupCIDName() — Performs a lookup of a Caller ID name from the AstDB

Synopsis

    LookupCIDName()

Uses the Caller ID number on the active channel to retrieve the Caller ID name from the AstDB (family cidname). This application does nothing if no Caller"*ID was received on the channel. This is useful if you do not subscribe to Caller ID name delivery, or if you want to change the Caller ID names on some incoming calls.

Always returns 0.

    ; look up the Caller ID information from the AstDB, and pass it along
    ; to Jane's phone
    exten => 123,1,Answer()
    exten => 123,2,LookupCIDName()
    exten => 123,3,Dial(SIP/Jane)

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