Kamailio sends INVITE by tm.t_uac_wait RPC command:
INVITE sip:test-0x55e7f1f78e70@192.168.187.215:5022 SIP/2.0
Via: SIP/2.0/UDP 192.168.187.215;branch=z9hG4bK6cf1.f1d087d6000000000000000000000000.0
To: <sip:test@test.tutpro.com>
From:
<sip:click2dial@test.tutpro.com>;tag=2dd3d4389fe3d66c5cb97dc370ab7d7b-9c5a2a58
CSeq: 1 INVITE
Call-ID: 6649e78355ac2(a)test.tutpro.com
Content-Length: 131
User-Agent: OpenSIPg SIP Proxy (5.9.0-0b01 (x86_64/linux))
Max-Forwards: 10
Contact: <sip:click2dial@192.168.187.215:5060>
Content-Type: application/sdp
.. sdp omitted
UAS accepts the INVITE:
SIP/2.0 200 Answering
Via: SIP/2.0/UDP 192.168.187.215;branch=z9hG4bK6cf1.f1d087d6000000000000000000000000.0
To: <sip:test@test.tutpro.com>;tag=a3302e2a0898de3e
From:
<sip:click2dial@test.tutpro.com>;tag=2dd3d4389fe3d66c5cb97dc370ab7d7b-9c5a2a58
CSeq: 1 INVITE
Call-ID: 6649e78355ac2(a)test.tutpro.com
Server: baresip v3.12.0 (x86_64/Linux)
Contact: <sip:test-0x55e7f1f78e70@192.168.187.215:5022>
Allow: INVITE,ACK,BYE,CANCEL,OPTIONS,NOTIFY,SUBSCRIBE,INFO,MESSAGE,UPDATE,REFER
Supported: gruu,replaces,norefersub
Content-Type: application/sdp
Content-Length: 239
.. sdp omitted
After receiving the response, Kamailio automatically sends ACK:
ACK sip:test-0x55e7f1f78e70@192.168.187.215:5022 SIP/2.0
Via: SIP/2.0/UDP 192.168.187.215;branch=z9hG4bK6cf1.f1d087d6000000000000000000000000.0
From:
<sip:click2dial@test.tutpro.com>;tag=2dd3d4389fe3d66c5cb97dc370ab7d7b-9c5a2a58
Call-ID: 6649e78355ac2(a)test.tutpro.com
To: <sip:test@test.tutpro.com>;tag=a3302e2a0898de3e
CSeq: 1 ACK
User-Agent: OpenSIPg SIP Proxy (5.9.0-0b01 (x86_64/linux))
Content-Length: 0
The problem is that Max-Forwards header is missing from the ACK.
Should I have something in config file to add it or is this a bug?
-- Juha