Hi Antoine,

you can use the optimized format:
if ( is_method("REGISTER|SUBSCRIBE|NOTIFY" ) {
  ds_select_domain( "1", "0" );
}
else {
  if ( is_method("INVITE|BYE|CANCEL"  ) {
    ds_select_domain( "2", "0" );
  }
}

regards,
bogdan

Antoine Fressancourt wrote:

Thank you for that answer, I will give it a try and tell you about whether it fits or not

Thank you very much !

2006/2/8, Anders Brownworth < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>:

    Antoine,

    Something like this might do what you are looking for:

    if ( ( method == "REGISTER" ) || ( method == "SUBSCRIBE" ) || (
    method == "NOTIFY" ) ) {
       ds_select_domain( "1", "0" );

    }
    else {
       if ( ( method == "INVITE" ) || ( method == "BYE" ) || ( method
    == "CANCEL" ) ) {
         ds_select_domain( "2", "0" );

       }

    }

    -Anders

    On Wed, 8 Feb 2006, Antoine Fressancourt wrote:

    > Hello,
    >
    > I followed with great interest the discussion about the use of the
    > Dispatcher module that occured in the last few days. Yet, I have
    another
    > question. For design issues, I wish to balance the incoming SIP
    messages
    > according to the method they hold : for instance, I want to
    treat the
    > REGISTER, SUBSCRBE and NOTIFY messages on some machines, and the
    INVITE,
    > BYE, CANCEL on another set of machines. I know this may seem
    strange first,
    > but I wonder if any mecanism allow to do that.
    >
    > Thank you in advance for your answers.
    >
    > Antoine Fressancourt
    >

    -a
    ___________________________________________________________________________
    anders brownworth
    http://www.anders.com/


------------------------------------------------------------------------

_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users

Reply via email to