TT#116101 scenarios/invite_sdp_filter: fix sdp in 200OK reply

Even if the video support is disabed by the callee, a codec has to be
provided in the reply. Addin coded 34 equel to the one received in the
initial INVITE.

The missing codec was causing SEMS to add an empty line after the
sdp m= line causing rtpengine to return:
error: Failed to parse SDP

Change-Id: I80227c9dd9a34a21b278d9b069d5af88eb504655
mr10.0
Marco Capetta 5 years ago
parent 91a7265609
commit 770dbb7801

@ -46,8 +46,7 @@ messages:
- 'a=rtpmap:8 PCMA/8000'
- 'a=sendrecv'
- 'a=ptime:50'
- 'm=video 0 RTP/AVPF'
- 'a=sendrecv'
- 'm=video 0 RTP/AVPF 34'
- - 'SIP/2.0 200 OK'
- 'Record-Route: <sip:127.0.0.1:5062;lr=on;ftag=[^;]+;vsf=[^;]+;rtpprx=yes>'
- 'Record-Route: <sip:127.0.0.1;r2=on;lr=on;ftag=[^;]+;ngcplb=yes;nat=yes;socket=udp:[% server_ip %]:5060>'

@ -46,9 +46,7 @@ messages:
- 'a=rtpmap:8 PCMA/8000'
- 'a=sendrecv'
- 'a=ptime:50'
- 'm=video 0 RTP/AVPF'
- ' '
- 'a=sendrecv'
- 'm=video 0 RTP/AVPF 34'
- - 'SIP/2.0 200 OK'
- 'Record-Route: <sip:127.0.0.1:5062;lr=on;ftag=[^;]+;vsf=[^;]+;rtpprx=yes>'
- 'Record-Route: <sip:127.0.0.1;r2=on;lr=on;ftag=[^;]+;ngcplb=yes;nat=yes;socket=udp:[% server_ip %]:5060>'

@ -45,7 +45,7 @@
m=audio [media_port] RTP/AVP 8
a=rtpmap:8 PCMA/8000
a=ptime:50
m=video 0 RTP/AVPF
m=video 0 RTP/AVPF 34
]]>
</send>

@ -45,7 +45,7 @@
m=audio [media_port] RTP/AVP 8
a=rtpmap:8 PCMA/8000
a=ptime:50
m=video 0 RTP/AVPF
m=video 0 RTP/AVPF 34
]]>
</send>

Loading…
Cancel
Save