Hello,

 

We’re testing kamailio 4.3.4 with two kamailio’s communicating with each other. One of them is a gateway with rtpengine at the carrier side, the other is a basic sip router.

When calling a destination and cancelling the INVITE a 487 is received from the carrier and directly ACK’d by the first kamailio and in turn is forwarded to the second.

But the 487 response received by the 2nd kamailio doesn’t have a Via header which results in kamailio printing the error: receive_msg(): no via found in reply.

 

Any ideas why the forwarded 487 doesn’t contain a Via header and how to fix this?

 

Note: IP’s are changed.

 

Carrier: 10.0.0.1

Kamailio 1: 10.14.0.1

Kamailio 2: 10.14.0.2

 

U 10.0.0.1:5060 -> 10.14.0.1:5060

SIP/2.0 487 Request Cancelled.

Via: SIP/2.0/UDP 10.14.0.1;branch=z9hG4bK8e28.642c68037d059634308d4be8fe3f0cdc.0.

From: "+31612345678" <sip:+31612345678@10.14.0.3:5060>;tag=109ac722.

To: <sip:003112345678@10.14.0.3:5060>;tag=sbcsipuas_1_C22196_20160314080307791_b59sb10.

Call-ID: 78100MjY3OGExZmMyODU2MzAyMzM5ODA3MmNhMDdlMzg0MzU.

Contact: <sip:10.0.0.1:5060>.

CSeq: 2 INVITE.

Server: sbc_5.

Content-Length: 0.

.

 

#

U 10.14.0.1:5060 -> 10.0.0.1:5060

ACK sip:003112345678@10.0.0.1:5060 SIP/2.0.

Via: SIP/2.0/UDP 10.14.0.1;branch=z9hG4bK8e28.642c68037d059634308d4be8fe3f0cdc.0.

Max-Forwards: 67.

To: <sip:003112345678@10.14.0.3:5060>;tag=sbcsipuas_1_C22196_20160314080307791_b59sb10.

From: "+31612345678"<sip:+31612345678@10.14.0.3:5060>;tag=109ac722.

Call-ID: 78100MjY3OGExZmMyODU2MzAyMzM5ODA3MmNhMDdlMzg0MzU.

CSeq: 2 ACK.

Content-Length: 0.

.

 

#

U 10.14.0.1:5060 -> 10.14.0.2:5060

SIP/2.0 487 Request Cancelled.

From: "+31612345678" <sip:+31612345678@10.14.0.3:5060>;tag=109ac722.

To: <sip:003112345678@10.14.0.3:5060>;tag=sbcsipuas_1_C22196_20160314080307791_b59sb10.

Call-ID: 78100MjY3OGExZmMyODU2MzAyMzM5ODA3MmNhMDdlMzg0MzU.

Contact: <sip:10.0.0.1:5060>.

CSeq: 2 INVITE.

Server: sbc_5.

Content-Length: 0.