Routing Script - SIP 302 Handling
Below section describes how to make ProSBC responding to SIP 302 responses.
Last updated
Was this helpful?
Below section describes how to make ProSBC responding to SIP 302 responses.
Last updated
Was this helpful?
To enable this, you must use routing scipts. The default behavior of the SBC does not respond to SIP 302 message until you implement below.
First, go to "Routing Script" session in the Web Portal:
Click on "Create New Script File":
Create a new script file with Name “redirect_routing.rb”. Put the ScriptType as “filter”. Check the checkbox “Load on startup”.
Copy and paste below script into the panel. Click "Create".
It looks like this once created:
Go back to the routing script page, look for the "main" script.
Add below 3 lines into the main script at the exact place as below so that redirect_routing.rb would load correctly.
Next, create your NAPs accordingly.
NS: Being the redirect server that will be returing the SIP 302 response.
AS: Being the NAPs where the redirect server will direct the calls to. In this case, there are 2 possible NAPs, OUT_NAP_A and OUT_NAP_B.
Next, add a new NAP column, this column will be read by the script to match the SIP URL returned from the redirect server. Enter the value that you expect the redirect server would return. If there is a match, this NAP will be saved and be added to the route list.
Lastly, add the static routes. Route incoming calls to the redirect server, let it make the decision of where the calls shall go to as specified in the SIP Contact header. Then the SBC will resend the calls according to the list of contacts.
Now, you are ready to test by sending real incoming calls into the system.
Note: Don't use the "Test Call" feature in the Web Portal for test. You need real incoming calls for the system to correlate the SIP messages properly and responds appropriately to the SIP 302 message.