This script sends a signingRequest including the following to the SHAKEN Signing Service:
- The “orig” parameter is populated using the PAI field if present, otherwise using the From header field in the SIP Invite.
- The “dest” parameter is populated using the To header field in the SIP Invite.
- The “iat” parameter is populated using the “Date” header field in the SIP Invite. If there is no “Date” header field in the SIP Invite, a Date header field is added to the SIP INVITE.
- The “origid” parameter is determined as described in ATIS-1000074 for the “origid” field in the PASSporT.
- The “attest” parameter is determined as described in ATIS-1000074 for the “attest” field in the PASSporT.
- The signingRequest is then sent to the SHAKEN Signing Service.
- Service return identity info for the call
- Generating a new header before sending the call
Identity :
Publish raw SIP to Routing Script parameter must be enabled under the SIP Stack → Quirks to generate iat parameter
Global options for this filter script:
:netnumber_signing_url A full URL to the NetNumber server. ex: https://gc-trial.netnumbercloud.com/sti-asvs/stir/v1/signing
:authorization An Authentication string gived by NetNumber
How to use
edit main script in 3 places:
require ‘netnumber_sapi’
include NetNumberSapi
before_filter :method => :netnumber_vapi,
:netnumber_verification_url => :“https://gc-trial.netnumbercloud.com/sti-asvs/stir/v1/signing”,
:authorization => :“abc-1234”
Attachments