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 ?
A@OSER1 mailto:A@OSER1 add B@OSER2 mailto:B@OSER2
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:bogdan@voice-system.ro> *To:* Javier Ramirez <mailto:jvr_78@yahoo.com.ar> ; users openser.org <mailto:users@openser.org> *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