[OpenSIPS-Users] Private IP in registered AOR causing failure

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Jan 26 11:35:51 CET 2010

Hi Brian,

Just consulted with Anca (she is the presence guru) and 2 questions for you:

1) the BLA part is sending the SUBSCRIBEs based on user location and it 
is using the "received" field if present, so it should be ok. Unless you 
set in the bla module the "outbound" param - this will override the 
received info.

2) the subscribe you posted - as you captured it, I supposed it exists 
on network. But I see that the transport in TLS (so TCP based), but how 
come you see the message if opensips is not able to open the TCP conn to 
the private IP..


opensipslist at encambio.com wrote:
> Hello Bogdan,
> An ven., janv 22, 2010, Bogdan-Andrei Iancu schrieb:
>> opensipslist at encambio.com wrote:
>>> An jeu., janv 21, 2010, opensipslist at encambio.com schrieb:
>>>> An mer., janv 20, 2010, Bogdan-Andrei Iancu schrieb:
>>>>> opensipslist at encambio.com wrote:
>>>> After running a socket listener on on the OpenSIPS host:
>>>>    $ socat TCP4-LISTEN:2310,bind=,reuseaddr -
>>>>    SUBSCRIBE sip:MyLogin-OSIPS at;transport=tls;line=2acy67zm SIP/2.0
>>>>    Via: SIP/2.0/TCP;branch=G4z9hb82dK8.f144.0
>>>>    To: <sip:MyLogin-OSIPS at name.host.tld>;tag=ty6sjh9iz9
>>>>    From: <sip:MyLogin-OSIPS at name.host.tld>;tag=6c9d4319c74d756e6b696-baa1
>>>>    CSeq: 11 SUBSCRIBE
>>>>    Call-ID: b1c04118-8826 at
>>>>    Content-Length: 0
>>>>    User-Agent: OpenSIPS (1.6.1-tls)
>>>>    Max-Forwards: 70
>>>>    Event: dialog;sla
>>>>    Contact: <sip:presence at name.host.tld>
>>>>    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
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Bogdan-Andrei Iancu

More information about the Users mailing list