NetNumber SAPI Script

This script sends a signingRequest including the following to the SHAKEN Signing Service:

  1. The “orig” parameter is populated using the PAI field if present, otherwise using the From header field in the SIP Invite.
  2. The “dest” parameter is populated using the To header field in the SIP Invite.
  3. 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.
  4. The “origid” parameter is determined as described in ATIS-1000074 for the “origid” field in the PASSporT.
  5. The “attest” parameter is determined as described in ATIS-1000074 for the “attest” field in the PASSporT.
  6. The signingRequest is then sent to the SHAKEN Signing Service.
  7. Service return identity info for the call
  8. 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

NetNumber SAPI Script Attachment
netnumber_sapi.zip Delete