Quoting Gregoire <mlgg(a)hispeed.ch>ch>:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi!
I am wondering where I can find more information about the
loose_route() function. On Wiki, I can see that it is RFC 3261
compliant and understand what it's the difference between loose
routing and strict routing, but in my conf. file I have a test like:
if(loose_route()){...}
and I 'd like to know what kind of value this function can return or
when can it return something else than true?
To my knowledge, loose_route() returns a negative value in case of
invalid headers in the sip message or other "internal" errors. It
returns 1 (or TRUE) in case it finds a Route: header including the
proxy's domain. In this case, the function will also remove the proxy's
domain from the Route: header and sets the destination URI to the next
hop address found in the Route: header.
The function returns 0 (FALSE) if there is no Route: header present in
the message.
Also have a look at the source file /modules/rr/loose.c, in particular
functions loose_route() and after_loose().
Christian
Does someone have some information about that?
Thanks
Greg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org
iD8DBQFFZv/iI8gmGeMTr0sRAgg8AKCA9CGb6hI9FEhdE8BMm5nlnXDKkACgjZBA
NFrRWixi2BtEE6e2YrAfg9g=
=ucXk
-----END PGP SIGNATURE-----
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users