Javier,

you just have to extend the script a little bit: if the RURi is for your server, do routing based on location; if not (uri!=myself), just relay it - it will be sent based on domain name to the right proxy.

regards,
bogdan

Javier Ramirez wrote:

ok, thak you
but, if I use 2 OpenSER, how to do this ?
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> add [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> Example: User A OSER 1 OSER 2 User B |---SUBSCRIBER--------->| | | | |-----SUBSCRIBER ---------->| | | | |------SUBSCRIBER --->|
   |
lookup(location) is 0 because B is not registered in A, so sl_send_reply send 404. Best Regards
Javier Ramirez
    ----- Original Message -----
    *From:* Bogdan-Andrei Iancu <mailto:[EMAIL PROTECTED]>
    *To:* Javier Ramirez <mailto:[EMAIL PROTECTED]> ; users
    openser.org <mailto:[email protected]>
    *Sent:* Friday, May 26, 2006 11:47 AM
    *Subject:* Re: [Users] Forward SUBSCRIBER

    Javier,

    with or without the PA, all the messages will go via your OpenSER...

    if you just want to "
    when A user add B user, send a SUBSCRIBER to OpenSER,
    I need that the OpenSER forward this SUBSCRIBER to B user.
    "
    you do not need the PA.

    as I told you before, just to:
    if (is_method("SUBSCRIBE")) {
        if (lookup("location")) {
            t_relay();
        } else {
           sl_send_reply("404","Not Found");
        }
        exit;
    }

    regards,
    bogdan

    Javier Ramirez wrote:

    > Hi Bogdan,
    > I like use PA module for presence,
    > the users talk only with the PA, the users use OUTBOUND proxy.
    > when A user add B user, send a SUBSCRIBER to OpenSER,
    > I need that the OpenSER forward this SUBSCRIBER to B user.
> > > when I coment the "break;" the SUBSCRIBER message is forward to
    B user.
    > if I don“t coment the break, the SUBSCRIBER end in OpenSER.
    > if (method=="SUBSCRIBE") {
    >      if (!t_newtran()) {
    >          sl_reply_error();
    >     };
    >     handle_subscription("registrar");
    >  # break;
    > };
    > best Regards
    > Javier Ramirez



    __________ NOD32 1.1560 (20060526) Information __________

    This message was checked by NOD32 antivirus system.
    http://www.eset.com



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

Reply via email to