We are modifying "from" and "to" headers with rtjson module via a json struct. It works fine in INVITE, TRYING, RINGING and OK but not in the following messages. Kamailio It's changing ONLY "from" and "to" URI BUT NOT the DISPLAY NAME. I think it's the tm module but I can't figure out how to confirm this. Maybe I need to configure something else in my cfg or could it be a bug?
....
....
.....
interface: any
filter: ( port 5060 ) and (ip or ip6)
#
Via: SIP/2.0/UDP 172.16.213.21:5060;branch=z9hG4bK-12775-1-0.
CSeq: 1 INVITE.
Max-Forwards: 70.
Subject: Performance Test.
Content-Type: multipart/mixed;boundary=uniqueBoundary.
Content-Length: 549.
.
--uniqueBoundary.
Content-Type: application/sdp.
.
v=0.
o=user1 53655765 2353687637 IN IP4 172.16.213.21.
s=-.
c=IN IP4 172.16.213.21.
t=0 0.
m=audio 6000 RTP/AVP 8.
a=rtpmap:8 PCMA/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-11,16.
.
--uniqueBoundary.
Content-Type: application/gtd.
Content-Disposition: signal;handling=optional.
.
IAM,.
CGN,04,y,1,y,4,1143617400.
CIC,0000000573.
CPC,09.
CPN,02,y,1,52381660.
FCI,n,n,n,n,y,n,n,u.
GCI,f7140cc78a611601838a002128d7e512.
NOC,0,n,1,n.
PRN,q761*,AR*,oper2,1993.
TMR,02.
.
--uniqueBoundary--.
................
#
SIP/2.0 100 trying -- your call is important to us.
Via: SIP/2.0/UDP 172.16.213.21:5060;branch=z9hG4bK-12775-1-0.
CSeq: 1 INVITE.
Server: kamailio (4.4.4 (x86_64/linux)).
Content-Length: 0.
.
................
#
Via: SIP/2.0/UDP 172.16.213.38;branch=z9hG4bKabaa.840cc83114975a34a37b7af020d37b65.1.
CSeq: 1 INVITE.
Max-Forwards: 69.
Subject: Performance Test.
Content-Type: multipart/mixed;boundary=uniqueBoundary.
Content-Length: 788.
.
--uniqueBoundary.
Content-Type: application/sdp.
.
v=0.
o=user1 53655765 2353687637 IN IP4 172.16.213.38.
s=-.
c=IN IP4 172.16.213.38.
t=0 0.
m=audio 40236 RTP/AVP 8.
a=rtpmap:8 PCMA/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-11,16.
a=sendrecv.
a=rtcp:40237.
a=ice-ufrag:QNCzXhUr.
a=ice-pwd:Ci90BRpdZH51Hx5BaPgGMrGCeh.
a=candidate:P1djl8LFNb5kexbG 1 UDP 2130706431 172.16.213.38 40236 typ host.
a=candidate:P1djl8LFNb5kexbG 2 UDP 2130706430 172.16.213.38 40237 typ host.
.
--uniqueBoundary.
Content-Type: application/gtd.
Content-Disposition: signal;handling=optional.
.
IAM,.
CGN,04,y,1,y,4,1143617400.
CIC,0000000573.
CPC,09.
CPN,02,y,1,52381660.
FCI,n,n,n,n,y,n,n,u.
GCI,f7140cc78a611601838a002128d7e512.
NOC,0,n,1,n.
PRN,q761*,AR*,oper2,1993.
TMR,02.
.
--uniqueBoundary--.
................
#
SIP/2.0 180 Ringing.
Via: SIP/2.0/UDP 172.16.213.38;branch=z9hG4bKabaa.840cc83114975a34a37b7af020d37b65.1.
CSeq: 1 INVITE.
Contact: <sip:172.16.213.31:5060;transport=UDP>.
Content-Type: application/sdp.
Content-Length: 137.
.
v=0.
o=user1 53655765 2353687637 IN IP4 172.16.213.31.
s=-.
c=IN IP4 172.16.213.31.
t=0 0.
m=audio 6000 RTP/AVP 0.
a=rtpmap:0 PCMU/8000.
................
#
SIP/2.0 180 Ringing.
CSeq: 1 INVITE.
Content-Type: application/sdp.
Content-Length: 316.
Via: SIP/2.0/UDP 172.16.213.21:5060;branch=z9hG4bK-12775-1-0.
.
v=0.
o=user1 53655765 2353687637 IN IP4 172.16.213.38.
s=-.
c=IN IP4 172.16.213.38.
t=0 0.
m=audio 40248 RTP/AVP 0.
a=rtpmap:0 PCMU/8000.
a=sendrecv.
a=rtcp:40249.
a=candidate:P1djl8LFNb5kexbG 1 UDP 2130706431 172.16.213.38 40248 typ host.
a=candidate:P1djl8LFNb5kexbG 2 UDP 2130706430 172.16.213.38 40249 typ host.
................
#
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 172.16.213.38;branch=z9hG4bKabaa.840cc83114975a34a37b7af020d37b65.1.
CSeq: 1 INVITE.
Contact: <sip:172.16.213.31:5060;transport=UDP>.
Content-Type: application/sdp.
Content-Length: 213.
.
v=0.
o=user1 53655765 2353687637 IN IP4 172.16.213.31.
s=-.
c=IN IP4 172.16.213.31.
t=0 0.
m=audio 6000 RTP/AVP 0.
a=rtpmap:0 PCMU/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=ptime:20.
a=sendrecv.
................
#
SIP/2.0 200 OK.
CSeq: 1 INVITE.
Content-Type: application/sdp.
Content-Length: 380.
Via: SIP/2.0/UDP 172.16.213.21:5060;branch=z9hG4bK-12775-1-0.
.
v=0.
o=user1 53655765 2353687637 IN IP4 172.16.213.38.
s=-.
c=IN IP4 172.16.213.38.
t=0 0.
m=audio 40248 RTP/AVP 0.
a=rtpmap:0 PCMU/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=ptime:20.
a=sendrecv.
a=rtcp:40249.
a=candidate:P1djl8LFNb5kexbG 1 UDP 2130706431 172.16.213.38 40248 typ host.
a=candidate:P1djl8LFNb5kexbG 2 UDP 2130706430 172.16.213.38 40249 typ host.
................
#
Via: SIP/2.0/UDP 172.16.213.21:5060;branch=z9hG4bK-12775-1-4.
CSeq: 1 ACK.
Max-Forwards: 70.
Subject: Performance Test.
Content-Length: 0.
.
................
#
ACK sip:172.16.213.31:5060;transport=UDP SIP/2.0.
Via: SIP/2.0/UDP 172.16.213.38;branch=z9hG4bKabaa.98116b5795d4c30f52156187a72059c8.0.
CSeq: 1 ACK.
Max-Forwards: 69.
Subject: Performance Test.
Content-Length: 0.
.
................
#
Via: SIP/2.0/UDP 172.16.213.21:5060;branch=z9hG4bK-12775-1-7.
CSeq: 2 BYE.
Max-Forwards: 70.
Subject: Performance Test.
Content-Length: 0.
.
................
#
BYE sip:172.16.213.31:5060;transport=UDP SIP/2.0.
Via: SIP/2.0/UDP 172.16.213.38;branch=z9hG4bK7baa.3cb44935b506e759e3418501b0688b08.0.
CSeq: 2 BYE.
Max-Forwards: 69.
Subject: Performance Test.
Content-Length: 0.
.
................
#
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 172.16.213.38;branch=z9hG4bK7baa.3cb44935b506e759e3418501b0688b08.0.
CSeq: 2 BYE.
Contact: <sip:172.16.213.31:5060;transport=UDP>.
Content-Length: 0.
.
................
#
SIP/2.0 200 OK.
CSeq: 2 BYE.
Content-Length: 0.
Via: SIP/2.0/UDP 172.16.213.21:5060;branch=z9hG4bK-12775-1-7.
.
................
exit
13 received, 0 dropped
Sorry for my english. Thanks in advance!
Diego.