Script to route on TGRP integrated with C15 and ClearIP

#1 Call from C15: Call will be sent to PBXs or Carriers

  1. Call to PBX
  • Get the tgpr from the request-uri
  • Use this tgrp to match the destination nap
  • Check the destination NAP has send_clearip_flag=NO
  • Create the route to destination NAP (PBX)
  • Call sent to the destination NAP (PBX)
  1. Call to Carrier β€” requires to do Stir/Shaken signing
  • Get the tgpr from the request-uri
  • Use this tgrp to match the destination nap
  • Check the destination NAP has send_clearip_flag=YES
  • Reserver the send_clearip_flag as params[:user_context][:send_clearip_flag_out]
  • Reserver the desitnation nap name as params[:user_context][:dest_nap]
  • Call send to ClearIP
  • ClearIP returns 302 with Identity header
  • Check params[:user_context][:send_clearip_flag_out] = YES
  • Create the route to params[:user_context][:dest_nap]
  • Call sent to params[:user_context][:dest_nap] (Carrier) with identity

#2 Call from PBX or the Carriers: Call shall be sent to C15 with tgrp value in the request-uri

  1. Call from PBX
  • Get the tgpr from Naps column by the incoming NAP name
  • Check the incoming NAP has send_clearip_flag=NO
  • Send the call to C15 by static route with tgpr value in the request-uri
  1. Call from Carrier β€” requires to do Stir/Shaken signing
  • Get the tgpr from Naps column by the incoming NAP name
  • Check the incoming NAP has send_clearip_flag=YES
  • Reserver the send_clearip_flag as params[:user_context][:send_clearip_flag_in]
  • Send the call to ClearIP
  • ClearIP returns 302 with Identity header
  • Check params[:user_context][:send_clearip_flag_in] = YES
  • Send the call to C15 by static route with tgpr value in the request-uri, and the Identity from 302

Script_TGRP with ClearIP.zip (3.8 KB)

The ZIP file cannot be downloaded and navigates to an oops page.

Please see this updated link:
[deleted]

The link goes here: # Oops! That page doesn’t exist or is private.

Apologies. Please try again with the link in the post.

1 Like