<div dir="ltr">WHy not installing rtpproxy and proxying all rtp to the inside uase kamailio to load balance them, it will be transparent on the inside perhaps a cleaner solution?</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 13, 2017 at 3:21 PM, Kjeld Flarup <span dir="ltr"><<a href="mailto:kfc@viptel.dk" target="_blank">kfc@viptel.dk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">As I recall it is sequential, but not from the start everytime, it is incrementing all the time.<br>
<br>
If You are running three servers, then with a 100% identical load, one would expect an average of 2 failing attempts per call.<br>
<br>
The reality I see is however often very different RTP ports, most likely because load isn't 100% identical.<span class="im HOEnZb"><br>
<br>
<br>
Med venlig hilsen / Best regards<br>
Kjeld Flarup (Christensen) M.Sc E.E, Teknisk chef<br>
Viptel ApS, Hammershusvej 16C, DK-7400 Herning<br>
Telefon: <a href="tel:%2B45%2046949949" value="+4546949949" target="_blank">+45 46949949</a>, Telefax: <a href="tel:%2B45%2046949950" value="+4546949950" target="_blank">+45 46949950</a>, <a href="http://viptel.dk" rel="noreferrer" target="_blank">http://viptel.dk</a><br>
<br></span><div class="HOEnZb"><div class="h5">
On 03/13/2017 11:05 PM, Alex Balashov wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Well, indeed, but a sequential scan of many consecutive ports like this from the bottom of the same range can be quite a latent operation. So at the very least the allocation strategy would benefit from being random. Does Asterisk take that approach?<br>
<br>
On March 13, 2017 6:04:06 PM EDT, Kjeld Flarup <<a href="mailto:kfc@viptel.dk" target="_blank">kfc@viptel.dk</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
No there is no such thing as magic.<br>
<br>
The most obvious way to implement the RTP port handling, is to first<br>
open the next UDP port in the OS, and then report that back in the<br>
Invite/200Ok. If the port cannot be opened, then simply try the next in<br>
<br>
line.<br>
<br>
<br>
Med venlig hilsen / Best regards<br>
Kjeld Flarup (Christensen) M.Sc E.E, Teknisk chef<br>
Viptel ApS, Hammershusvej 16C, DK-7400 Herning<br>
Telefon: <a href="tel:%2B45%2046949949" value="+4546949949" target="_blank">+45 46949949</a>, Telefax: <a href="tel:%2B45%2046949950" value="+4546949950" target="_blank">+45 46949950</a>, <a href="http://viptel.dk" rel="noreferrer" target="_blank">http://viptel.dk</a><br>
<br>
On 03/13/2017 01:52 PM, przeqpiciel wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Maybe there is an magic device? I know that if we have an asterisk,<br>
that become to us with default configuration of rtp ports sets to<br>
10000_20000. And each call choose the one port fron that range. So if<br>
we have several asterisks with default configuratiin of rtp, there is<br>
possibilities to have 2 concurent calls each through another asterisk<br>
instance with this same rtp port. Am i right?<br>
<br>
So mqybe this magic device could see source IP address and route rtp<br>
to correct adterisk?<br>
<br>
13.03.2017 7:15 AM "Alex Balashov" <<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a><br>
<mailto:<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.<wbr>com</a>>> napisał(a):<br>
<br>
     On Mon, Mar 13, 2017 at 07:08:09AM +0100, Kjeld Flarup wrote:<br>
<br>
     > We run multiple Asterisk instances since 1.4 and never<br>
     configured RTP ports.<br>
     ><br>
     > More challenging issues are the Asterisk DB, and the Asteisk<br>
</blockquote>
home.<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
     You may not have enough calls for RTP port collisions to become<br>
</blockquote>
an<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
     issue. Otherwise, I'm not sure how you're avoiding it, since<br>
</blockquote>
Asterisk<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
     isn't aware of which ports from within the range are in use.<br>
<br>
     --<br>
     Alex Balashov | Principal | Evariste Systems LLC<br>
<br>
     Tel: <a href="tel:%2B1-706-510-6800" value="+17065106800" target="_blank">+1-706-510-6800</a> <tel:%2B1-706-510-6800> / <a href="tel:%2B1-800-250-5920" value="+18002505920" target="_blank">+1-800-250-5920</a><br>
     <tel:%2B1-800-250-5920> (toll-free)<br>
     Web: <a href="http://www.evaristesys.com/" rel="noreferrer" target="_blank">http://www.evaristesys.com/</a>, <a href="http://www.csrpswitch.com/" rel="noreferrer" target="_blank">http://www.csrpswitch.com/</a><br>
<br>
     _____________________________<wbr>__________________<br>
     SIP Express Router (SER) and Kamailio (OpenSER) - sr-users<br>
</blockquote>
mailing<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
     list<br>
     <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
</blockquote>
<mailto:<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-rou<wbr>ter.org</a>><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
     <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/c<wbr>gi-bin/mailman/listinfo/sr-use<wbr>rs</a><br>
     <<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-us<wbr>ers</a>><br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing<br>
</blockquote>
list<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cg<wbr>i-bin/mailman/listinfo/sr-user<wbr>s</a><br>
</blockquote></blockquote>
<br>
-- Alex<br>
<br>
--<br>
Principal, Evariste Systems LLC (<a href="http://www.evaristesys.com" rel="noreferrer" target="_blank">www.evaristesys.com</a>)<br>
<br>
Sent from my Google Nexus.<br>
<br>
______________________________<wbr>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cg<wbr>i-bin/mailman/listinfo/sr-user<wbr>s</a><br>
</blockquote>
<br>
<br>
______________________________<wbr>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cg<wbr>i-bin/mailman/listinfo/sr-user<wbr>s</a><br>
</div></div></blockquote></div><br></div>