Re: [OpenSIPS-Users] 500 Server error in REGISTER message
There's a mismatched curly-brace issue in your configuration. Brace at line 2 matches with brace at line 18. Nothing matches with the closing curly-brace at line 19. I think we are missing a curly-brace at line 15. My two-cents to the OpenSIPS team would be consider verbose curly-braces for the configuration script. Python/C like tab-based indenting might seem to improve readability and keep the code concise, but it introduces these unintended errors. ``` 1 if (is_method(REGISTER)) 2 { 3 # authenticate the REGISTER requests (uncomment to enable auth) 4 ##if (!www_authorize(, subscriber)) 5 ##{ 6 ## www_challenge(, 0); 7 ## exit; 8 ##} 9 ## 10 ##if (!db_check_to()) 11 ##{ 12 ## sl_send_reply(403,Forbidden auth ID); 13 ## exit; 14 ##} 15 if (!save(location)) 16 sl_reply_error(); 17 exit; 18 } 19 } 20 ``` On 3/17/15 10:52 AM, Satish Patel wrote: I got those code from Book Building Telephony System with OpenSIPS 1.6 Here is the code from book if (is_method(REGISTER)) { # authenticate the REGISTER requests (uncomment to enable auth) ##if (!www_authorize(, subscriber)) ##{ ## www_challenge(, 0); ## exit; ##} ## ##if (!db_check_to()) ##{ ## sl_send_reply(403,Forbidden auth ID); ## exit; ##} if (!save(location)) sl_reply_error(); exit; } } On Tue, Mar 17, 2015 at 1:48 PM, Satish Patel satish@gmail.com mailto:satish@gmail.com 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
Re: [OpenSIPS-Users] 500 Server error in REGISTER message
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 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 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 http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing listUsers@lists.opensips.orghttp://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
Re: [OpenSIPS-Users] 500 Server error in REGISTER message
Even after disabled siptrace it is happening. no luck :( On Tue, Mar 17, 2015 at 1:20 PM, Eric Tamme 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 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 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 http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing listUsers@lists.opensips.orghttp://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 listUsers@lists.opensips.orghttp://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
Re: [OpenSIPS-Users] 500 Server error in REGISTER message
There's a mismatched curly-brace issue in your configuration. Brace at line 2 matches with brace at line 18. Nothing matches with the closing curly-brace at line 19. I think we are missing a curly-brace at line 15. My two-cents to the OpenSIPS team would be consider verbose curly-braces for the configuration script. Python/C like tab-based indenting might seem to improve readability and keep the code concise, but it introduces these unintended errors. ``` 1 if (is_method(REGISTER)) 2 { 3 # authenticate the REGISTER requests (uncomment to enable auth) 4 ##if (!www_authorize(, subscriber)) 5 ##{ 6 ## www_challenge(, 0); 7 ## exit; 8 ##} 9 ## 10 ##if (!db_check_to()) 11 ##{ 12 ## sl_send_reply(403,Forbidden auth ID); 13 ## exit; 14 ##} 15 if (!save(location)) 16 sl_reply_error(); 17 exit; 18 } 19 } 20 ``` -- Regards, Babil (Golam Sarwar) Skype: gsbabil Phone: +1-470-222-4511 (SMS and voice-mail only) PGP Key Fingerprint : D3A1 EED0 5BA0 72D3 A011 75CB 8EA6 7D99 F433 E92D PGP Key Download URL: http://bit.ly/gsbabil-pgp-key On Tue, Mar 17, 2015 at 11:06 AM Babil (Golam Sarwar) gsba...@gmail.com wrote: There's a mismatched curly-brace issue in your configuration. Brace at line 2 matches with brace at line 18. Nothing matches with the closing curly-brace at line 19. I think we are missing a curly-brace at line 15. My two-cents to the OpenSIPS team would be consider verbose curly-braces for the configuration script. Python/C like tab-based indenting might seem to improve readability and keep the code concise, but it introduces these unintended errors. ``` 1 if (is_method(REGISTER)) 2 { 3 # authenticate the REGISTER requests (uncomment to enable auth) 4 ##if (!www_authorize(, subscriber)) 5 ##{ 6 ## www_challenge(, 0); 7 ## exit; 8 ##} 9 ## 10 ##if (!db_check_to()) 11 ##{ 12 ## sl_send_reply(403,Forbidden auth ID); 13 ## exit; 14 ##} 15 if (!save(location)) 16 sl_reply_error(); 17 exit; 18 } 19 } 20 ``` On 3/17/15 10:52 AM, Satish Patel wrote: I got those code from Book Building Telephony System with OpenSIPS 1.6 Here is the code from book if (is_method(REGISTER)) { # authenticate the REGISTER requests (uncomment to enable auth) ##if (!www_authorize(, subscriber)) ##{ ## www_challenge(, 0); ## exit; ##} ## ##if (!db_check_to()) ##{ ## sl_send_reply(403,Forbidden auth ID); ## exit; ##} if (!save(location)) sl_reply_error(); exit; } } On Tue, Mar 17, 2015 at 1:48 PM, Satish Patel satish@gmail.com mailto:satish@gmail.com 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
Re: [OpenSIPS-Users] 500 Server error in REGISTER message
Great! Guys!! here is my rectified code. look like it works, is that correct? 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; } exit; } On Tue, Mar 17, 2015 at 2:13 PM, Eric Tamme e...@uphreak.com wrote: 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 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 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 wrote: Even after disabled siptrace it is happening. no luck :( On Tue, Mar 17, 2015 at 1:20 PM, Eric Tamme 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 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 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 http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing listUsers@lists.opensips.orghttp://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 listUsers@lists.opensips.orghttp://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 listUsers@lists.opensips.orghttp://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 listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users ___
Re: [OpenSIPS-Users] 500 Server error in REGISTER message
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 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
Re: [OpenSIPS-Users] 500 Server error in REGISTER message
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 wrote: Even after disabled siptrace it is happening. no luck :( On Tue, Mar 17, 2015 at 1:20 PM, Eric Tamme 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 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 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 http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing listUsers@lists.opensips.orghttp://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 listUsers@lists.opensips.orghttp://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
Re: [OpenSIPS-Users] 500 Server error in REGISTER message
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 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 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
Re: [OpenSIPS-Users] 500 Server error in REGISTER message
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 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
Re: [OpenSIPS-Users] 500 Server error in REGISTER message
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 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 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 wrote: Even after disabled siptrace it is happening. no luck :( On Tue, Mar 17, 2015 at 1:20 PM, Eric Tamme 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 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 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 http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing listUsers@lists.opensips.orghttp://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 listUsers@lists.opensips.orghttp://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 listUsers@lists.opensips.orghttp://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
Re: [OpenSIPS-Users] 500 Server error in REGISTER message
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 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
Re: [OpenSIPS-Users] 500 Server error in REGISTER message
I got those code from Book Building Telephony System with OpenSIPS 1.6 Here is the code from book if (is_method(REGISTER)) { # authenticate the REGISTER requests (uncomment to enable auth) ##if (!www_authorize(, subscriber)) ##{ ## www_challenge(, 0); ## exit; ##} ## ##if (!db_check_to()) ##{ ## sl_send_reply(403,Forbidden auth ID); ## exit; ##} if (!save(location)) sl_reply_error(); exit; } } On Tue, Mar 17, 2015 at 1:48 PM, Satish Patel satish@gmail.com 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 wrote: Even after disabled siptrace it is happening. no luck :( On Tue, Mar 17, 2015 at 1:20 PM, Eric Tamme 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 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 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 http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing listUsers@lists.opensips.orghttp://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 listUsers@lists.opensips.orghttp://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
Re: [OpenSIPS-Users] 500 Server error in REGISTER message
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 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 wrote: Even after disabled siptrace it is happening. no luck :( On Tue, Mar 17, 2015 at 1:20 PM, Eric Tamme 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 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 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 http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing listUsers@lists.opensips.orghttp://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 listUsers@lists.opensips.orghttp://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 listUsers@lists.opensips.orghttp://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
Re: [OpenSIPS-Users] 500 Server error in REGISTER message
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
Re: [OpenSIPS-Users] 500 Server error in REGISTER message
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
Re: [OpenSIPS-Users] 500 Server error in REGISTER message
I have set debug level 9 but still not seeing any 500 in logs debug=9 log_stderror=no log_facility=LOG_LOCAL7 On Tue, Mar 17, 2015 at 1:11 PM, Eric Tamme e...@uphreak.com 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 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 http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing listUsers@lists.opensips.orghttp://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
Re: [OpenSIPS-Users] 500 Server error in REGISTER message
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 http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] 500 Server error in REGISTER message
Can you please provide a sip trace. Who is sending the 500? Your media server? T ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] 500 Server error in REGISTER message
Following is trace, OpenSIPs sending 500 to UA ( SIP Phone), Here is the pastebin. http://pastebin.com/UPhNVSGZ [SIP-Phone][OpenSIP Proxy] 11:33:21.331372 │ REGISTER │ ▒ │ ── │ ▒ 11:33:21.331515 │ 401 Unauthorized │ ▒ │ ── │ ▒ 11:33:21.331520 │ 401 Unauthorized │ ▒ │ │ ▒ 11:33:21.434248 │ REGISTER │ ▒ │ ── │ ▒ 11:33:21.434499 │ 200 OK│ ▒ │ ── │ ▒ 11:33:21.434504 │ 200 OK│ ▒ │ │ ▒ 11:33:21.434518 │ 500 Server error occurred │ ▒ │ ── │ ▒ 11:33:21.434520 │ 500 Server error occurred │ ▒ │ │ ▒ 11:33:21.546953 │ REGISTER │ ▒ │ ── │ ▒ 11:33:21.547265 │ 401 Unauthorized │ ▒ │ ── │ ▒ 11:33:21.547267 │ 401 Unauthorized │ ▒ │ │ ▒ 11:33:21.644232 │ REGISTER │ ▒ │ ── │ ▒ 11:33:21.644437 │ 200 OK│ ▒ │ ── │ ▒ 11:33:21.62 │ 200 OK│ ▒ │ │ ▒ 11:33:21.644452 │ 500 Server error occurred │ ▒ │ ── │ ▒ 11:33:21.644455 │ 500 Server error occurred │ ▒ │ │ ▒ 11:33:21.747068 │ REGISTER │ ▒ │ ── │ ▒ 11:33:21.747211 │ 401 Unauthorized │ ▒ │ ── │ ▒ 11:33:21.747215 │ 401 Unauthorized │ ▒ │ │ ▒ 11:33:21.847082 │ REGISTER │ │ │ ── │ │ 11:33:21.847256 │ 200 OK│ │ │ ── │ │ 11:33:21.847261 │ 200 OK│ On Tue, Mar 17, 2015 at 12:26 PM, Terrance Devor ter.de...@gmail.com wrote: Can you please provide a sip trace. Who is sending the 500? Your media server? T ___ 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
Re: [OpenSIPS-Users] 500 Server error in REGISTER message
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 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
Re: [OpenSIPS-Users] 500 Server error in REGISTER message
Guys, any suggestion? it is Opensips 2.1.x Master branch. Is it a bug? On Fri, Mar 13, 2015 at 4:03 PM, Satish Patel satish@gmail.com wrote: Hello, Why we are getting 500 error in REGISTER time? Even i got register successfully, is it normal? 01:26:01.078025 │ REGISTER │ │ │ ── │ │ 01:26:01.078032 │ REGISTER │ │ │ │ │ │ 01:26:01.078358 │ 401 Unauthorized │ │ │ │ ── │ │ │ 01:26:01.078360 │ 401 Unauthorized │ │ ▒ │ │ │ ▒ 01:26:01.408019 │ REGISTER │ │ ▒ │ ── │ │ ▒ 01:26:01.408025 │ REGISTER │ │ ▒ │ │ │ ▒ 01:26:01.408364 │ 200 OK│ │ ▒ │ ── │ │ ▒ 01:26:01.408365 │ 200 OK│ │ ▒ │ │ │ ▒ 01:26:01.408381 │ 500 Server error occurred │ │ ▒ │ ── │ │ ▒ 01:26:01.408382 │ 500 Server error occurred │ │ ▒ │ │ │ ▒ 01:26:01.730160 │ REGISTER │ │ ▒ │ ── │ │ ▒ 01:26:01.730166 │ REGISTER │ │ ▒ │ │ │ ▒ 01:26:01.730454 │ 401 Unauthorized │ │ ▒ │ ── │ │ ▒ 01:26:01.730455 │ 401 Unauthorized │ │ ▒ │ │ │ ▒ 01:26:02.072783 │ REGISTER │ │ ▒ │ ── │ │ ▒ 01:26:02.072789 │ REGISTER │ │ ▒ │ │ │ ▒ 01:26:02.073108 │ 200 OK│ │ ▒ │ ── │ │ ▒ 01:26:02.073109 │ 200 OK│ │ ▒ │ │ │ ▒ 01:26:02.073128 │ 500 Server error occurred │ │ ▒ │ ── │ │ │ │ │ ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] 500 Server error in REGISTER message
Hi Satish, you should check the server logs. This could be caused by memory allocation failure, low memory and/or high CPU activity experienced by OpenSIPS on the server side. You can enable console debugging by adding the following to `opensips.cfg': debug=4 fork=no log_stderror=yes After that, restart OpenSIPS and watch the debug log output and system CPU usage. Regards, Babil (Golam Sarwar) PGP Key Fingerprint : D3A1 EED0 5BA0 72D3 A011 75CB 8EA6 7D99 F433 E92D PGP Key Download URL: http://bit.ly/gsbabil-pgp-key On Fri, Mar 13, 2015 at 1:03 PM, Satish Patel satish@gmail.com wrote: Hello, Why we are getting 500 error in REGISTER time? Even i got register successfully, is it normal? 01:26:01.078025 │ REGISTER │ │ │ ── │ │ 01:26:01.078032 │ REGISTER │ │ │ │ │ │ 01:26:01.078358 │ 401 Unauthorized │ │ │ │ ── │ │ │ 01:26:01.078360 │ 401 Unauthorized │ │ ▒ │ │ │ ▒ 01:26:01.408019 │ REGISTER │ │ ▒ │ ── │ │ ▒ 01:26:01.408025 │ REGISTER │ │ ▒ │ │ │ ▒ 01:26:01.408364 │ 200 OK│ │ ▒ │ ── │ │ ▒ 01:26:01.408365 │ 200 OK│ │ ▒ │ │ │ ▒ 01:26:01.408381 │ 500 Server error occurred │ │ ▒ │ ── │ │ ▒ 01:26:01.408382 │ 500 Server error occurred │ │ ▒ │ │ │ ▒ 01:26:01.730160 │ REGISTER │ │ ▒ │ ── │ │ ▒ 01:26:01.730166 │ REGISTER │ │ ▒ │ │ │ ▒ 01:26:01.730454 │ 401 Unauthorized │ │ ▒ │ ── │ │ ▒ 01:26:01.730455 │ 401 Unauthorized │ │ ▒ │ │ │ ▒ 01:26:02.072783 │ REGISTER │ │ ▒ │ ── │ │ ▒ 01:26:02.072789 │ REGISTER │ │ ▒ │ │ │ ▒ 01:26:02.073108 │ 200 OK│ │ ▒ │ ── │ │ ▒ 01:26:02.073109 │ 200 OK│ │ ▒ │ │ │ ▒ 01:26:02.073128 │ 500 Server error occurred │ │ ▒ │ ── │ │ │ │ │ ___ 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
Re: [OpenSIPS-Users] 500 Server error in REGISTER message
Thanks for reply, I am not seeing any memory error in logs, This is testing box, so there is no load on CPU, I am registering single client. I am using multi-domain with mysql DB. This is what in debug i am seeing DBG:auth:check_response: authorization is OK ... DBG:core:mk_proxy: doing DNS lookup... DBG:sl:run_sl_callbacks: callback id 0 entered DBG:sl:sl_reply_error: error text is Server error occurred (1/SL) On Fri, Mar 13, 2015 at 4:16 PM, Babil Golam Sarwar gsba...@gmail.com wrote: Hi Satish, you should check the server logs. This could be caused by memory allocation failure, low memory and/or high CPU activity experienced by OpenSIPS on the server side. You can enable console debugging by adding the following to `opensips.cfg': debug=4 fork=no log_stderror=yes After that, restart OpenSIPS and watch the debug log output and system CPU usage. Regards, Babil (Golam Sarwar) PGP Key Fingerprint : D3A1 EED0 5BA0 72D3 A011 75CB 8EA6 7D99 F433 E92D PGP Key Download URL: http://bit.ly/gsbabil-pgp-key On Fri, Mar 13, 2015 at 1:03 PM, Satish Patel satish@gmail.com wrote: Hello, Why we are getting 500 error in REGISTER time? Even i got register successfully, is it normal? 01:26:01.078025 │ REGISTER │ │ │ ── │ │ 01:26:01.078032 │ REGISTER │ │ │ │ │ │ 01:26:01.078358 │ 401 Unauthorized │ │ │ │ ── │ │ │ 01:26:01.078360 │ 401 Unauthorized │ │ ▒ │ │ │ ▒ 01:26:01.408019 │ REGISTER │ │ ▒ │ ── │ │ ▒ 01:26:01.408025 │ REGISTER │ │ ▒ │ │ │ ▒ 01:26:01.408364 │ 200 OK│ │ ▒ │ ── │ │ ▒ 01:26:01.408365 │ 200 OK│ │ ▒ │ │ │ ▒ 01:26:01.408381 │ 500 Server error occurred │ │ ▒ │ ── │ │ ▒ 01:26:01.408382 │ 500 Server error occurred │ │ ▒ │ │ │ ▒ 01:26:01.730160 │ REGISTER │ │ ▒ │ ── │ │ ▒ 01:26:01.730166 │ REGISTER │ │ ▒ │ │ │ ▒ 01:26:01.730454 │ 401 Unauthorized │ │ ▒ │ ── │ │ ▒ 01:26:01.730455 │ 401 Unauthorized │ │ ▒ │ │ │ ▒ 01:26:02.072783 │ REGISTER │ │ ▒ │ ── │ │ ▒ 01:26:02.072789 │ REGISTER │ │ ▒ │ │ │ ▒ 01:26:02.073108 │ 200 OK│ │ ▒ │ ── │ │ ▒ 01:26:02.073109 │ 200 OK│ │ ▒ │ │ │ ▒ 01:26:02.073128 │ 500 Server error occurred │ │ ▒ │ ── │ │ │ │ │ ___ 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 ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users