Hello Bogdan, An ven., janv 22, 2010, Bogdan-Andrei Iancu schrieb: >[email protected] wrote: >> An jeu., janv 21, 2010, [email protected] schrieb: >>> An mer., janv 20, 2010, Bogdan-Andrei Iancu schrieb: >>>> [email protected] wrote: >>> After running a socket listener on 192.168.0.31 on the OpenSIPS host: >>> >>> $ socat TCP4-LISTEN:2310,bind=192.168.0.31,reuseaddr - >>> SUBSCRIBE >>> sip:[email protected]:2310;transport=tls;line=2acy67zm SIP/2.0 >>> Via: SIP/2.0/TCP 86.90.39.44;branch=G4z9hb82dK8.f144.0 >>> To: <sip:[email protected]>;tag=ty6sjh9iz9 >>> From: <sip:[email protected]>;tag=6c9d4319c74d756e6b696-baa1 >>> CSeq: 11 SUBSCRIBE >>> Call-ID: [email protected] >>> Content-Length: 0 >>> User-Agent: OpenSIPS (1.6.1-tls) >>> Max-Forwards: 70 >>> Event: dialog;sla >>> Contact: <sip:[email protected]> >>> Expires: 610 >>> >>> I'm trying to implement presence by using the presence, >>> presence_xml, pua, and pua_bla modules. >>> >>> So it seems that one of these modules (see event dialog;sla) is >>> getting the contact from the locations table (in AAA on our server) >>> and ignoring the Received header. >>> >>> OpenSIPS replies to messages from UACs such as INVITE and CANCEL >>> properly, and opens connections to the IP in Received. This problem >>> is limited to the SUBSCRIBES sent from one of the presence modules. >>> >> ...and similar SUBSCRIBE messages (sent from one of the presence >> modules) are not having this problem. They are almost the same as >> the one above, but simply don't have a to tag. >> >So you have problems with a SUBSCRIBE that is internally generated >by one of the presence modules? It is not a proxied request, right? > Problem I know I have a problem because tcpdump shows that OpenSIPS is trying to reach a private IP address across the Internet.
Workaround It seems that one of the presence modules is responsible for that, because when I remove bla_handle_notify() and bla_set_flag() from the route script, then the attempted private IP connections stop. Proxied request ...and because I see no SUBSCRIBE (event dialog;sla) messages coming from all the connected UAs (in their logs), it is quite clear that some presence module of OpenSIPS is creating the SUBSCRIBEs. Guesses At first I was sure it was the pua_bla, but after looking at the code I see that pua_bla uses other presence modules (pua, presence, presence_xml?) So it could be that another one is constructing or sending the SUBSCRIBE without observing the 'Received' header, and thus using a private IP instead. Greetings, Brian _______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
