Skip to content
Snippets Groups Projects
  • kkm's avatar
    4c0798e9
    chan_sip: Add dialplan function SIP_HEADERS · 4c0798e9
    kkm authored
    Syntax: SIP_HEADERS([prefix])
    
    If the argument is specified, only the headers matching the given prefix
    are returned.
    
    The function returns a comma-separated list of SIP header names from an
    incoming INVITE message. Multiple headers with the same name are included
    in the list only once. The returned list can be iterated over using the
    functions POP() and SIP_HEADER().
    
    For example, '${SIP_HEADERS(Co)}' might return the string
    'Contact,Content-Length,Content-Type'.
    
    Practical use is rather '${SIP_HEADERS(X-)}' to enumerate optional
    extended headers sent by a peer.
    
    ASTERISK-27163
    
    Change-Id: I2076d3893d03a2f82429f393b5b46db6cf68a267
    4c0798e9
    History
    chan_sip: Add dialplan function SIP_HEADERS
    kkm authored
    Syntax: SIP_HEADERS([prefix])
    
    If the argument is specified, only the headers matching the given prefix
    are returned.
    
    The function returns a comma-separated list of SIP header names from an
    incoming INVITE message. Multiple headers with the same name are included
    in the list only once. The returned list can be iterated over using the
    functions POP() and SIP_HEADER().
    
    For example, '${SIP_HEADERS(Co)}' might return the string
    'Contact,Content-Length,Content-Type'.
    
    Practical use is rather '${SIP_HEADERS(X-)}' to enumerate optional
    extended headers sent by a peer.
    
    ASTERISK-27163
    
    Change-Id: I2076d3893d03a2f82429f393b5b46db6cf68a267