IOSOR Learn
How to Verify P-Asserted-Identity Trust Across SIP Trunks
Test how each SIP trunk handles P-Asserted-Identity against your trust policy, preserve the evidence, and compare verified route controls and cost bands before routing changes.
Lead Telecom & Routing Architect · Lausanne, CH
Verify P-Asserted-Identity (PAI) per trunk with controlled calls from trusted and untrusted ingress, then record whether each hop preserves, rewrites, strips, or rejects it. Change routing only after the evidence matches policy.
Define the trust boundary
Write down which peer may assert identity, in which direction, and under what authentication conditions. Bind trust to the trunk's provisioned IP ranges or authenticated transport identity, not to the mere presence of a PAI header. Separate inbound and outbound rules; a trunk trusted to deliver an assertion is not automatically trusted to originate one.
Build a route test matrix
For every candidate trunk, list direction, ingress peer, destination class, expected PAI outcome, and policy rule. Include a valid trusted assertion, an absent header, a malformed value, a conflicting From value, a duplicate PAI, and an assertion from an untrusted peer. Cover privacy-marked calls separately. Use test numbers and a controlled destination; do not infer production behavior from a single successful call.
Run controlled probes
Send one case at a time through each trunk in both directions where applicable. Compare the received and forwarded PAI, From, Privacy, and relevant identity headers; note whether a rewrite follows the agreed format or silently changes the asserted party. Record call setup result and SIP response. A rejected call is a valid outcome only when the rejection matches the documented policy and is repeatable.
Classify results against policy
Mark each case as pass, controlled rewrite, strip, reject, or unexpected. Pass means the trusted value reaches the intended hop unchanged. A rewrite passes only if the transformation is documented, deterministic, and approved; otherwise classify it as unexpected. For untrusted input, verify that the route removes or rejects the assertion as specified and does not promote caller-controlled data into a trusted identity.
Preserve evidence and compare routes
For each route, retain the test matrix, paired ingress/egress traces, timestamps, response codes, policy version, and an outcome summary. Compare preservation, rewrite controls, rejection behavior, and the ability to enforce the boundary. In the decision record, distinguish observed behavior from stated capability and record the retest owner and date.
Start with IOSOR
- Select the corridor and SIP direction; list the candidate partner routes and the policy owner. 2. Define trusted peers, allowed PAI formats, privacy behavior, and required outcomes for each test case. 3. Run the same controlled probes on every route and save paired traces with timestamps and response codes. 4. Mark each result pass, approved rewrite, strip, reject, or unresolved; block promotion on unresolved cases. 5. Compare observed controls and verified cost bands in the IOSOR SIP route comparison brief.
Related: PAYG hold before first debit · Wallet stop-lines before production.
IOSOR takeaway
Write down which peer may assert identity, in which direction, and under what authentication conditions. In the decision record, distinguish observed behavior from stated capability and record the retest owner and date (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- SIP Registration Expiry Recovery: Failover Gate for Route Selection
Verify how each SIP route handles registration expiry, re-registration storms, and failover to a secondary registrar without dropping active dialogs before you commit traffic.
- SIP Route Cost-Band Verification Before Partner Comparison
Verify quoted SIP termination cost bands against real per-minute, per-DID, and per-channel economics before you commit to a partner route comparison.
- SIP OPTIONS Ping Liveness: Separating False Positives From Real Failover
Decide if your SIP OPTIONS keepalive signal is trustworthy for failover or masking dead routes as healthy. Verify response-code handling and partner readiness.












