<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=us-ascii">
<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;}
@font-face
{font-family:Menlo;
panose-1:2 11 6 9 3 8 4 2 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
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",serif;}
p.gmail-p1, li.gmail-p1, div.gmail-p1
{mso-style-name:gmail-p1;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.gmail-s1
{mso-style-name:gmail-s1;}
span.gmail-s2
{mso-style-name:gmail-s2;}
span.gmail-apple-converted-space
{mso-style-name:gmail-apple-converted-space;}
span.gmail-s3
{mso-style-name:gmail-s3;}
span.gmail-s4
{mso-style-name:gmail-s4;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;}
span.EmailStyle26
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.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>
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Check the line *<b>before</b>* that snippet. You might be missing a `;` or a closing brace.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:black">Ben Newlin </span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">Users <users-bounces@lists.opensips.org><br>
<b>Date: </b>Thursday, September 17, 2020 at 11:27 AM<br>
<b>To: </b>OpenSIPS users mailling list <users@lists.opensips.org><br>
<b>Subject: </b>Re: [OpenSIPS-Users] MS teams<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal">The only thing I can see there is there's no newline ending in the log content. Don't know if that matters though.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">On Thu, 2020-09-17 at 16:13 +0100, Andrew Colin wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #729FCF 1.5pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<div>
<p class="MsoNormal">Hi Guys<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">i am trying to setup ms teams routing but keep getting this error on opensips 3.1<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">it doesnt seem to like my config below<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="gmail-p1" style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="gmail-s1"><span style="font-size:8.5pt;font-family:Menlo;color:black">if(is_method("OPTIONS") && is_domain_local("$rd") && check_source_address("2"))
</span></span><span class="gmail-s2"><span style="font-size:8.5pt;font-family:Menlo;color:black;background:#1396A3">{</span></span><span style="font-size:8.5pt;font-family:Menlo;color:black"><o:p></o:p></span></p>
<p class="gmail-p1" style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="gmail-apple-converted-space"><span style="font-size:8.5pt;font-family:Menlo;color:black">
</span></span><span class="gmail-s1"><span style="font-size:8.5pt;font-family:Menlo;color:black">xlog("L_INFO", "</span></span><span class="gmail-s3"><span style="font-size:8.5pt;font-family:Menlo;color:#80FFA7">[MS TEAMS]</span></span><span class="gmail-s1"><span style="font-size:8.5pt;font-family:Menlo;color:black">
OPTIONS In")</span></span><span class="gmail-s4"><span style="font-size:8.5pt;font-family:Menlo;color:#32F4F1">;</span></span><span style="font-size:8.5pt;font-family:Menlo;color:black"><o:p></o:p></span></p>
<p class="gmail-p1" style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="gmail-apple-converted-space"><span style="font-size:8.5pt;font-family:Menlo;color:black">
</span></span><span class="gmail-s1"><span style="font-size:8.5pt;font-family:Menlo;color:black">send_reply("200", "OK")</span></span><span class="gmail-s4"><span style="font-size:8.5pt;font-family:Menlo;color:#32F4F1">;</span></span><span style="font-size:8.5pt;font-family:Menlo;color:black"><o:p></o:p></span></p>
<p class="gmail-p1" style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="gmail-apple-converted-space"><span style="font-size:8.5pt;font-family:Menlo;color:black">
</span></span><span class="gmail-s1"><span style="font-size:8.5pt;font-family:Menlo;color:black">exit</span></span><span class="gmail-s4"><span style="font-size:8.5pt;font-family:Menlo;color:#32F4F1">;</span></span><span style="font-size:8.5pt;font-family:Menlo;color:black"><o:p></o:p></span></p>
<p class="gmail-p1" style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="gmail-s2"><span style="font-size:8.5pt;font-family:Menlo;color:black;background:#1396A3">}</span></span><span style="font-size:8.5pt;font-family:Menlo;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="gmail-p1" style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="gmail-s1"><span style="font-size:8.5pt;font-family:Menlo;color:black">Sep 17 15:11:47 [4341] INFO:tls_mgm:mod_load: openssl version: OpenSSL 1.1.1d</span></span><span class="gmail-apple-converted-space"><span style="font-size:8.5pt;font-family:Menlo;color:black">
</span></span><span class="gmail-s1"><span style="font-size:8.5pt;font-family:Menlo;color:black">10 Sep 2019</span></span><span style="font-size:8.5pt;font-family:Menlo;color:black"><o:p></o:p></span></p>
<p class="gmail-p1" style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="gmail-s1"><span style="font-size:8.5pt;font-family:Menlo;color:black">Sep 17 15:11:47 [4341] Traceback (last included file at the bottom):</span></span><span style="font-size:8.5pt;font-family:Menlo;color:black"><o:p></o:p></span></p>
<p class="gmail-p1" style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="gmail-s1"><span style="font-size:8.5pt;font-family:Menlo;color:black">Sep 17 15:11:47 [4341]</span></span><span class="gmail-apple-converted-space"><span style="font-size:8.5pt;font-family:Menlo;color:black">
</span></span><span class="gmail-s1"><span style="font-size:8.5pt;font-family:Menlo;color:black">0. /etc/opensips/opensips.cfg</span></span><span style="font-size:8.5pt;font-family:Menlo;color:black"><o:p></o:p></span></p>
<p class="gmail-p1" style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="gmail-s1"><span style="font-size:8.5pt;font-family:Menlo;color:black">Sep 17 15:11:47 [4341] CRITICAL:core:yyerror: parse error in /etc/opensips/opensips.cfg:151:1-3: syntax error</span></span><span style="font-size:8.5pt;font-family:Menlo;color:black"><o:p></o:p></span></p>
<p class="gmail-p1" style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="gmail-s1"><span style="font-size:8.5pt;font-family:Menlo;color:black">Sep 17 15:11:47 [4341]</span></span><span class="gmail-apple-converted-space"><span style="font-size:8.5pt;font-family:Menlo;color:black"> </span></span><span style="font-size:8.5pt;font-family:Menlo;color:black"><o:p></o:p></span></p>
<p class="gmail-p1" style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="gmail-s1"><span style="font-size:8.5pt;font-family:Menlo;color:black">Sep 17 15:11:47 [4341] # Checks from MS Teams</span></span><span style="font-size:8.5pt;font-family:Menlo;color:black"><o:p></o:p></span></p>
<p class="gmail-p1" style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="gmail-s1"><span style="font-size:8.5pt;font-family:Menlo;color:black">Sep 17 15:11:47 [4341] if(is_method("OPTIONS") && is_domain_local("$rd") && check_source_address("2")) {</span></span><span style="font-size:8.5pt;font-family:Menlo;color:black"><o:p></o:p></span></p>
<p class="gmail-p1" style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="gmail-s1"><span style="font-size:8.5pt;font-family:Menlo;color:black">Sep 17 15:11:47 [4341] ^~~</span></span><span style="font-size:8.5pt;font-family:Menlo;color:black"><o:p></o:p></span></p>
<p class="gmail-p1" style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="gmail-s1"><span style="font-size:8.5pt;font-family:Menlo;color:black">Sep 17 15:11:47 [4341]
</span></span><span class="gmail-apple-converted-space"><span style="font-size:8.5pt;font-family:Menlo;color:black">
</span></span><span class="gmail-s1"><span style="font-size:8.5pt;font-family:Menlo;color:black">xlog("L_INFO", "[MS TEAMS] OPTIONS In");</span></span><span style="font-size:8.5pt;font-family:Menlo;color:black"><o:p></o:p></span></p>
<p class="gmail-p1" style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="gmail-s1"><span style="font-size:8.5pt;font-family:Menlo;color:black">Sep 17 15:11:47 [4341]
</span></span><span class="gmail-apple-converted-space"><span style="font-size:8.5pt;font-family:Menlo;color:black">
</span></span><span class="gmail-s1"><span style="font-size:8.5pt;font-family:Menlo;color:black">send_reply("200", "OK");</span></span><span style="font-size:8.5pt;font-family:Menlo;color:black"><o:p></o:p></span></p>
<p class="gmail-p1" style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="gmail-s1"><span style="font-size:8.5pt;font-family:Menlo;color:black">Sep 17 15:11:47 [4341] CRITICAL:core:yyerror: parse error in /etc/opensips/opensips.cfg:151:1-3:</span></span><span class="gmail-apple-converted-space"><span style="font-size:8.5pt;font-family:Menlo;color:black"> </span></span><span style="font-size:8.5pt;font-family:Menlo;color:black"><o:p></o:p></span></p>
<p class="gmail-p1" style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="gmail-s1"><span style="font-size:8.5pt;font-family:Menlo;color:black">Sep 17 15:11:47 [4341] ERROR:core:parse_opensips_cfg: bad config file (2 errors)</span></span><span style="font-size:8.5pt;font-family:Menlo;color:black"><o:p></o:p></span></p>
<p class="gmail-p1" style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="gmail-s1"><span style="font-size:8.5pt;font-family:Menlo;color:black">Sep 17 15:11:47 [4341] ERROR:core:main: failed to parse config file (null)</span></span><span style="font-size:8.5pt;font-family:Menlo;color:black"><o:p></o:p></span></p>
<p class="gmail-p1" style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="gmail-s1"><span style="font-size:8.5pt;font-family:Menlo;color:black">Sep 17 15:11:47 [4341] NOTICE:core:main: Exiting....</span></span><span style="font-size:8.5pt;font-family:Menlo;color:black"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>Users mailing list<o:p></o:p></pre>
<p class="MsoNormal"><a href="mailto:Users@lists.opensips.org"><o:p></o:p></a></p>
<pre><u><span style="color:blue"><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org<span style="color:windowtext;text-decoration:none"><o:p></o:p></span></a></span></u></pre>
<p class="MsoNormal"><o:p> </o:p></p>
<pre><o:p> </o:p></pre>
<p class="MsoNormal"><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"><o:p></o:p></a></p>
<pre><u><span style="color:blue"><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users<span style="color:windowtext;text-decoration:none"><o:p></o:p></span></a></span></u></pre>
<p class="MsoNormal"><o:p> </o:p></p>
<pre><o:p> </o:p></pre>
</blockquote>
</div>
</body>
</html>