Script to route on TGRP integrated with C15 and ClearIP
Page 1 of 1
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)
2) 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
2) 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
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)
2) 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
2) 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
- Attachments
Last edited by NicoleTan on Tue Apr 04, 2023 12:01 pm; edited 2 times in total (Reason for editing : Attached the zip file)
NicoleTan- Number of Messages : 7
Point : 17
Registration Date : 2017-11-27

» Routing Script to disable route retry
» Need to remove the Route header on invite and register, but don't know how to implement the script.
» Script - Manipulate called number in the Registered User Route
» Does ClearIP+FreeSBC wok using UDP without fragmented Invite?
» ProSBC Configuration STIR/SHAKEN with Transnexus ClearIP service
» Need to remove the Route header on invite and register, but don't know how to implement the script.
» Script - Manipulate called number in the Registered User Route
» Does ClearIP+FreeSBC wok using UDP without fragmented Invite?
» ProSBC Configuration STIR/SHAKEN with Transnexus ClearIP service
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum