[Spce-user] One-way RTP: wrong signaling

Serge S. Yuriev me at nevian.org
Thu Apr 16 09:15:57 EDT 2015


Hi,

If somebody interested I managed to fix this by loosing nat_uac_test to 
2 instead of 8 in kamailio_lb config (via custom.tt2)

On 13/04/15 18:10, Serge S. Yuriev wrote:
> Hi,
>
> Kamailio-LB rewrites signaling in the wrong way (c=IN line) and we get 
> one-way RTP :(
>
> U 2015/04/13 17:49:07.378769 83.x.x.142:5060 -> 10.0.64.64:5060
> SIP/2.0 200 OK'
> Record-Route: 
> <sip:127.0.0.1:5062;lr=on;ftag=696416~27154efa-6325-45a2-9e47-67e5d9302ebc-251833022;did=a3b.273;ice_caller=strip;ice_callee=strip;vsf=bWRoWFdrc29zTkN2Y1kzdHk0UmM->'
> Record-Route: 
> <sip:127.0.0.1;r2=on;lr=on;ftag=696416~27154efa-6325-45a2-9e47-67e5d9302ebc-251833022;nat=yes;ngcplb=yes;socket=udp:83.x.x.142:5060>'
> Record-Route: 
> <sip:83.x.x.142;r2=on;lr=on;ftag=696416~27154efa-6325-45a2-9e47-67e5d9302ebc-251833022;nat=yes;ngcplb=yes;socket=udp:83.x.x.142:5060>'
> Via: SIP/2.0/UDP 10.0.64.64:5060;rport=5060;branch=z9hG4bK46e8921d91291'
> From: 
> <sip:12550 at 10.0.64.64>;tag=696416~27154efa-6325-45a2-9e47-67e5d9302ebc-251833022'
> To: <sip:79263789192 at 83.x.x.142>;tag=5B58A9FC-552BD75C00066A91-1145A700'
> Call-ID: 3704db80-52b1d75c-31f3b-4040000a at 10.0.64.64'
> CSeq: 101 INVITE'
> Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, COMET, SUBSCRIBE, 
> NOTIFY, UPDATE, REGISTER'
> Supported: replaces'
> Content-Type: application/sdp'
> Content-Length: 341'
> Contact: 
> <sip:ngcp-lb at 83.x.x.142:5060;ngcpct=7369703a3132372e302e302e313a353038303b707278726f7574653d31>'
> '
> v=0'
> o=CiscoSystemsSIP-GW-UserAgent 927 6868 IN IP4 172.16.250.28'
> s=SIP Call'
> c=IN IP4 172.16.250.28'
> t=0 0'
> m=audio 18616 RTP/AVP 18 4 8 0'
> c=IN IP4 172.16.250.28'
> a=rtpmap:18 G729/8000'
> a=fmtp:18 annexb=yes'
> a=rtpmap:4 G723/8000'
> a=fmtp:4 bitrate=5.3;annexa=no'
> a=rtpmap:8 PCMA/8000'
> a=rtpmap:0 PCMU/8000'
> a=sendrecv'
> a=direction:active'
>
>
> U 2015/04/13 17:49:07.383307 10.0.64.64:5060 -> 83.x.x.142:5060
> ACK 
> sip:ngcp-lb at 83.x.x.142:5060;ngcpct=7369703a3132372e302e302e313a353038303b707278726f7574653d31 
> SIP/2.0'
> Via: SIP/2.0/UDP 10.0.64.64:5060;branch=z9hG4bK46e8a661610f1'
> From: 
> <sip:12550 at 10.0.64.64>;tag=696416~27154efa-6325-45a2-9e47-67e5d9302ebc-251833022'
> To: <sip:79263789192 at 83.x.x.142>;tag=5B58A9FC-552BD75C00066A91-1145A700'
> Date: Mon, 13 Apr 2015 14:49:00 GMT'
> Call-ID: 3704db80-52b1d75c-31f3b-4040000a at 10.0.64.64'
> Route: 
> <sip:83.x.x.142;r2=on;lr=on;ftag=696416~27154efa-6325-45a2-9e47-67e5d9302ebc-251833022;nat=yes;ngcplb=yes;socket=udp:83.x.x.142:5060>,<sip:127.0.0.1;r2=on;lr=on;ftag=696416~27154efa-6325-45a2-9e47-67e5d9302ebc-251833022;nat=yes;ngcplb=yes;socket=udp:83.x.x.142:5060>,<sip:127.0.0.1:5062;lr=on;ftag=696416~27154efa-6325-45a2-9e47-67e5d9302ebc-251833022;did=a3b.273;ice_caller=strip;ice_callee=strip;vsf=bWRoWFdrc29zTkN2Y1kzdHk0UmM->'
> Max-Forwards: 70'
> CSeq: 101 ACK'
> Allow-Events: presence, kpml'
> Content-Type: application/sdp'
> Content-Length: 200'
> '
> v=0'
> o=CiscoSystemsCCM-SIP 696416 1 IN IP4 10.0.64.64'
> s=SIP Call'
> >>>>c=IN IP4 10.228.8.167'
> b=TIAS:8000'
> b=AS:8'
> t=0 0'
> m=audio 27476 RTP/AVP 18'
> a=rtpmap:18 G729/8000'
> a=ptime:30'
> a=fmtp:18 annexb=no'
>
>
> U 2015/04/13 17:49:07.383896 127.0.0.1:5060 -> 127.0.0.1:5062
> ACK sip:127.0.0.1:5080;prxroute=1 SIP/2.0'
> Record-Route: 
> <sip:127.0.0.1;r2=on;lr=on;ftag=696416~27154efa-6325-45a2-9e47-67e5d9302ebc-251833022;ngcplb=yes;socket=udp:83.x.x.142:5060>'
> Record-Route: 
> <sip:83.x.x.142;r2=on;lr=on;ftag=696416~27154efa-6325-45a2-9e47-67e5d9302ebc-251833022;ngcplb=yes;socket=udp:83.x.x.142:5060>'
> Via: SIP/2.0/UDP 
> 127.0.0.1;branch=z9hG4bKc0ab.4c4d48e8e23cd67ad5d32cb9bbb4967a.0'
> Via: SIP/2.0/UDP 10.0.64.64:5060;rport=5060;branch=z9hG4bK46e8a661610f1'
> From: 
> <sip:12550 at 10.0.64.64>;tag=696416~27154efa-6325-45a2-9e47-67e5d9302ebc-251833022'
> To: <sip:79263789192 at 83.x.x.142>;tag=5B58A9FC-552BD75C00066A91-1145A700'
> Date: Mon, 13 Apr 2015 14:49:00 GMT'
> Call-ID: 3704db80-52b1d75c-31f3b-4040000a at 10.0.64.64'
> Route: 
> <sip:127.0.0.1:5062;lr=on;ftag=696416~27154efa-6325-45a2-9e47-67e5d9302ebc-251833022;did=a3b.273;ice_caller=strip;ice_callee=strip;vsf=bWRoWFdrc29zTkN2Y1kzdHk0UmM->'
> Max-Forwards: 69'
> CSeq: 101 ACK'
> Allow-Events: presence, kpml'
> Content-Type: application/sdp'
> Content-Length: 218'
> P-NGCP-Src-Ip: 10.0.64.64'
> P-NGCP-Src-Port: 5060'
> P-NGCP-Src-Proto: udp'
> P-NGCP-Src-Af: 4'
> P-Sock-Info: udp:83.x.x.142:5060'
> '
> v=0'
> o=CiscoSystemsCCM-SIP 696416 1 IN IP4 10.0.64.64'
> s=SIP Call'
> >>>>c=IN IP4 10.0.64.64'
> b=TIAS:8000'
> b=AS:8'
> t=0 0'
> m=audio 27476 RTP/AVP 18'
> a=rtpmap:18 G729/8000'
> a=ptime:30'
> a=fmtp:18 annexb=no'
> a=direction:active'
>
>
> btw How we can force RTP proxing and define headers filters?
>


-- 
Serge S. Yuriev
Lead VoIP engineer




More information about the Spce-user mailing list