[Users] Route in INVITE

Juha Heinanen jh at tutpro.com
Tue Mar 14 08:22:24 CET 2006


Bogdan-Andrei Iancu writes:

 > by default, loose_route() function detects the pre-loaded route: if 
 > there is only one Route hdr pointing to the server, it will be consumed 
 > and loose_route() will return false. If more than one Route hdr is 
 > present, the routing will be done as usual - function will consume the 
 > Route and set the destination to the next Route - true is returned.

great and thanks for the explanation.  currently, rel_1_0_0 README only
says:

  The function performs loose routing as defined in RFC3261. See
   the RFC3261 for more details.

   This function can be used from REQUEST_ROUTE.

   Example 1-6. loose_route usage
...
loose_route();

i.e., it doesn't explain what loose_route() returns and when.

-- juha




More information about the sr-users mailing list