If you have more than one statements to be executed under an if condition it should have an open curly at the start of the statement and a close curly at the end of the statement. If there is no curly in the book, then thats wrong.
On Tuesday, 17 March 2015, Satish Patel <satish....@gmail.com> wrote: > I have check on book example and it doesn't have any brace also. just > wonder! > > Look at this link, someone posted link here, even they don't have curly > brace > > > On Tue, Mar 17, 2015 at 1:54 PM, Eric Tamme <e...@uphreak.com > <javascript:_e(%7B%7D,'cvml','e...@uphreak.com');>> wrote: > >> You are missing the left curly brace after your if statment.... im >> suprised your script runs at all >> >> >> On 03/17/2015 11:48 AM, Satish Patel wrote: >> >> Eric, >> >> I found what was the issue, I sent you REGISTER method snippet before, >> if you look at it, If remove/comment out "sl_reply_error();" line in >> following code, it stopped sending 500 Error. Very interesting.. Do you >> think i need to put that in "curly braces" { } ? >> >> if (!save("location")) >> xlog("L_ERR", "Saving contact failed - M=$rm >> RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n"); >> sl_reply_error(); >> >> exit; >> } >> >> >> On Tue, Mar 17, 2015 at 1:27 PM, Satish Patel <satish....@gmail.com >> <javascript:_e(%7B%7D,'cvml','satish....@gmail.com');>> wrote: >> >>> Even after disabled "siptrace" it is happening. no luck :( >>> >>> On Tue, Mar 17, 2015 at 1:20 PM, Eric Tamme <e...@uphreak.com >>> <javascript:_e(%7B%7D,'cvml','e...@uphreak.com');>> wrote: >>> >>>> Turn of your sip tracing and see if the issue occurs. Its running >>>> some sl_callbacks (which i assume are realated to siptrace). >>>> >>>> >>>> >>>> On 03/17/2015 11:19 AM, Satish Patel wrote: >>>> >>>> I haven't done anything related "stateless". also in my config, i >>>> haven't manually specify that 500 error anywhere where i can doubt. I >>>> don't know from where it is coming. must be internally from opensips. >>>> >>>> On Tue, Mar 17, 2015 at 1:14 PM, Eric Tamme <e...@uphreak.com >>>> <javascript:_e(%7B%7D,'cvml','e...@uphreak.com');>> wrote: >>>> >>>>> Ah - nm, i see it in an sl callback >>>>> >>>>> Mar 17 22:19:01 sip2 /usr/local/opensips-2-head/sbin/opensips[31285]: >>>>> DBG:sl:sl_reply_error: error text is Server error occurred (1/SL) >>>>> >>>>> ... so are you doing anything statless in your config? This looks like >>>>> it might be siptrace related. >>>>> >>>>> >>>>> >>>>> On 03/17/2015 11:11 AM, Eric Tamme wrote: >>>>> >>>>> I do not see the 500 from opensips in this log. >>>>> >>>>> On 03/17/2015 11:07 AM, Satish Patel wrote: >>>>> >>>>> Here is the debug 4 logs http://pastebin.com/CdPxFrNp >>>>> >>>>> 173.48.111.111 - UA >>>>> 188.79.242.164 - OpenSIPs >>>>> >>>>> On Tue, Mar 17, 2015 at 12:45 PM, Eric Tamme <e...@uphreak.com >>>>> <javascript:_e(%7B%7D,'cvml','e...@uphreak.com');>> wrote: >>>>> >>>>>> This is a ladder diagram, not a sip trace. A ladder diagram is not >>>>>> useful in this case. >>>>>> >>>>>> Turn your debug up to 4, capture the log of the register/500 >>>>>> happening and submit a link to the pastebin. DO NOT paste the contents >>>>>> into an email. >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Users mailing list >>>>>> Users@lists.opensips.org >>>>>> <javascript:_e(%7B%7D,'cvml','Users@lists.opensips.org');> >>>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >>>>>> >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> Users mailing listus...@lists.opensips.org >>>>> <javascript:_e(%7B%7D,'cvml','Users@lists.opensips.org');>http://lists.opensips.org/cgi-bin/mailman/listinfo/users >>>>> >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> Users mailing listus...@lists.opensips.org >>>>> <javascript:_e(%7B%7D,'cvml','Users@lists.opensips.org');>http://lists.opensips.org/cgi-bin/mailman/listinfo/users >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> Users mailing list >>>>> Users@lists.opensips.org >>>>> <javascript:_e(%7B%7D,'cvml','Users@lists.opensips.org');> >>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >>>>> >>>>> >>>> >>>> >>>> _______________________________________________ >>>> Users mailing listus...@lists.opensips.org >>>> <javascript:_e(%7B%7D,'cvml','Users@lists.opensips.org');>http://lists.opensips.org/cgi-bin/mailman/listinfo/users >>>> >>>> >>>> >>>> _______________________________________________ >>>> Users mailing list >>>> Users@lists.opensips.org >>>> <javascript:_e(%7B%7D,'cvml','Users@lists.opensips.org');> >>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >>>> >>>> >>> >> >> >> _______________________________________________ >> Users mailing listus...@lists.opensips.org >> <javascript:_e(%7B%7D,'cvml','Users@lists.opensips.org');>http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> >> >> >> _______________________________________________ >> Users mailing list >> Users@lists.opensips.org >> <javascript:_e(%7B%7D,'cvml','Users@lists.opensips.org');> >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> >> > -- Sent from iPhone 6
_______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users