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.<span></span><br><br>On Tuesday, 17 March 2015, Satish Patel <<a href="mailto:satish.txt@gmail.com">satish.txt@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I have check on book example and it doesn't have any brace also. just wonder! <div><br></div><div>Look at this link, someone posted link here, even they don't have curly brace</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 17, 2015 at 1:54 PM, Eric Tamme <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','eric@uphreak.com');" target="_blank">eric@uphreak.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
You are missing the left curly brace after your if statment.... im
suprised your script runs at all<div><div><br>
<br>
<div>On 03/17/2015 11:48 AM, Satish Patel
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Eric,
<div><br>
</div>
<div>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" { } ? </div>
<div><br>
</div>
<div>
<div> if (!save("location"))</div>
<div> xlog("L_ERR", "Saving contact
failed - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");</div>
<div> sl_reply_error();</div>
<div><br>
</div>
<div> exit;</div>
<div> }</div>
</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Mar 17, 2015 at 1:27 PM, Satish
Patel <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','satish.txt@gmail.com');" target="_blank">satish.txt@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Even after disabled "siptrace" it is
happening. no luck :(</div>
<div>
<div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Mar 17, 2015 at 1:20
PM, Eric Tamme <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','eric@uphreak.com');" target="_blank">eric@uphreak.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> Turn of
your sip tracing and see if the issue occurs.
Its running some sl_callbacks (which i assume
are realated to siptrace).
<div>
<div><br>
<br>
<br>
<div>On 03/17/2015 11:19 AM, Satish Patel
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">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. </div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Mar 17,
2015 at 1:14 PM, Eric Tamme <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','eric@uphreak.com');" target="_blank">eric@uphreak.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> Ah - nm, i see
it in an sl callback<br>
<br>
<pre>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.
</pre>
<div>
<div> <br>
<br>
<div>On 03/17/2015 11:11 AM,
Eric Tamme wrote:<br>
</div>
<blockquote type="cite"> I do
not see the 500 from
opensips in this log.<br>
<br>
<div>On 03/17/2015 11:07 AM,
Satish Patel wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Here is the
debug 4 logs <a href="http://pastebin.com/CdPxFrNp" target="_blank">http://pastebin.com/CdPxFrNp</a>
<div><br>
</div>
<div>173.48.111.111 -
UA <br>
</div>
<div>188.79.242.164 -
OpenSIPs<br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On
Tue, Mar 17, 2015 at
12:45 PM, Eric Tamme <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','eric@uphreak.com');" target="_blank">eric@uphreak.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This
is a ladder diagram,
not a sip trace. A
ladder diagram is
not useful in this
case.<br>
<br>
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.
<div>
<div><br>
<br>
_______________________________________________<br>
Users mailing
list<br>
<a href="javascript:_e(%7B%7D,'cvml','Users@lists.opensips.org');" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
Users mailing list
<a href="javascript:_e(%7B%7D,'cvml','Users@lists.opensips.org');" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
Users mailing list
<a href="javascript:_e(%7B%7D,'cvml','Users@lists.opensips.org');" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
</div>
</div>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="javascript:_e(%7B%7D,'cvml','Users@lists.opensips.org');" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
Users mailing list
<a href="javascript:_e(%7B%7D,'cvml','Users@lists.opensips.org');" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
</div>
</div>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="javascript:_e(%7B%7D,'cvml','Users@lists.opensips.org');" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
Users mailing list
<a href="javascript:_e(%7B%7D,'cvml','Users@lists.opensips.org');" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div></div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="javascript:_e(%7B%7D,'cvml','Users@lists.opensips.org');" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>
</blockquote><br><br>-- <br>Sent from iPhone 6<br>