<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;" dir="ltr">
<p>Check again, there are not thousands processes but the processes you are killing are just "restarted". This is not a problem at all...</p>
<p><br>
</p>
<p>There is a parameter in Opensips which adjusts the number of child processes, change the parameter, restart opensips and count the number of processes again.<br>
</p>
<p><br>
</p>
<p><a href="https://www.opensips.org/Documentation/Script-CoreParameters-2-2#toc34" class="OWAAutoLink" id="LPlnk270666" previewremoved="true">https://www.opensips.org/Documentation/Script-CoreParameters-2-2#toc34</a></p>
<div id="LPBorder_GT_15023683149580.2953066053830842" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_15023683149500.49086088501143" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);" role="presentation" cellspacing="0">
<tbody>
<tr style="border-spacing: 0px;" valign="top">
<td id="TextCell_15023683149520.9414508419288793" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;" colspan="2">
<div id="LPRemovePreviewContainer_15023683149520.030332766420994917"></div>
<div id="LPTitle_15023683149520.027532157096049614" style="top: 0px; color: rgb(0, 120, 215); font-weight: 400; font-size: 21px; font-family: "wf_segoe-ui_light","Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_15023683149540.30511225778666184" style="text-decoration: none;" href="https://www.opensips.org/Documentation/Script-CoreParameters-2-2#toc34" target="_blank">openSIPS | Documentation / Core Parameters - 2.2</a></div>
<div id="LPMetadata_15023683149550.7968986658742881" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 14px;">
www.opensips.org</div>
<div id="LPDescription_15023683149570.6304413785509222" style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
3. Core parameters. Global parameters that can be set in configuration file. Accepted values are, depending on the actual parameters strings, numbers and yes/ no.</div>
</td>
</tr>
</tbody>
</table>
</div>
<p></p>
<p><br>
</p>
<p></p>
<div>
<p><br>
</p>
But anyways it's very obvious that the issue is something specific to TURN and not Opensips:
<br>
<br>
<a href="https://stackoverflow.com/questions/36627529/coturn-turnserver-error-437-mismatched-allocation-wrong-transaction-id-webr" class="OWAAutoLink" id="LPlnk855038" previewremoved="true">https://stackoverflow.com/questions/36627529/coturn-turnserver-error-437-mismatched-allocation-wrong-transaction-id-webr</a>
<div id="LPBorder_GT_15023685150410.07197854464547415" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_15023685150010.45635010505693197" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);" role="presentation" cellspacing="0">
<tbody>
<tr style="border-spacing: 0px;" valign="top">
<td id="ImageCell_15023685150040.2171631829946692" style="width: 250px; position: relative; display: table-cell; padding-right: 20px;" colspan="1">
<div id="LPImageContainer_15023685150040.6196701640983928" style="background-color: rgb(255, 255, 255); height: 250px; position: relative; margin: auto; display: table; width: 250px;">
<a id="LPImageAnchor_15023685150270.08476629384053402" style="display: table-cell; text-align: center;" href="https://stackoverflow.com/questions/36627529/coturn-turnserver-error-437-mismatched-allocation-wrong-transaction-id-webr" target="_blank"><img style="display: inline-block; max-width: 250px; max-height: 250px; height: 250px; width: 250px; border-width: 0px; vertical-align: bottom;" id="LPThumbnailImageID_15023685150270.5564467590256125" width="250" height="250" src="https://cdn.sstatic.net/Sites/stackoverflow/img/apple-touch-icon@2.png?v=73d79a89bded"></a></div>
</td>
<td id="TextCell_15023685150330.6503185640516466" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;" colspan="2">
<div id="LPRemovePreviewContainer_15023685150330.7909801345544795"></div>
<div id="LPTitle_15023685150330.6521474615691738" style="top: 0px; color: rgb(0, 120, 215); font-weight: 400; font-size: 21px; font-family: "wf_segoe-ui_light","Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_15023685150360.5198874747453396" style="text-decoration: none;" href="https://stackoverflow.com/questions/36627529/coturn-turnserver-error-437-mismatched-allocation-wrong-transaction-id-webr" target="_blank">Coturn/turnserver : error 437:
 Mismatched allocation ...</a></div>
<div id="LPMetadata_15023685150370.4516774436866634" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 14px;">
stackoverflow.com</div>
<div id="LPDescription_15023685150380.7351931059196009" style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
I have this structure : Web server : Apache. it's in a LAN. It is on a pc (windows 7) which has public static ip. PC is in a network. Signal server: In a VM ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
It probably has something to do with the combination of client/server/configuration, but not the SIP Server.<br>
<br>
<br>
BR<br>
</div>
<p></p>
<p><br>
</p>
<span style="font-size:9.0pt; color:#1F497D" lang="EN-US"></span><span style="color:#1F497D" lang="EN-US"></span>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri,Arial,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;">
<p></p>
</div>
</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>Von:</b> Users <users-bounces@lists.opensips.org> im Auftrag von Nabeel <nabeelshikder@gmail.com><br>
<b>Gesendet:</b> Donnerstag, 10. August 2017 14:20<br>
<b>An:</b> OpenSIPS users mailling list<br>
<b>Betreff:</b> Re: [OpenSIPS-Users] Error in TURN Servers</font>
<div> </div>
</div>
<div>
<div dir="ltr">The screenshot doesn't show all the processes but I know it is hundreds because it's necessary to run 'killall' or similar command several times to get rid of all the processes and I can see the PIDs change each time.
<div><br>
</div>
<div>I think it absolutely can be OpenSIPS server causing the TURN error because OpenSIPS is in charge of creating the sessions in the first place, and if there are hundreds of OpenSIPS processes running then there will be hundreds of sessions created for each
 call.</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 10 August 2017 at 13:12, Max Mühlbronner <span dir="ltr">
<<a href="mailto:max.muehlbronner@42com.com" target="_blank">max.muehlbronner@42com.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div id="m_815299806300793152divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;">
<p>Hi,</p>
<p><br>
</p>
<p>I don't see hundreds or even thousands on the screenshot?<br>
</p>
<span style="font-size:9.0pt; color:#1f497d" lang="EN-US"></span><span style="color:#1f497d" lang="EN-US"></span>
<div id="m_815299806300793152Signature">
<div id="m_815299806300793152divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri,Arial,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;">
<p></p>
</div>
</div>
<br>
Also the Opensips server should not have any connection/relation to your TURN Server, so i don't think Opensips could be the issue.<br>
<br>
A quick google search for "TURN <span>437 Allocation Mismatch</span>" suggests that it's a TURN CLIENT <--> TURN Server problem.
<span>It could be related to the TURN client implementation.</span><br>
<br>
<br>
BR<br>
<br>
Max M.<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block; width:98%">
<div id="m_815299806300793152divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>Von:</b> Users <<a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.<wbr>org</a>> im
 Auftrag von Nabeel <<a href="mailto:nabeelshikder@gmail.com" target="_blank">nabeelshikder@gmail.com</a>><br>
<b>Gesendet:</b> Donnerstag, 10. August 2017 13:55<br>
<b>An:</b> OpenSIPS users mailling list<br>
<b>Betreff:</b> Re: [OpenSIPS-Users] Error in TURN Servers</font>
<div> </div>
</div>
<div>
<div class="h5">
<div>
<div dir="auto">Anyone? I am using OpenSIPS version 2.2.</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 10 Aug 2017 8:02 am, "Nabeel" <<a href="mailto:nabeelshikder@gmail.com" target="_blank">nabeelshikder@gmail.com</a>> wrote:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">I found the cause of this. My OpenSIPS server has gone ballistic and is running hundreds of processes/instances concurrently; please see this screenshot: <a href="https://www.dropbox.com/s/7o7fsuab1jggrsh/Screenshot%202017-08-10%2007.28.15.png?dl=0" target="_blank">https://www.dropbo<wbr>x.com/s/7o7fsuab1jggrsh/Screen<wbr>shot%202017-08-10%2007.28.15.<wbr>png?dl=0</a>
<div><br>
</div>
<div>Even after I kill all the processes, hundreds of processes start again whenever I start OpenSIPS in any way.</div>
<div><br>
</div>
<div>Below is my opensips.service file but the same occurs if starting OpenSIPS using 'opensipsctl start':</div>
<div><br>
</div>
<div><br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
[Unit]<br>
Description=OpenSIPS is a very fast and flexible SIP (RFC3261) server<br>
After=network.target mariadb.service multi-user.target </blockquote>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
 </blockquote>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
 </blockquote>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
[Service]<br>
Type=forking<br>
User=root<br>
Group=root<br>
EnvironmentFile=-/etc/default/<wbr>opensips<br>
PIDFile=/var/run/opensips.pid<br>
ExecStart=/usr/local/sbin/open<wbr>sips -P /var/run/opensips.pid -f /usr/local/etc/opensips/opensi<wbr>ps.cfg $OPTIONS<br>
ExecStartPre=/usr/local/sbin/o<wbr>pensips -c -f /usr/local/etc/opensips/opensi<wbr>ps.cfg<br>
Restart=always<br>
TimeoutStopSec=30s<br>
LimitNOFILE=1048576<br>
LimitNPROC=1048576<br>
</blockquote>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
 </blockquote>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
[Install]<br>
WantedBy=multi-user.target</blockquote>
<div> </div>
<div><br>
</div>
<div>Please advise how to fix this urgently.</div>
<div><br>
</div>
<div>Nabeel</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</body>
</html>