NetNumber SAPI Script
Page 1 of 1
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 :<received identity information>
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"
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 :<received identity information>
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
Similar topics
» Route on TGRP with stir shaken and pass all original parameters
» Script to add tgrp of NAP's column and trunk-context to Contact header
» Script to route the call by otg from the calling parameters
» Script to remove sip header
» Location to PANI Script
» Script to add tgrp of NAP's column and trunk-context to Contact header
» Script to route the call by otg from the calling parameters
» Script to remove sip header
» Location to PANI Script
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum