Use Cases:SIP Redirect to SIP: Difference between revisions
No edit summary |
(Updated formatting) |
||
Line 12: | Line 12: | ||
<br /> | <br /> | ||
{| colspan="4" border="1" class="wikitable" | {| colspan="4" border="1" class="wikitable" | ||
! width=" | ! width="300" style="background: none repeat scroll 0% 0% rgb(0, 83, 139);" | Configure Routing Scripts | ||
! width=" | ! width="300" style="background: none repeat scroll 0% 0% rgb(0, 83, 139);" | Configure NAP | ||
! width=" | ! width="300" style="background: none repeat scroll 0% 0% rgb(0, 83, 139);" | Configure NAP Colums | ||
! width=" | ! width="300" style="background: none repeat scroll 0% 0% rgb(0, 83, 139);" | Configure Routes | ||
|- | |- | ||
| | | | ||
[[Toolpack:Call_Routes_Settings_B#Routing_Script|Configure Routing scripts]] | |||
*'''Routing Scripts''' -> Import Script File | |||
**'''File'''-> [[Media:Redirect_routing.rb.zip|redirect_routing.rb]] | |||
**'''ScriptType'''-> Customer | |||
**'''Load on startup''' -> unchecked | |||
*'''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]] | |||
*'''NAP''' -> Create New NAP | |||
**'''Name'''-> NAP_REDIRECT_SERVER_A | |||
**'''Proxy address'''-> x.x.x.x (IP of SIP redirect server) | |||
You can add more SIP redirect server as needed | You can add more SIP redirect server as needed | ||
*'''NAP''' -> Create New NAP | |||
**'''Name'''-> SIP_NAP_ANY | |||
**'''Proxy address'''-> NONE | |||
This will allow calls to be redirected to any IPs using this SIP transport Server | This will allow calls to be redirected to any IPs using this SIP transport Server | ||
| | | | ||
In NAP Columns, set the following: | |||
*'''NAP Columns''' -> Create New Nap Column | |||
**'''Name''' -> group | |||
**'''Type Attributes''' -> integer | |||
**'''Default''' -> 50 | |||
*'''NAP Columns''' -> Create New Nap Column | |||
**'''Name''' -> weight | |||
**'''Type Attributes''' -> integer | |||
**'''Default''' -> 100 | |||
*'''NAP Columns''' -> Create New Nap Column | |||
**'''Name''' -> server_type | |||
**'''Type Attributes''' -> NORMAL|REDIRECT | |||
**'''Default''' -> NORMAL | |||
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) | 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) | ||
| | | | ||
When you [[Toolpack:Call_Routes_Settings_B#Static_Route|Configure Routes]], set the following: | |||
*'''Routes''' -> Create New Static Route | |||
**'''Name''' -> To_SIP_Endpoints | |||
**'''NAP''' -> any | |||
**'''Remapped_NAP''' -> SIP_NAP_ANY | |||
|} | |} | ||
Revision as of 13:33, 21 May 2019
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 the SIP contacts received.
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 the SIP endpoints.
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 |
In NAP Columns, set the following:
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) |
When you Configure Routes, set the following:
|
Also make sure these settings are applied:
SIP -> Header Parameters -> Use legacy redirection mode [unchecked] ( old naming convention was: Allow Recurse) Profiles -> Edit Reason Cause Mapping -> 302 Moved temporarily-> Route retry action -> Process Call Routing gateway -> use Script -> Routing Scripts