rtpproxy
rtpproxy copied to clipboard
no audio with kamailio & rtpproxy bebind NAT
Hi everyone, I'm new to kamailio and rtpproxy and the problem's been bothering me for days. Any help would highly appreciated.
My network topology is as follows: kamailio5.0 and rtpproxy2.0 are running on the same server. The server is behind NAT, its private ip is 10.240.0.62, public ip is <PUBLICIP>. The server has 5060 tcp&udp, 35000-65000 udp port enabled. There're 2 sip clients(test && test1) running in another LAN(175.100.202.xxx) .
Situation: Both clients registered successfully and they can call each other. But neither of them has audio.(If i kill rtpproxy, audio is ok).
My kamailio cfg(only posted the part that i change),
#!KAMAILIO #!define WITH_MYSQL #!define WITH_DEBUG #!define WITH_AUTH #!define WITH_USRLOCDB #!define WITH_ANTIFLOOD #!define WITH_NAT #!define WITH_PSTN
listen=udp:10.240.0.62:5060 advertise <PUBLICIP>:5060 modparam("rtpproxy", "rtpproxy_sock", "udp:10.240.0.62:64000")
**rtpproxy cmd**:
rtpproxy -A <PUBLICIP> -F -l 10.240.0.62 -m 35000 -M 65000 -s udp:*:64000 -d INFO
Since audio is fine when rtpproxy is not running, I'm assuming i must not configured the rtpproxy properly. The rtpproxy log:
INFO:GLOBAL:rtpp_command_ul_handle: new IPv4/IPv4 session OcriYpSuGsYXQS3W5rKm3Xu5ucwUASIR, tag s-r9nPOPymqfGKOX-WsijidfeaVmGMTY;1 requested, type strong INFO:OcriYpSuGsYXQS3W5rKm3Xu5ucwUASIR:rtpp_command_ul_handle: new session on IPv4 port 37410 created, tag s-r9nPOPymqfGKOX-WsijidfeaVmGMTY;1 INFO:OcriYpSuGsYXQS3W5rKm3Xu5ucwUASIR:rtpp_stream_prefill_addr: pre-filling caller's RTP address with 175.100.202.254:4008 INFO:OcriYpSuGsYXQS3W5rKm3Xu5ucwUASIR:rtpp_stream_prefill_addr: pre-filling caller's RTCP address with 175.100.202.254:4009 INFO:OcriYpSuGsYXQS3W5rKm3Xu5ucwUASIR:rtpp_command_ul_handle: lookup on ports 37410/37724, session timer restarted INFO:OcriYpSuGsYXQS3W5rKm3Xu5ucwUASIR:rtpp_stream_prefill_addr: pre-filling callee's RTP address with 175.100.202.33:63974 INFO:OcriYpSuGsYXQS3W5rKm3Xu5ucwUASIR:rtpp_stream_prefill_addr: pre-filling callee's RTCP address with 175.100.202.33:63975 INFO:OcriYpSuGsYXQS3W5rKm3Xu5ucwUASIR:__rtpp_stream_fill_addr: callee's address filled in: 175.100.202.33:10876 (RTCP) INFO:OcriYpSuGsYXQS3W5rKm3Xu5ucwUASIR:rtpp_command_ul_handle: adding strong flag to existing session, new=1/0/0 INFO:OcriYpSuGsYXQS3W5rKm3Xu5ucwUASIR:rtpp_command_ul_handle: lookup on ports 37410/37724, session timer restarted INFO:OcriYpSuGsYXQS3W5rKm3Xu5ucwUASIR:rtpp_command_ul_handle: lookup on ports 37410/37724, session timer restarted INFO:OcriYpSuGsYXQS3W5rKm3Xu5ucwUASIR:rtpp_cmd_delete_ematch: forcefully deleting session 1 on ports 37410/37724 INFO:OcriYpSuGsYXQS3W5rKm3Xu5ucwUASIR:rtpp_pipe_get_stats: RTP stats: 0 in from callee, 0 in from caller, 0 relayed, 0 dropped, 0 ignored INFO:OcriYpSuGsYXQS3W5rKm3Xu5ucwUASIR:rtpp_pipe_get_stats: RTCP stats: 2 in from callee, 0 in from caller, 2 relayed, 0 dropped, 0 ignored INFO:OcriYpSuGsYXQS3W5rKm3Xu5ucwUASIR:rtpp_session_dtor: session on ports 37410/37724 is cleaned up INFO:OcriYpSuGsYXQS3W5rKm3Xu5ucwUASIR:rtpp_stream_dtor: RTP stream from callee: SSRC=NONE, ssrc_changes=0, psent=0, precvd=0, plost=0, pdups=0 INFO:OcriYpSuGsYXQS3W5rKm3Xu5ucwUASIR:rtpp_stream_dtor: RTP stream from caller: SSRC=NONE, ssrc_changes=0, psent=0, precvd=0, plost=0, pdups=0
??