[OpenSIPS-Users] ERROR:dialog:dlg_validate_dialog:

2015-03-17 Thread Satish Patel
I am getting following error in log, I can understand my contact: and Route: values mismatching here. why it is happening? is there a way to get rid on this error? Following is scenario. Only getting error in BYE message. [UA][OpenSIP]---[Freeswitch]-[Opensip]-[SIP Pro

Re: [OpenSIPS-Users] WebSocket Support in OpenSIPS 2.1

2015-03-17 Thread Podrigal, Aron
Thanks, great news! On Mar 17, 2015 3:00 PM, "Răzvan Crainea" wrote: > Hello, all! > > Aaand, we're finally making it official: OpenSIPS 2.1 will have > *WebSockets* support! > > Are you planning to use (or perhaps you're already using) WebRTC based SIP > clients, but you are having hard time se

[OpenSIPS-Users] WebSocket Support in OpenSIPS 2.1

2015-03-17 Thread Răzvan Crainea
Hello, all! Aaand, we're finally making it official: OpenSIPS 2.1 will have *WebSockets* support! Are you planning to use (or perhaps you're already using) WebRTC based SIP clients, but you are having hard time setting up the platform? Starting from now, it has never been simpler - based on

Re: [OpenSIPS-Users] 500 Server error in REGISTER message

2015-03-17 Thread Satish Patel
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(); e

Re: [OpenSIPS-Users] 500 Server error in REGISTER message

2015-03-17 Thread John Mathew
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 wrote: > I have check on

Re: [OpenSIPS-Users] 500 Server error in REGISTER message

2015-03-17 Thread Eric Tamme
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/us

Re: [OpenSIPS-Users] 500 Server error in REGISTER message

2015-03-17 Thread Satish Patel
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 R

Re: [OpenSIPS-Users] 500 Server error in REGISTER message

2015-03-17 Thread Satish Patel
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 wrote: > You are missing the left curly brace after your if statment im > suprised your s

Re: [OpenSIPS-Users] 500 Server error in REGISTER message

2015-03-17 Thread Babil Golam Sarwar
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 c

Re: [OpenSIPS-Users] 500 Server error in REGISTER message

2015-03-17 Thread Eric Tamme
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 f

Re: [OpenSIPS-Users] 500 Server error in REGISTER message

2015-03-17 Thread Satish Patel
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(

Re: [OpenSIPS-Users] 500 Server error in REGISTER message

2015-03-17 Thread Satish Patel
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 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

Re: [OpenSIPS-Users] 500 Server error in REGISTER message

2015-03-17 Thread Satish Patel
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"))

Re: [OpenSIPS-Users] 500 Server error in REGISTER message

2015-03-17 Thread Eric Tamme
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 ma

Re: [OpenSIPS-Users] 500 Server error in REGISTER message

2015-03-17 Thread Satish Patel
Even after disabled "siptrace" it is happening. no luck :( On Tue, Mar 17, 2015 at 1:20 PM, Eric Tamme 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: >

Re: [OpenSIPS-Users] 500 Server error in REGISTER message

2015-03-17 Thread Eric Tamme
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

Re: [OpenSIPS-Users] 500 Server error in REGISTER message

2015-03-17 Thread Satish Patel
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 wrote: > Ah - nm, i see it in an sl callbac

Re: [OpenSIPS-Users] 500 Server error in REGISTER message

2015-03-17 Thread Satish Patel
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 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 ht

Re: [OpenSIPS-Users] 500 Server error in REGISTER message

2015-03-17 Thread Eric Tamme
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:

Re: [OpenSIPS-Users] 500 Server error in REGISTER message

2015-03-17 Thread Eric Tamme
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 > wrote: This is a ladde

Re: [OpenSIPS-Users] 500 Server error in REGISTER message

2015-03-17 Thread Satish Patel
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.33

[OpenSIPS-Users] SIP/2.0 477 Send failed (477/TM) - Route

2015-03-17 Thread leo
Hello, I'm receiving the following message when a try to place a call: SIP/2.0 477 Send failed (477/TM) This is desired issue because the callee UA is not online and in userloc it is not expired yet. My question is, which would be the process or the route this event (477 Send failed) is processe

Re: [OpenSIPS-Users] 500 Server error in REGISTER message

2015-03-17 Thread Terrance Devor
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

2015-03-17 Thread Satish Patel
Here you go, Yes we are storing password in clear text, Everything works! authentication, calling etc.. Only issue is if i check on siptrace it is sending 500 Error, Don't know who is generating it. if (is_method("REGISTER")) { $var(auth_code) = www_authorize("", "s

Re: [OpenSIPS-Users] 500 Server error in REGISTER message

2015-03-17 Thread Terrance Devor
Hello Satish, I'm not a developer, but could you post your is_method("REGISTER") for the authentication block? Also post one of the entries in the Subscriber table. Are you using clear text password or encrypted? Please look at: http://www.techsupportalert.com/content/how-ask-question-when-you-wa

Re: [OpenSIPS-Users] 500 Server error in REGISTER message

2015-03-17 Thread Satish Patel
Bump! Developers any thought? It is critical, getting error on 2.1 branch. -- Sent from my iPhone > On Mar 15, 2015, at 3:56 PM, Satish Patel wrote: > > 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 wrote: >

[OpenSIPS-Users] R: Re: OPENSIPS + IVR CALL CONTROL

2015-03-17 Thread danilo...@tin.it
hi all Sorry for delay these are my few lines to include in the routing logic to manage OpenSips + Asterisk IVR On OpenSips Box if($rU=="){ rewriteuri("sip:@:"); t_relay(); resetflag(IDN); # Reset flag used to get in this subroutine } On