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 : 18
Point : 38
Registration Date : 2017-11-27
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 Set TNS (Transit Network Selection) by Route
» Script to route the call by otg from the calling parameters
» Routing Script to disable route retry
» Script to add tgrp of NAP's column and trunk-context to Contact header
» Script to Set TNS (Transit Network Selection) by Route
» Script to route the call by otg from the calling parameters
» Routing Script to disable route retry
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|