Actions

Use Cases:SIP Redirect to SIP: Difference between revisions

(Removed creation of group/weight parameters - not needed anymore)
No edit summary
Line 56: Line 56:
<br>
<br>
<br />
<br />
Also make sure these settings are applied:
These settings are set by default, but may be verified if some changes were made in the default configuration:
   SIP -> Header Parameters -> Use legacy redirection mode [unchecked] ( old naming convention was: Allow Recurse)
   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
   Profiles -> Edit Reason Cause Mapping -> 302 Moved temporarily-> Route retry action -> Process Call Routing
   gateway -> use Script -> Routing Scripts
   gateway -> use Script -> default_routing_script


== Files used for routing scripts ==
== Files used for routing scripts ==
[[Media:Redirect_routing.rb.zip|Redirect to SIP files]]
[[Media:Redirect_routing.rb.zip|Redirect to SIP files]]

Revision as of 13:37, 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.

Redirect to SIP.png


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.

SIP Redirect callflow process v2.png

Configure Routing Scripts Configure NAP Configure NAP Colums Configure Routes

Configure Routing scripts

  • Routing Scripts -> Import Script File
  • Routing Scripts -> Select Main Script
    • At start of script:
      • require 'redirect_routing'
    • In the main class:
      • include RedirectQuery
      • before_filter :method => :redirect_query

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

  • 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

In NAP Columns, set the following:

  • 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)

When you Configure Routes, set the following:

  • Routes -> Create New Static Route
    • Name -> To_SIP_Endpoints
    • NAP -> any
    • Remapped_NAP -> SIP_NAP_ANY



These settings are set by default, but may be verified if some changes were made in the default configuration:

 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 -> default_routing_script

Files used for routing scripts

Redirect to SIP files