Skip to content
Snippets Groups Projects
  • Ben Ford's avatar
    12741171
    res_stir_shaken: Add outbound INVITE support. · 12741171
    Ben Ford authored
    Integrated STIR/SHAKEN support with outgoing INVITEs. When an INVITE is
    sent, the caller ID will be checked to see if there is a certificate
    that corresponds to it. If so, that information will be retrieved and an
    Identity header will be added to the SIP message. The format is:
    
    header.payload.signature;info=<public_key_url>alg=ES256;ppt=shaken
    
    Header, payload, and signature are all BASE64 encoded. The public key
    URL is retrieved from the certificate. Currently the algorithm and ppt
    are ES256 and shaken, respectively. This message is signed and can be
    used for verification on the receiving end.
    
    Two new configuration options have been added to the certificate object:
    attestation and origid. The attestation is required and must be A, B, or
    C. origid is the origination identifier.
    
    A new utility function has been added as well that takes a string,
    allocates space, BASE64 encodes it, then returns it, eliminating the
    need to calculate the size yourself.
    
    Change-Id: I1f84d6a5839cb2ed152ef4255b380cfc2de662b4
    12741171
    History
    res_stir_shaken: Add outbound INVITE support.
    Ben Ford authored
    Integrated STIR/SHAKEN support with outgoing INVITEs. When an INVITE is
    sent, the caller ID will be checked to see if there is a certificate
    that corresponds to it. If so, that information will be retrieved and an
    Identity header will be added to the SIP message. The format is:
    
    header.payload.signature;info=<public_key_url>alg=ES256;ppt=shaken
    
    Header, payload, and signature are all BASE64 encoded. The public key
    URL is retrieved from the certificate. Currently the algorithm and ppt
    are ES256 and shaken, respectively. This message is signed and can be
    used for verification on the receiving end.
    
    Two new configuration options have been added to the certificate object:
    attestation and origid. The attestation is required and must be A, B, or
    C. origid is the origination identifier.
    
    A new utility function has been added as well that takes a string,
    allocates space, BASE64 encodes it, then returns it, eliminating the
    need to calculate the size yourself.
    
    Change-Id: I1f84d6a5839cb2ed152ef4255b380cfc2de662b4