Hi Owais,
in the SDP it sends, each peer informs the other one where (on which
socket) it wishes to *receive* RTP. So there is no reason why the media
port in the SDP in 200 should match the one in the SDP in the INVITE.
So a peer must send RTP to the UDP port indicated on the "m=" line in
the received SDP and to the IP address indicated in the matching "c="
line in that SDP.
Formally, it is not mandatory that a peer uses the socket on which it
wishes to receive RTP as a source one for the RTP packets it sends, but
some security-oriented implementations may ignore incoming RTP packets
from other source sockets.
Note that in the SIPp scenario, you have to use "media_port" if you want
to loop back the RTP packets received from the peer, and
"auto_media_port" when you want to send your own RTP using "exec
pcap_play_audio". The documentation doesn't say which one should be used
together with "exec rtp_stream".
So use Wireshark (or tcpdump) to verify whether SIPp sends RTP to the
socket requested by the remote peer, and whether the source port of that
RTP matches the one indicated in SIPp's own SDP or not, and if it
doesn't, check the "media_port" vs. "auto_media_port".
If there is a trouble, attach the tcpdump/Wireshark capture taken at the
SIPp machine and the scenario.
Pavel
Dne 27.8.2016 v 10:19 Owais Ahmad napsal(a):
Hi
I have a working SIP and media proxy according to RFC 3261. When I use
SIPP to make a call with media, it does not honour the random media
port generated by the media proxy. 200 OK in response to INVITE
contains a different random port which causes media not being relayed
to the B party.
In the INVITE, I use: m=audio [auto_media_port] RTP/AVP 0 8 96
UAS 200 OK uses: m=audio [media_port] RTP/AVP 0
Has anyone used sipp uac with pcap and media successfully being relayed?
If yes, please share your sipp version and let me know if you
experienced this or not.
Regards,
Owais
------------------------------------------------------------------------------
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users
------------------------------------------------------------------------------
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users