<div dir="ltr"><div dir="ltr"><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">append_hf("Contact: <sip:<a href="http://mydomain.com:5061">mydomain.com:5061</a></span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(50,244,241)">;transport=tls>\r\n");</span></p></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Sep 17, 2020 at 4:36 PM John Matich <<a href="mailto:john@siptalk.com.au">john@siptalk.com.au</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="text-align:left;direction:ltr"><div>What's on line 151?</div><div><br></div><div>On Thu, 2020-09-17 at 16:33 +0100, Andrew Colin wrote:</div><blockquote type="cite" style="margin:0px 0px 0px 0.8ex;border-left:2px solid rgb(114,159,207);padding-left:1ex"><div dir="ltr"><div dir="ltr">nope :(<div><br></div><div>here is the full content</div><div><br></div><div><p 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(50,244,241)"><span style="font-variant-ligatures:no-common-ligatures">####### Routing Logic ########</span></p><p 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);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p><p 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(50,244,241)"><span style="font-variant-ligatures:no-common-ligatures"># main request routing logic</span></p><p 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);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p><p 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(50,244,241)"><span style="font-variant-ligatures:no-common-ligatures"># Checks from MS Teams</span></p><p 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);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p><p 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);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p><p 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);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p><p 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);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p><p 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);letter-spacing:normal;white-space:normal"><span style="font-variant-ligatures:no-common-ligatures">local_route {</span></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:400;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(251,30,255);letter-spacing:normal;white-space:normal"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"><span>  </span>$var(dst) =</span><span style="font-variant-ligatures:no-common-ligatures"> "<a href="http://pstnhub.microsoft.com" target="_blank">pstnhub.microsoft.com</a>"</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(50,244,241)">;</span></p><p 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);letter-spacing:normal;white-space:normal"><span style="font-variant-ligatures:no-common-ligatures"><span>  </span>if (is_method("OPTIONS") && ($(ru</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(128,255,167)">{s.index, $var(dst)}</span><span style="font-variant-ligatures:no-common-ligatures">) !=</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(251,30,255)"> NULL))</span></p><p 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);letter-spacing:normal;white-space:normal"><span style="font-variant-ligatures:no-common-ligatures"><span>    </span>append_hf("Contact: <sip:<a href="http://mydomain.com:5061" target="_blank">mydomain.com:5061</a></span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(50,244,241)">;transport=tls>\r\n");</span></p><p 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);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p><p 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);letter-spacing:normal;white-space:normal"><span style="font-variant-ligatures:no-common-ligatures">}</span></p><p 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);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p><p 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);letter-spacing:normal;white-space:normal"><span style="font-variant-ligatures:no-common-ligatures">if (is_method("OPTIONS") && is_domain_local("$rd") && check_source_address("2")) {</span></p><p 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);letter-spacing:normal;white-space:normal"><span style="font-variant-ligatures:no-common-ligatures"><span>  </span>xlog("L_INFO",</span></p><p 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);letter-spacing:normal;white-space:normal"><span style="font-variant-ligatures:no-common-ligatures"><span>                </span>"</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(128,255,167)">[MS TEAMS]</span><span style="font-variant-ligatures:no-common-ligatures"> OPTIONS In")</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(50,244,241)">;</span></p><p 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);letter-spacing:normal;white-space:normal"><span style="font-variant-ligatures:no-common-ligatures"><span>  </span>send_reply("200", "OK")</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(50,244,241)">;</span></p><p 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);letter-spacing:normal;white-space:normal"><span style="font-variant-ligatures:no-common-ligatures"><span>  </span>exit</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(50,244,241)">;</span></p><p 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);letter-spacing:normal;white-space:normal"><span style="font-variant-ligatures:no-common-ligatures">}</span></p><p 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);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p><p 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);letter-spacing:normal;white-space:normal"><span style="font-variant-ligatures:no-common-ligatures">route{</span></p><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Sep 17, 2020 at 4:32 PM Ben Newlin <<a href="mailto:Ben.Newlin@genesys.com" target="_blank">Ben.Newlin@genesys.com</a>> wrote:<br></div><blockquote type="cite" style="margin:0px 0px 0px 0.8ex;border-left:2px solid rgb(114,159,207);padding-left:1ex">





<div lang="EN-US">
<div>
<p class="MsoNormal">Check the line *<b>before</b>* that snippet. You might be missing a `;` or a closing brace.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="color:black">Ben Newlin </span><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(181,196,223);padding:3pt 0in 0in">
<p class="MsoNormal" style="margin-bottom:12pt"><b><span style="font-size:12pt;color:black">From:
</span></b><span style="font-size:12pt;color:black">Users <<a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a>><br>
<b>Date: </b>Thursday, September 17, 2020 at 11:27 AM<br>
<b>To: </b>OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>><br>
<b>Subject: </b>Re: [OpenSIPS-Users] MS teams<u></u><u></u></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.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">On Thu, 2020-09-17 at 16:13 +0100, Andrew Colin wrote:<u></u><u></u></p>
</div>
<blockquote type="cite" style="margin:0px 0px 0px 0.8ex;border-left:2px solid rgb(114,159,207);padding-left:1ex">
<div>
<div>
<div>
<p class="MsoNormal">Hi Guys<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">i am trying to setup ms teams routing but keep getting this error on opensips 3.1<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">it doesnt seem to like my config below<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span><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><span style="font-size:8.5pt;font-family:Menlo;color:black;background:rgb(19,150,163)">{</span></span><span style="font-size:8.5pt;font-family:Menlo;color:black"><u></u><u></u></span></p>
<p style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span><span style="font-size:8.5pt;font-family:Menlo;color:black"> 
</span></span><span><span style="font-size:8.5pt;font-family:Menlo;color:black">xlog("L_INFO", "</span></span><span><span style="font-size:8.5pt;font-family:Menlo;color:rgb(128,255,167)">[MS TEAMS]</span></span><span><span style="font-size:8.5pt;font-family:Menlo;color:black">
 OPTIONS In")</span></span><span><span style="font-size:8.5pt;font-family:Menlo;color:rgb(50,244,241)">;</span></span><span style="font-size:8.5pt;font-family:Menlo;color:black"><u></u><u></u></span></p>
<p style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span><span style="font-size:8.5pt;font-family:Menlo;color:black"> 
</span></span><span><span style="font-size:8.5pt;font-family:Menlo;color:black">send_reply("200", "OK")</span></span><span><span style="font-size:8.5pt;font-family:Menlo;color:rgb(50,244,241)">;</span></span><span style="font-size:8.5pt;font-family:Menlo;color:black"><u></u><u></u></span></p>
<p style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span><span style="font-size:8.5pt;font-family:Menlo;color:black"> 
</span></span><span><span style="font-size:8.5pt;font-family:Menlo;color:black">exit</span></span><span><span style="font-size:8.5pt;font-family:Menlo;color:rgb(50,244,241)">;</span></span><span style="font-size:8.5pt;font-family:Menlo;color:black"><u></u><u></u></span></p>
<p style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span><span style="font-size:8.5pt;font-family:Menlo;color:black;background:rgb(19,150,163)">}</span></span><span style="font-size:8.5pt;font-family:Menlo;color:black"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span><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><span style="font-size:8.5pt;font-family:Menlo;color:black"> 
</span></span><span><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"><u></u><u></u></span></p>
<p style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span><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"><u></u><u></u></span></p>
<p style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span><span style="font-size:8.5pt;font-family:Menlo;color:black">Sep 17 15:11:47 [4341]</span></span><span><span style="font-size:8.5pt;font-family:Menlo;color:black"> 
</span></span><span><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"><u></u><u></u></span></p>
<p style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span><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"><u></u><u></u></span></p>
<p style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span><span style="font-size:8.5pt;font-family:Menlo;color:black">Sep 17 15:11:47 [4341]</span></span><span><span style="font-size:8.5pt;font-family:Menlo;color:black"> </span></span><span style="font-size:8.5pt;font-family:Menlo;color:black"><u></u><u></u></span></p>
<p style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span><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"><u></u><u></u></span></p>
<p style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span><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"><u></u><u></u></span></p>
<p style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span><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"><u></u><u></u></span></p>
<p style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span><span style="font-size:8.5pt;font-family:Menlo;color:black">Sep 17 15:11:47 [4341]
</span></span><span><span style="font-size:8.5pt;font-family:Menlo;color:black"> 
</span></span><span><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"><u></u><u></u></span></p>
<p style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span><span style="font-size:8.5pt;font-family:Menlo;color:black">Sep 17 15:11:47 [4341]
</span></span><span><span style="font-size:8.5pt;font-family:Menlo;color:black"> 
</span></span><span><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"><u></u><u></u></span></p>
<p style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span><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><span style="font-size:8.5pt;font-family:Menlo;color:black"> </span></span><span style="font-size:8.5pt;font-family:Menlo;color:black"><u></u><u></u></span></p>
<p style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span><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"><u></u><u></u></span></p>
<p style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span><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"><u></u><u></u></span></p>
<p style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span><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"><u></u><u></u></span></p>
</div>
</div>
</div>
</div>
<pre>_______________________________________________</pre><u></u><u></u>
<pre>Users mailing list</pre><u></u><u></u>
<p class="MsoNormal"><a href="mailto:Users@lists.opensips.org" target="_blank"><u></u><u></u></a></p>
<u><span style="color:blue"><a href="mailto:Users@lists.opensips.org" target="_blank"><pre>Users@lists.opensips.org</pre><span style="color:windowtext;text-decoration:none"><u></u><u></u></span></a></span></u>
<p class="MsoNormal"><u></u> <u></u></p>
<u></u><pre> </pre><u></u>
<p class="MsoNormal"><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank"><u></u><u></u></a></p>
<u><span style="color:blue"><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank"><pre>http://lists.opensips.org/cgi-bin/mailman/listinfo/users</pre><span style="color:windowtext;text-decoration:none"><u></u><u></u></span></a></span></u>
<p class="MsoNormal"><u></u> <u></u></p>
<u></u><pre> </pre><u></u>
</blockquote>
</div>
</div>

_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">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-bin/mailman/listinfo/users</a><br>
</blockquote></div>
</blockquote></div>
</blockquote></div>