02-biancu-routing_basics.pdf

(157 KB) Pobierz
SIP Tutorial
OpenSER Admin Course
Basic VoIP routing
Voice System SRL
712496017.018.png 712496017.019.png 712496017.020.png 712496017.021.png 712496017.001.png
Overview
routing logic is totally different if the it is about an initial or
sequential request as there are different routing mechanism
initial requests
routing is based on discovery mechanism in order to locate the
destination
initial request does not only discovery, but also records the relevant
hops on the path from source to destination
sequential requests
they are strictly routed based on the information collected by the
initial requests
who do distinguish the type of the requests?
initial request do not have TAG parameter in To header
© Voice System SRL - OpenSER Admin Course 2
712496017.002.png 712496017.003.png 712496017.004.png 712496017.005.png
Initial requests routing...
identify if the initial request is allowed to be processed on the
server (depending on the service type)
Ex:
residential services – is the caller or callee a local subscriber?
depending if we do caller or callee based processing, apply
corresponding routing mechanism like:
enum
aliases
dns
user location
whatever else transformation
© Voice System SRL - OpenSER Admin Course 3
712496017.006.png 712496017.007.png 712496017.008.png 712496017.009.png
....Initial requests routing....
for the initial requests different routing logics may be applied,
depending of the method. For different methods, different
services and routing mechanism make sense.
Ex: MESSAGE versus SUBSCRIBE versus INVITE
not all initial requests open dialogs, so if they not in all cases
make sense to record our server to be passed by the sequential
requests.
Ex: MESSAGE requests are stand alone.
© Voice System SRL - OpenSER Admin Course 4
712496017.010.png 712496017.011.png 712496017.012.png 712496017.013.png
....Initial requests routing
if I need to be on the path of sequential requests, record the
server address as hop – record_routing()
Why ? :
accounting purposes
dialog monitoring
routing though firewalls
network changing
protocol changing
security reasons
© Voice System SRL - OpenSER Admin Course 5
712496017.014.png 712496017.015.png 712496017.016.png 712496017.017.png
Zgłoś jeśli naruszono regulamin