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)

Get Asterisk: The Future of Telephony now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.