[OpenSIPS-Users] ACK is sent to the wrong IP

Julian Santer julian.santer at rolmail.net
Tue Mar 15 14:14:44 CET 2016


Hi guys,

we use OpenSip 2.1.2.
We have a registrar/core (1.2.3.5) and a edge (1.2.3.4) server. We use the path module with use_received = 1 on the edge server.
This works for the INVITE, but not for the ACK package. The ACK package is relayed to the private IP.

The ACK packages enters in the topology_hiding route on the edge server:

if (topology_hiding_match())
{
    t_relay();
    exit;
}

The package received on edge from the registrar/core looks like:

ACK sip:1.2.3.4;rdlg=6be.12762257 SIP/2.0

Via: SIP/2.0/UDP 1.2.3.5:5060;branch=z9hG4bK0deb.6b9adeb2.2

From: <sip:123456789 at domain>;tag=F8155FD8-19F9

To: <sip:23456789 at domain>;tag=cd783455

Call-ID: Core2_ExwGCwAcKScoSw8uBgl/KDk2AQAoGD8zCgcpJz9oDxgWDnxzFxcmWg0KPDNKcCk2AXUIAT80YXMLMyR1BSwlCUUgNUIgHw--

Max-Forwards:  7

CSeq: 101 ACK

Content-Length: 0

P-hint: rr-enforced

The package send from edge to client looks like:

ACK sip:192.168.0.2:65002;transport=udp SIP/2.0

Via: SIP/2.0/UDP 1.2.3.4:5060;branch=z9hG4bK88d9.aada3c03.2

From: <sip:123456789 at domain> tag=F8155FD8-19F9

To: <sip:23456789 at domain>;tag=cd783455

Call-ID: Edge2_BgsVAAAaIR8SdQYTJgZ5FgcINkV9ESUCXmovIw4ABDUmCnUBXB0mVSYULR8LKiAfAmUBCh8fdD0HCjJVdS83IXwOByQOAAQ8MixzEVxXPGoIKCocYHQmNBJeBjEyAnwQLQAtRWhJ

Max-Forwards:  6

CSeq: 101 ACK

Content-Length: 0

P-hint: rr-enforced

How can I rewrite the destination set to the public IP? What is missing?

The 200 OK for the BYE package is routed correctly:

SIP/2.0 200 OK

Via: SIP/2.0/UDP 192.168.0.2:65002;received=PUBLIC_IP;rport=16855;branch=z9hG4bK-d8754z-5d46c107720d2f4a-1---d8754z-

From: <sip:123456789 at domain.it>;tag=cd783455

To: <sip:23456789 at domain.it>;tag=F8155FD8-19F9

Call-ID: Edge2_BgsVAAAaIR8SdQYTJgZ5FgcINkV9ESUCXmovIw4ABDUmCnUBXB0mVSYULR8LKiAfAmUBCh8fdD0HCjJVdS83IXwOByQOAAQ8MixzEVxXPGoIKCocYHQmNBJeBjEyAnwQLQAtRWhJ

Content-Length: 0

CSeq: 1 BYE

Here the edge server enters the prublic IP in the via header as received param.
Why he don't to this for the ACK package?

Kind regards,
Julian Santer
Raiffeisen OnLine




More information about the Users mailing list