[SR-Users] options_reply()

Olle E. Johansson oej at edvina.net
Thu Aug 22 10:25:34 CEST 2013


22 aug 2013 kl. 10:07 skrev Alex Balashov <abalashov at evaristesys.com>:

> Hello,
> 
> The options_reply() function does not answer OPTIONS pings that contain a username in the request URI.  To its credit, the documentation does say that, too:
> 
>   http://kamailio.org/docs/modules/4.0.x/modules/siputils.html#idp131056
> 
> The question is: why not?  I do not see anything in RFC 3261 Section 11.1 ("Construction of an OPTIONS Request") that seems to rule out an OPTIONS request with a user part:
> 
>   http://tools.ietf.org/html/rfc3261#section-11.1
> 
> Quite a few UAs out there, including, notably, Metaswitch, do send user parts in the OPTIONS RURI.  To deal with them, I am forced to simply
> 
>   sl_send_reply("200", "OK");
> 
> instead of using options_reply().
> 
> What is the underlying theory?

Guessing that a URI with a user name should be forwarded to that address. URIs pointing to the domain of the server should be responded by the server.

/O


More information about the sr-users mailing list