Use Cases:SIP Redirect to ALL: Difference between revisions
mNo edit summary |
(LM Updated routing script instructions) |
||
Line 19: | Line 19: | ||
|- | |- | ||
| | | | ||
*[[Toolpack:Call_Routes_Settings_B#Routing_Script|Configure Routing scripts]]. | *[[Toolpack:Call_Routes_Settings_B#Routing_Script|Configure Routing scripts]]. | ||
**'''Routing Scripts''' -> Import Script File | **'''Routing Scripts''' -> Import Script File | ||
***'''File'''-> redirect_routing.rb | ***'''File'''-> [[Media:Redirect_routing.rb.zip|redirect_routing.rb]] | ||
***'''ScriptType'''-> Customer | ***'''ScriptType'''-> Customer | ||
***'''Load on startup''' -> unchecked | ***'''Load on startup''' -> unchecked | ||
**'''Routing Scripts''' -> | **'''Routing Scripts''' -> Select Main Script | ||
***'' | ***At start of script: | ||
*** | ****require 'redirect_routing' | ||
*** | ***In the main class: | ||
****include RedirectQuery | |||
****before_filter method = redirect_query | |||
| | | | ||
*[[Toolpack:Allocating_a_SIP_Network_Access_Point_(NAP)_D|Configure NAP]]. When you configure the NAPs, you need these: | *[[Toolpack:Allocating_a_SIP_Network_Access_Point_(NAP)_D|Configure NAP]]. When you configure the NAPs, you need these: | ||
Line 81: | Line 83: | ||
== Files used for routing scripts == | == Files used for routing scripts == | ||
[[Media: | [[Media:Redirect_routing.rb.zip|Redirect to SIP, ISDN, SS7 file]] |
Revision as of 16:34, 22 October 2018
Applies to version(s): v2.8 and above
In this scenario, the incoming call is sent to a SIP redirect server, which returns a 3xx message and a new call is sent to any other networks, be it SIP, ISDN,SS7, SIGTRAN, CAS.
This is the call flow of such a scenario. A 302 Moved temporarily is returned from the SIP redirect server and new calls are made to different networks. The calls going to SS7 will need a called number prefix of 888, for ISDN 666 and for SIP 777.
Configure Routing Scripts | Configure NAP | Configure NAP Colums | Configure Routes |
---|---|---|---|
|
You can add more SIP redirect server as needed
This will allow calls to be redirected to any IPs using this SIP transport Server |
Select REDIRECT for each NAP that is a SIP Redirect server and you can prioritize with group (lowest value is highest priority) and weight (to load balance) |
|
Also make sure these settings are applied:
SIP -> Header Parameters -> Use legacy redirection mode [unchecked] Profiles -> Edit Reason Cause Mapping -> 302 Moved temporarily-> Route retry action -> Process Call Routing gateway -> use Script -> Routing Scripts