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

SIPGetHeader() — Gets a SIP header from an incoming SIP call

Synopsis

    SIPGetHeader(var=headername)

Sets a channel variable named var to the content of the headername SIP header. Skips to priority n+101 (where n is the current priority) if the specified header does not exist.

    ; get the "To" header and assign it to the variable called TESTING
    exten => 123,1,SIPGetHeader(TESTING=To)

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