because the if statment does not evailuate true, so it skips the line immediately after it. This is how unbraced functions work. it then continues executing after and sends the error.

On 03/17/2015 12:10 PM, Satish Patel wrote:
Sorry forgot to post link http://lists.opensips.org/pipermail/users/2012-August/022705.html

also interesting thing, I am not seeing xlog in opensips.log, why?


 if ( 0 ) setflag(TCP_PERSISTENT);

                if (!save("location"))
xlog("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 2:09 PM, Satish Patel <satish....@gmail.com <mailto: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
    <mailto: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 <mailto: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 <mailto: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 <mailto: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 <mailto: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
                        <mailto:Users@lists.opensips.org>
                        http://lists.opensips.org/cgi-bin/mailman/listinfo/users




                    _______________________________________________
                    Users mailing list
                    Users@lists.opensips.org  <mailto:Users@lists.opensips.org>
                    http://lists.opensips.org/cgi-bin/mailman/listinfo/users



                    _______________________________________________
                    Users mailing list
                    Users@lists.opensips.org  <mailto:Users@lists.opensips.org>
                    http://lists.opensips.org/cgi-bin/mailman/listinfo/users


                    _______________________________________________
                    Users mailing list
                    Users@lists.opensips.org
                    <mailto:Users@lists.opensips.org>
                    http://lists.opensips.org/cgi-bin/mailman/listinfo/users




                _______________________________________________
                Users mailing list
                Users@lists.opensips.org  <mailto:Users@lists.opensips.org>
                http://lists.opensips.org/cgi-bin/mailman/listinfo/users


                _______________________________________________
                Users mailing list
                Users@lists.opensips.org
                <mailto:Users@lists.opensips.org>
                http://lists.opensips.org/cgi-bin/mailman/listinfo/users





        _______________________________________________
        Users mailing list
        Users@lists.opensips.org  <mailto:Users@lists.opensips.org>
        http://lists.opensips.org/cgi-bin/mailman/listinfo/users


        _______________________________________________
        Users mailing list
        Users@lists.opensips.org <mailto:Users@lists.opensips.org>
        http://lists.opensips.org/cgi-bin/mailman/listinfo/users





_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to