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:miconda@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: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@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Funding: https://www.paypal.me/dcmierla
-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Funding: https://www.paypal.me/dcmierla