<html dir="ltr"><head></head><body style="text-align:left; direction:ltr;"><div>The only thing I can see there is there's no newline ending in the log content. Don't know if that matters though.</div><div><br></div><div>On Thu, 2020-09-17 at 16:13 +0100, Andrew Colin wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi Guys<div><br></div><div>i am trying to setup ms teams routing but keep getting this error on opensips 3.1</div><div>it doesnt seem to like my config below</div><div><br></div><div><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">if(is_method("OPTIONS") && is_domain_local("$rd") && check_source_address("2")) </span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(19,150,163)">{</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>xlog("L_INFO", "</span><span class="gmail-s3" style="font-variant-ligatures:no-common-ligatures;color:rgb(128,255,167)">[MS TEAMS]</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"> OPTIONS In")</span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(50,244,241)">;</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>send_reply("200", "OK")</span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(50,244,241)">;</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>exit</span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(50,244,241)">;</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(19,150,163)">}</span></p></div><div><br></div><div><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Sep 17 15:11:47 [4341] INFO:tls_mgm:mod_load: openssl version: OpenSSL 1.1.1d<span class="gmail-Apple-converted-space"> </span>10 Sep 2019</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Sep 17 15:11:47 [4341] Traceback (last included file at the bottom):</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Sep 17 15:11:47 [4341]<span class="gmail-Apple-converted-space"> </span>0. /etc/opensips/opensips.cfg</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Sep 17 15:11:47 [4341] CRITICAL:core:yyerror: parse error in /etc/opensips/opensips.cfg:151:1-3: syntax error</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Sep 17 15:11:47 [4341]<span class="gmail-Apple-converted-space"> </span></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Sep 17 15:11:47 [4341] # Checks from MS Teams</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Sep 17 15:11:47 [4341] if(is_method("OPTIONS") && is_domain_local("$rd") && check_source_address("2")) {</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Sep 17 15:11:47 [4341] ^~~</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Sep 17 15:11:47 [4341] <span class="gmail-Apple-converted-space"> </span>xlog("L_INFO", "[MS TEAMS] OPTIONS In");</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Sep 17 15:11:47 [4341] <span class="gmail-Apple-converted-space"> </span>send_reply("200", "OK");</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Sep 17 15:11:47 [4341] CRITICAL:core:yyerror: parse error in /etc/opensips/opensips.cfg:151:1-3:<span class="gmail-Apple-converted-space"> </span></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Sep 17 15:11:47 [4341] ERROR:core:parse_opensips_cfg: bad config file (2 errors)</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Sep 17 15:11:47 [4341] ERROR:core:main: failed to parse config file (null)</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Sep 17 15:11:47 [4341] NOTICE:core:main: Exiting....</span></p></div></div></div></div>
<pre>_______________________________________________</pre><pre>Users mailing list</pre><a href="mailto:Users@lists.opensips.org"><pre>Users@lists.opensips.org</pre></a><pre><br></pre><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"><pre>http://lists.opensips.org/cgi-bin/mailman/listinfo/users</pre></a><pre><br></pre></blockquote></body></html>