[Freeswitch-users] Peculiar behavior in FreeSWITCH when media streams for SRTP and RTP are offered in the same SDP
bggoutham at gmail.com
Wed Jan 12 14:26:40 MSK 2011
I am observing a peculiar behavior in FreeSWITCH-1.0.7 with SRTP.
I have the following entry in my dialplan XML file:
<condition field="destination_number" expression="^IVR$">
<action application="set" data="sip_secure_media=true"/>
<action application="bridge" data="loopback/app=socket:
220.127.116.11:8084 async full"/>
A Polycom SoundPoint IP 550 configured in "SRTP best effort" mode dials into
this extension and is connected to the IVR. In this mode, the phone offers
two media streams in the SDP of INVITE; 1st one for SRTP and the 2nd one for
RTP. But the problem is that the media is established in SRTP in one way and
RTP in the other way.
The phone offers the following SDP in the INVITE message:
o=- 1167766638 1167766638 IN IP4 18.104.22.168
s=Polycom IP Phone
c=IN IP4 22.214.171.124
m=audio 5040 RTP/SAVP 9 0 8 18 127
m=audio 5040 RTP/AVP 9 0 8 18 127
As we can see, there are two "m=" lines in the SDP of the offer; the 1st one
for SRTP and the other one for RTP. FreeSWITCH-1.0.7 answers the call by
sending 200OK with the following SDP:
o=FreeSWITCH 1294817064 1294817065 IN IP4 126.96.36.199
c=IN IP4 188.8.131.52
m=audio 11552 RTP/SAVP 9 127
a=silenceSupp:off - - - -
m=audio 0 RTP/AVP 19
As we can see above, FreeSWITCH accepts the SRTP stream and rejects the RTP
stream (by sending port as 0) in the SDP. The Polycom phone sends the media
in SRTP as expected. But, FreeSWITCH sends the media in RTP to the phone
even though it accepted SRTP in the answer (200OK).
Please let me know if this is a bug or am I missing something here?
The debug log of the call coming into FreeSWITCH is pasted here
http://pastebin.freeswitch.org/14998 . If required I can also send the
wireshark traces of this scenario captured in the system where FreeSITCH is
Goutham B G
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the FreeSWITCH-users