<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Courier New";}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><a name="_MailEndCompose"><span style="font-size:11.0pt;color:#1F497D">Use ds_set_state to manually mark as active and inactive, or if your backend support SIP OPTIONS, you can use probing to have it automatically enable and disable.<o:p></o:p></span></a></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><o:p> </o:p></span></p>
<pre><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">The MI command (ds_set_state) can be sent via command line tool (</span>opensipsctl<span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">) or other ways (XML rpc,…).</span><o:p></o:p></pre>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><a href="http://www.opensips.org/html/docs/modules/2.4.x/dispatcher.html#idp5772400"><span style="font-size:11.0pt">http://www.opensips.org/html/docs/modules/2.4.x/dispatcher.html#idp5772400</span></a><span style="font-size:11.0pt;color:#1F497D">
<o:p></o:p></span></p>
<p class="MsoNormal"><a href="http://www.opensips.org/Documentation/Interface-MI-2-4"><span style="font-size:11.0pt">http://www.opensips.org/Documentation/Interface-MI-2-4</span></a><span style="font-size:11.0pt;color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Robert<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt">From:</span></b><span style="font-size:11.0pt"> Users [mailto:users-bounces@lists.opensips.org]
<b>On Behalf Of </b>Richard Parker<br>
<b>Sent:</b> Thursday, September 28, 2017 5:55 PM<br>
<b>To:</b> users@lists.opensips.org<br>
<b>Subject:</b> [OpenSIPS-Users] OpenSIPs Dispatcher checking different ports for Activeness<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">This may sound convoluted and I am somewhat at a loss as to how to go about this.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">I have a device that is on a old Windows platform that has a SIP Stack on it.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">It is fronted by OpenSIPs (which does very well I might add).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">I have 4 UDP SIP ports that I am using on the Windows box to dispatch to.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">The SIP Stack brings up these 4 ports at boot up. (5060, 5070, 5080 and 5090).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">The SIP Stack hands off to another app which takes a LONG time to come up (Various libraries).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">When this app is up, it advertises on 4 other UDP ports (5064, 5074, 5084, 5094) another UDP SIP to be able to make sure that all is well.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">The problem is, I need to know how to make all dispatched ports as “Inactive” to send to the common ports (5060, 5070, 5080, 5090) UNTIL the Checked ports (5064, 5074, 5084, 5094) are up.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Has anyone done this before?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">-- <br>
Rick</span><span style="font-family:"Times New Roman",serif"> </span><o:p></o:p></p>
</div>
<br>
<hr>
<p>This e-mail and any files transmitted with it may contain privileged or confidential information. It is solely for use by the individual for whom it is intended, even if addressed incorrectly. If you received this e-mail in error, please notify the sender;
do not disclose, copy, distribute, or take any action in reliance on the contents of this information; and delete it from your system. Any other use of this e-mail is prohibited.</p>
<br>
<p>Thank you for your compliance.</p>
<hr>
</body>
</html>