Re: [OpenSIPS-Users] MS teams

2020-09-17 Thread John Matich
What about if you use braces after the if statement does it make any difference? if(xx){ append_hf(x);} On Thu, 2020-09-17 at 16:37 +0100, Andrew Colin wrote: > append_hf("Contact: \r\n"); > On Thu, Sep 17, 2020 at 4:36 PM John Matich > wrote: > > What's on

Re: [OpenSIPS-Users] MS teams

2020-09-17 Thread John Matich
What's on line 151? On Thu, 2020-09-17 at 16:33 +0100, Andrew Colin wrote: > nope :( > here is the full content > > ### Routing Logic > # main request routing logic > # Checks from MS Teams > > > > local_route { $var(dst) = "pstnhub.microsoft.com"; if > (is_method("OPTIONS") &&

Re: [OpenSIPS-Users] MS teams

2020-09-17 Thread John Matich
The only thing I can see there is there's no newline ending in the log content. Don't know if that matters though. On Thu, 2020-09-17 at 16:13 +0100, Andrew Colin wrote: > Hi Guys > i am trying to setup ms teams routing but keep getting this error on > opensips 3.1 > it doesnt seem to like my confi

Re: [OpenSIPS-Users] TLS Error

2020-09-17 Thread John Matich
Copy the certs into /etc/opensips/tls/ it doesn't seem to like the symlinked certs of letsencrypt That fixed it for me when I had the same issue. On Thu, 2020-09-17 at 14:32 +0100, Andrew Colin wrote: > yes but why as that path is correctand permissions etc are all fine > > On Thu, Sep 17, 202

Re: [OpenSIPS-Users] Midregistrar handle failed registrations

2020-09-16 Thread John Matich
> > ends up in the failure_route branch regardless of whether the > > authentication was successful or not. > > > > Does anyone know how I can capture the response returned from the > main > > registrar please to know in script whether the register was >

Re: [OpenSIPS-Users] Midregistrar handle failed registrations

2020-09-16 Thread John Matich
sing t_on_failure + failure_route but every > registration > > ends up in the failure_route branch regardless of whether the > > authentication was successful or not. > > > > Does anyone know how I can capture the response returned from the > main > >

Re: [OpenSIPS-Users] Midregistrar handle failed registrations

2020-09-16 Thread John Matich
was authenticated or not? On Wed, 2020-09-16 at 17:15 +1000, John Matich - Siptalk wrote: > How do I capture the response of a failed registration that has been > passed through to the main registrar and failed to authenticate? > > My code is: > > if (i

[OpenSIPS-Users] Midregistrar handle failed registrations

2020-09-16 Thread John Matich - Siptalk
How do I capture the response of a failed registration that has been passed through to the main registrar and failed to authenticate? My code is: if (is_method("REGISTER")) { mid_registrar_save("location"); switch ($retcode) { case 1: xlog("L_INFO", "forwar