[SR-Users] Re: Wrong code in the websocket examples cfg

2024-04-27 Thread Pavan Kumar via sr-users
Thanks Henning for clarification, I got confused, maybe because I was writing cfg in Python. On Sat, Apr 27, 2024 at 12:02 PM Henning Westerholt wrote: > Hello, > > > > your main assumption regarding the evaluation of return values is wrong. > Refer e.g. to this documentation for details on how

[SR-Users] Re: Wrong code in the websocket examples cfg

2024-04-27 Thread Henning Westerholt via sr-users
Hello, your main assumption regarding the evaluation of return values is wrong. Refer e.g. to this documentation for details on how is evaluated. https://www.kamailio.org/wikidocs/cookbooks/5.8.x/core/#return Cheers, Henning From: Pavan Kumar via sr-users Sent: Freitag, 26. April 2024 23:18

[SR-Users] Re: Wrong code in the websocket examples cfg

2024-04-26 Thread Pavan Kumar via sr-users
Thanks Fred. If I understand correctly, when a document says "function returns FALSE", it means it will return one of the negative numbers. I assume the expresion "if(negative_number)" will be evaluated to be true in kamailio cnf. In that case, the code if (loose_route()) { > ... > } else {

[SR-Users] Re: Wrong code in the websocket examples cfg

2024-04-26 Thread Fred Posner via sr-users
On Apr 26, 2024, at 9:30 PM, Pavan Kumar wrote: > > Thanks Fred. If I understand correctly, when a document says "function > returns FALSE", it means it will return one of the negative numbers. I assume > the expresion "if(negative_number)" will be evaluated to be true in kamailio > cnf. > >

[SR-Users] Re: Wrong code in the websocket examples cfg

2024-04-26 Thread Fred Posner via sr-users
> On Apr 26, 2024, at 5:17 PM, Pavan Kumar via sr-users > wrote: > > Hello everyone, > > While going through the WebRTC example configuration (cfg) to better > understand and implement it in my setup, I came across a potential issue in > the code block. The code in question can be found at