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:miconda@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(a)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