El Monday 16 July 2007 17:16:04 Marc LEURENT escribió:
> Hello
> Does anyone succeed in having openwengo SIP pings working with openser
> I've added the options module and the fonction below but openser isn't
> answering.
>
>
>
>
> loadmodule "options.so"
>
> ......
>
> if (uri==myself) {
>                 if ((method==OPTIONS) || ( uri=~"sip:[EMAIL PROTECTED]")) {
>                         options_reply();
>                 };
>         };

that will not work since "options_reply()" needs a URI with NO username, so
if you receive "[EMAIL PROTECTED]" then "options_reply()" will say you:

  options_reply(): ruri contains username


If you want to response with a 200 OK to OPTIONS to [EMAIL PROTECTED] you
need to rewrite the URI and take off the username:

if (uri==myself) {
                 if ((method==OPTIONS) || ( uri=~"sip:[EMAIL PROTECTED]")) {
                         rewriteuri("sip:domain.org");
                         options_reply();
                 };
         };

NOTE: This will not work in 1.2.1 version since a bug I reported few days ago,
but it has a some dirty solution:

  
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1753368&group_id=139143



PD: You should too accept OPTIONS to a username empty URI as openser.domain.org,
because that is exactly the "common" and expected behaviour. Maybe something as:

if ((method==OPTIONS) || (( uri=~"sip:[EMAIL PROTECTED]") || 
(uri==~"sip:domain.org"))) {
  ...


Regards.


PPD: Because I see you taking care about OPTIONS to [EMAIL PROTECTED], maybe 
you are using wengophone?


-- 
Iñaki Baz Castillo
[EMAIL PROTECTED]

_______________________________________________
Users mailing list
Users@openser.org
http://openser.org/cgi-bin/mailman/listinfo/users

Reply via email to