[OpenSER-Users] [LCR] how does "to_gw()" work?

Juha Heinanen jh at tutpro.com
Mon Dec 17 10:49:49 CET 2007


Iñaki Baz Castillo writes:

 >   1.4.4. to_gw([group-id])
 >    Checks if in-dialog request goes to a gateway. If an optional
 >   group-id is given, only gateways belonging to this group are checked.
 > 
 > I suppose that a gateway uses its scheme:IP:port as "Contact" in 200 OK, 
 > so "to_gw()" function matches that scheme:IP:port in RURI and verifies if 
 > there is a To tag to match an in-dialog message and deliver it to
 > gateway. Is  it?

it does do do anything that complicated.  just checks if ip address in
request uri matches that of a gateway.

-- juha




More information about the sr-users mailing list