<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hello,<div><br></div><div>As previously stated, you probably are not activating you rtpproxy. When kamailio starts up, it checks whether it can connect to the local rtpproxy. Check your kamailio log for errors. </div><div>You also need to have rtpproxy running on your kamailio box, on the specified port (or setting the correct port on the config file).</div><div>If your asterisk is on a private network, you will need to start rtpproxy specifying the outside and the inside (private) rtp ips, like:</div><div><br></div><div><p style="margin:0in;font-family:Calibri" lang="es"><span style="font-size:11pt">rtpproxy
-l [PUBLIC-IP</span><font size="4">]</font><span style="font-size:11pt"> [PRIVATE-IP] -s udp:<a href="http://127.0.0.1:7722">127.0.0.1:7722</a> -u rtpproxy rtpproxy -p
/var/run/rtpproxy/rtpproxy.pid -d DBUG LOG_LOCAL0</span></p><p style="margin:0in;font-family:Calibri" lang="es"><span style="font-size:11pt"><br></span></p><p style="margin:0in;font-family:Calibri" lang="es"><span style="font-size:11pt">and in your config, (my case) something like:</span></p><p style="margin:0in;font-family:Calibri" lang="es"><span style="font-size:11pt"><br></span></p><p style="margin:0in" lang="es"><font face="Calibri"><span style="font-size:14.6667px">modparam("rtpproxy", "rtpproxy_sock", "udp:localhost:7722")</span></font><br></p><p style="margin:0in" lang="es"><font face="Calibri"><span style="font-size:14.6667px"><br></span></font></p><p style="margin:0in" lang="es"><font face="Calibri"><span style="font-size:14.6667px">then, when calls are being established, you need to check where it's coming from and where it's going, and execute rtproxy with the parameter of what IP to use, something like:</span></font></p><p style="margin:0in" lang="es"><font face="Calibri"><span style="font-size:14.6667px"><br></span></font></p><p style="margin:0in" lang="es"><font face="Calibri"><span style="font-size:14.6667px">public ip:</span></font></p><p style="margin:0in" lang="es"><font face="Calibri"><span style="font-size:14.6667px">rtpproxy_manage("cor", "[PUBLIC-IP]");</span><br></font></p><p style="margin:0in" lang="es"><font face="Calibri"><span style="font-size:14.6667px"><br></span></font></p><p style="margin:0in" lang="es"><font face="Calibri"><span style="font-size:14.6667px">private ip:</span></font></p><p style="margin:0in" lang="es"><font face="Calibri"><span style="font-size:14.6667px">rtpproxy_manage("co", "[PRIVATE-IP]");</span><br></font></p><p style="margin:0in;font-family:Calibri;font-size:11pt" lang="es"><br></p><p style="margin:0in;font-family:Calibri;font-size:11pt" lang="es"><br></p><p style="margin:0in;font-family:Calibri;font-size:11pt" lang="es">good luck.</p></div><div><br></div><div><br clear="all"><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div></div><br></div></div></div></div></div><div hspace="streak-pt-mark" style="max-height:1px"><img alt="" style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=aZGF2aWQudmlsbGFzbWlsLndvcmtAZ21haWwuY29t&type=zerocontent&guid=9b475957-752b-4c67-86f9-6bbe86055249"><font color="#ffffff" size="1">ᐧ</font></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jan 10, 2019 at 12:33 PM Serge S. Yuriev <<a href="mailto:me@nevian.org">me@nevian.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
I mean Internal facing to Asterisk(s)<br>
External - facing to Provider(s)<br>
<br>
On 10/01/2019 12:11, YASIN CANER wrote:<br>
> Hello,<br>
> <br>
> Kamailio support 2 backend for rtp. RTP Engine and RTP proxy. it depends <br>
> your configuration. I read from your post that<br>
>   "I am not sure if this is an _RTP engine _issue and how to resolve <br>
> this." . I thought it is rtpengine.<br>
> <br>
> Indeed , they are different services and has different configuration <br>
> that do same thing that relays rtp packets.  you can find examples from <br>
> documentation.<br>
> <br>
> I didnt get internal interface what is mean? but if rtpproxy/engine <br>
> relays to Asterisk on -lo interface , you should listen your -lo <br>
> interface by Wireshark.<br>
> <br>
> Good luck.<br>
> <br>
> Yasin CANER<br>
> <br>
> <br>
> ------------------------------------------------------------------------<br>
> *From:* sr-users <<a href="mailto:sr-users-bounces@lists.kamailio.org" target="_blank">sr-users-bounces@lists.kamailio.org</a>> on behalf of <br>
> Serge S.Yuriev <<a href="mailto:me@nevian.org" target="_blank">me@nevian.org</a>><br>
> *Sent:* Thursday, January 10, 2019 11:30 AM<br>
> *To:* Kamailio (SER) - Users Mailing List<br>
> *Subject:* Re: [SR-Users] No Media in SIP Incoming calls<br>
> Hi<br>
> <br>
> - I see you mentioned rtpengine but config shows rtpproxy - which one <br>
> you use? Maybe you mixed things?<br>
> - Have you tried to capture internal interface of kamailio machine? Is <br>
> RTP there?<br>
> <br>
> -- <br>
> Wbr, Serge via mobile<br>
> <br>
> 09.01.2019, 10:37, "Prashant Gupta" <<a href="mailto:prashant@farmguide.in" target="_blank">prashant@farmguide.in</a>>:<br>
>> Hi,<br>
>> I have the following architecture - SIP provider <-> Kamailio <-> <br>
>> Asterisk servers<br>
>> Currently I have everything setup and incoming calls from Sip are <br>
>> routed to my asterisk server. The issue is however that when I answer <br>
>> the call, there is no media in the call. I have tried connecting with <br>
>> a normal local extension(not SIP,eg 1001) and there is a normal flow <br>
>> of media.<br>
>> When i try to sniff my connection via Wireshark on the asterisk <br>
>> server, there is an outflow of RTP packets but the same RTP traffic <br>
>> does not appear on the Wireshark of my Kamailio server connection.<br>
>> I am not sure if this is an RTP engine issue and how to resolve this.<br>
>> I have -<br>
>> modparam("rtpproxy", "rtpproxy_sock", "udp:<a href="http://127.0.0.1:45038" rel="noreferrer" target="_blank">127.0.0.1:45038</a> <br>
>> <<a href="http://127.0.0.1:45038/" rel="noreferrer" target="_blank">http://127.0.0.1:45038/</a>>")<br>
>> this in my kamailio cfg but I don;t know which port to use here.<br>
>> Any suggestions?<br>
>><br>
>> _______________________________________________<br>
>> Kamailio (SER) - Users Mailing List<br>
>> <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a> <mailto:<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>><br>
>> <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
>><br>
<br>
-- <br>
Serge S. Yuriev<br>
Senior VoIP engineer<br>
<br>
<br>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>