Dear Daniel, I am unable to find the problem and stuck here. When I try with rtpproxy_stream2uac then getting ERR:handle_play: can't create player"
RTPProxy log are with rtpproxy_stream2uas here I called RTPProxy offer only when caller hold the call. There is nothing error from rtpproxy but it unable to play voice file. rtpproxy[26919]: DBUG:handle_command: received command "27078_4 UAIIc0,101 1126992650 192.168.20.156 11816 285967440;1 627485380;1" rtpproxy[26919]: INFO:handle_command: new session 1126992650, tag 285967440;1 requested, type strong rtpproxy[26919]: INFO:handle_command: new session on a port 37442 created, tag 285967440;1 rtpproxy[26919]: INFO:handle_command: pre-filling caller's address with 192.168.20.156:11816 rtpproxy[26919]: DBUG:doreply: sending reply "27078_4 37442 192.168.20.58#012" /usr/sbin/kamailio[27078]: DEBUG: {1 22 INVITE 1126992650} <script>: SCRIPT: [RTPPROXY][0] HOLD ACTIVITY INVITE rtpproxy[26919]: DBUG:handle_command: received command "27078_5 P-1 1126992650 /home/coralswitch/queuesounds/moh.wav session 627485380;1 285967440;1" rtpproxy[26919]: DBUG:doreply: sending reply "27078_5 E6#012" Please guide me to overcome this situation. Regards Amit Pal From: Amit Pal [mailto:amit....@coraltele.com] Sent: Wednesday, August 26, 2020 7:53 PM To: 'mico...@gmail.com'; 'Kamailio (SER) - Users Mailing List' Subject: RE: [SR-Users] RTP PROXY (rtpproxy_stream2uas getting error) Dear Daniel, I am just changing my environment. I am using kamailio+rtpproxy. while making a call from caller to callee through RTPProxy. Then why only callee able to listen caller voice . I use following script snippet. route[RTPPROXY] { #!ifdef WITH_NAT if (is_method("BYE")) { unforce_rtp_proxy("t"); } else if (is_method("INVITE")){ if (has_body("application/sdp")) { set_rtp_proxy_set("0"); rtpproxy_offer(); } } else if (is_method("ACK") && has_body("application/sdp")) { rtpproxy_answer(); } if (!has_totag()) add_rr_param(";nat=yes"); #!endif return; } By understanding ngrep RTPProxy has been attached to callee only. in short , In one to one call with Kamailio + RTPProxy. Only callee able to listen caller voice. While callee voice doesn't listen by caller. How can both party attached to RTPProxy. Regards Amit Pal From: Daniel-Constantin Mierla [mailto:mico...@gmail.com] Sent: Tuesday, August 25, 2020 9:15 PM To: Amit Pal; 'Kamailio (SER) - Users Mailing List' Subject: Re: [SR-Users] RTP PROXY (rtpproxy_stream2uas getting error) Hello, depending on the direction, you may have to use stream to uac function, I can see you use only stream to uas function. Cheers, Daniel On 25.08.20 16:16, Amit Pal wrote: Dear Daniel, I am using following snippets. when I am using hold from caller side then still no hold sound play to callee but when hold from callee getting error "handle_play: can't create player" my scripts snippets #IN Request ROUTE if (is_method("INVITE")) { if (has_body("application/sdp")) { if(rtpproxy_offer()){ t_on_reply("1"); } if (is_audio_on_hold()) { xlog("SCRIPT: [$cfg(route)][$T_branch_idx] is_Audio_on_Hold_RTPPROXY audio on hold, preparing to play media on reply to $rm\n"); rtpproxy_stream2uas("/home/coralswitch/queuesounds/moh2.wav", "-1"); } else { xlog("SCRIPT: [$cfg(route)][$T_branch_idx] is_Audio_on_UNHold_RTPPROXY audio on hold, preparing to play media on reply to $rm\n"); rtpproxy_stop_stream2uas(); }; }else { t_on_reply("2"); } if (is_method("ACK") && has_body("application/sdp")) { rtpproxy_answer(); } #ON REPLY ROUTE onreply_route[1] { if (has_body("application/sdp")) { set_rtp_proxy_set(0); rtpproxy_answer(); } } onreply_route[2] { if (has_body("application/sdp")){ rtpproxy_offer(); } } Please guide what is wrong here. Thanks Regards Amit Pal From: Daniel-Constantin Mierla [mailto:mico...@gmail.com] Sent: Tuesday, August 25, 2020 6:57 PM To: Kamailio (SER) - Users Mailing List; Amit Pal Subject: Re: [SR-Users] RTP PROXY (rtpproxy_stream2uas getting error) Hello, that typically happens when you try to play to the callee before knowing where it expect the RTP (before getting response with sdp for INVITE). Maybe you can share the relevant config snippets to see if we can spot something wrong there. Cheers, Daniel On 24.08.20 13:18, Amit Pal wrote: Dear Team , I am using Kamailio and RTPProxy for media. I am trying to play caller/callee side media by rtpproxy_stream2uas/ rtpproxy_stream2uac. But I am getting error secondary rtpproxy[27007]: DBUG:handle_command: received command "29329_6 P-1 2c60634699018317MTg0YzVlODc0NTBiZGU1ZGJiYmNmYjY1MDc0MjIwMzI. /home/coralswitch/queuesounds/moh2.wav session b2f563cf067c489ca7102e96b622f2f1;1 9f10411f;1" rtpproxy[27007]: ERR:handle_play: can't create player rtpproxy[27007]: DBUG:doreply: sending reply "29329_6 E6#012" rtpproxy[27007]: INFO:process_rtp: session timeout rtpproxy[27007]: INFO:remove_session: RTP stats: 1083 in from callee, 936 in from caller, 2019 relayed, 0 dropped rtpproxy[27007]: INFO:remove_session: RTCP stats: 30 in from callee, 41 in from caller, 71 relayed, 0 dropped rtpproxy[27007]: INFO:remove_session: session on ports 36556/60108 is cleaned up why this error are coming . Even some time with change in script following error "handle_play: can't create player" not showing but even not media playing. Log are attached with mail. Please do the need full. Regards Amit Pal _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org <mailto:sr-users@lists.kamailio.org> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla -- www.asipto.com <http://www.asipto.com> www.twitter.com/miconda <http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda <http://www.linkedin.com/in/miconda> Funding: https://www.paypal.me/dcmierla -- Daniel-Constantin Mierla -- www.asipto.com <http://www.asipto.com> www.twitter.com/miconda <http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda <http://www.linkedin.com/in/miconda> Funding: https://www.paypal.me/dcmierla
_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users