RTP-Proxy was run in bridged mode like this.
I'm getting RTPstats published on Kamailio/RTPproxy syslog.
I am using Echo() application in asterisk. So I've observed that my audio went to asterisk and asterisk did indeed send audio back to the RTPproxy assigned ports BUT the RTPproxy isn't forwarding the Audio back to the client or may-be the audio is lost somewhere in between RTPproxy<--->Client. [See Wirshark Flow-Diagram taken on-Kamailio/RTPproxy Server]
The # DTMF signal sent from Client phone reached asterisk safely and terminated the Echo() application.
I did the ip_forwarding thingie too.-- somebody mentioned to do this if using RTPproxy in bridged mode.
Here are the corresponding Logs from Kamailio and rtpproxy.
NOTICE: <script>: INVITE from sip:71125@109.XX.XXX.29 (IP:
203.215.176.22:36388) in Route[SIPOUT] block Sending to Route[RELAY]
NOTICE: <script>: INVITE from sip:71125@109.XX.XXX.29 (IP:
203.215.176.22:36388) Sending Call to route(TOASTERISK)
************** ENGAGE DISPATCHER/LOAD-BALANCER*********************************
INFO:INVITE from sip:71125@109.XX.XXX.29 (IP:
203.215.176.22:36388) FWDing to Asterisk - Use Load-Balancer here
**************RELAY TO DESTINATION*********************************
NOTICE: <script>: INVITE from sip:71125@109.XX.XXX.29 (IP:
203.215.176.22:36388) in Route[RELAY] block Sending to Route[RTPPROXY]
**************NAT-CHECKS/RTPPROXY DECISION*********************************
rtpproxy[12253]: DBUG:handle_command: received command "12276_8 Uc0,8,97,98,101 b0068178ac0b7f0c 203.215.176.22 9890 0078c812;1"
rtpproxy[12253]: INFO:handle_command: new session b0068178ac0b7f0c, tag 0078c812;1 requested, type strong
rtpproxy[12253]: INFO:handle_command: new session on a port 40920 created, tag 0078c812;1
rtpproxy[12253]: DBUG:doreply: sending reply "12276_8 40920 109.XX.XXX.29#012"
************** RTPPROXY FORCED NOW RELAY*********************************
NOTICE: <script>: INVITE from sip:71125@109.XX.XXX.29 (IP:
203.215.176.22:36388) in Route[RTPPROXY] Forcing RTPproxy
************** REPLY FROM ASTERISK*********************************
NOTICE: <script>: incoming reply for 'INVITE' in onreply_route[REPLY_ONE]
**************NAT-CHECKS/RTPPROXY DECISION*********************************
NOTICE: <script>: incoming reply for 'INVITE' in onreply_route[REPLY_ONE] Forcing RTP-Proxy
rtpproxy[12253]: DBUG:handle_command: received command "12271_9 Lc0,8,97,98,101 b0068178ac0b7f0c 192.168.2.75 13692 0078c812;1 as1393db66;1"
rtpproxy[12253]: INFO:handle_command: lookup on ports 40920/47896, session timer restarted
rtpproxy[12253]: INFO:handle_command: pre-filling callee's address with
192.168.2.75:13692
rtpproxy[12253]: DBUG:doreply: sending reply "12271_9 47896 109.XX.XXX.29#012"
**************CALL ACK/ESTABLISHED*********************************
NOTICE: <script>: ACK from sip:71125@109.XX.XXX.29 (IP:
203.215.176.22:36388) in Route[RELAY] block Setting FLB_NATB
NOTICE: <script>: ACK from sip:71125@109.XX.XXX.29 (IP:
203.215.176.22:36388) in Route[RELAY] block Sending to Route[RTPPROXY]
**************BYE - BYE TIME*********************************
NOTICE: <script>: BYE from sip:71124@109.XX.XXX.29 (IP:
192.168.2.75:5060) in Route[RELAY] block Setting FLB_NATB
NOTICE: <script>: BYE from sip:71124@109.XX.XXX.29 (IP:
192.168.2.75:5060) in Route[RELAY] block Sending to Route[RTPPROXY]
NOTICE: <script>: BYE from sip:71124@109.XX.XXX.29 (IP:
192.168.2.75:5060) in Route[RTPPROXY]
**************UNFORCE RTPPROXY*********************************
rtpproxy[12253]: DBUG:handle_command: received command "12270_9 Q b0068178ac0b7f0c as1393db66;1 0078c812"
rtpproxy[12253]: DBUG:doreply: sending reply "12270_9 60 0 325 325 0#012"
**************RTP-PROXY STATS*********************************
NOTICE: <script>: BYE from sip:71124@109.XX.XXX.29 (IP:
192.168.2.75:5060) in Route[RTPPROXY] unforced RTP Proxy STATS='60 0 325 325 0#012'
rtpproxy[12253]: DBUG:handle_command: received command "12270_10 D b0068178ac0b7f0c as1393db66 0078c812"
rtpproxy[12253]: INFO:handle_delete: forcefully deleting session 1 on ports 40920/47896
rtpproxy[12253]: INFO:remove_session: RTP stats: 0 in from callee, 325 in from caller, 325 relayed, 0 dropped
rtpproxy[12253]: INFO:remove_session: RTCP stats: 0 in from callee, 3 in from caller, 3 relayed, 0 dropped
rtpproxy[12253]: INFO:remove_session: session on ports 40920/47896 is cleaned up
rtpproxy[12253]: DBUG:doreply: sending reply "12270_10 0#012"