Re: [OpenSIPS-Users] uri table

2020-03-20 Thread volga629 via Users
Ok I figure out  route[HANDLE_REGISTER] {     # authenticate the REGISTER requests     if(!www_authorize($rd, "subscriber")) {     www_challenge($rd, "auth");     exit;     }

Re: [OpenSIPS-Users] uri table

2020-03-20 Thread volga629 via Users
Hello Everyone, Some documentation is mismatching in auth and_db modules, can figure out what correct way [root@dev1-msg scripts]# opensips -c -f /etc/opensips/opensips.cfg Mar 20 14:12:44 [25882] Traceback (last included file at the

Re: [OpenSIPS-Users] "opensipsctl fifo get_statistics 5xx_replies" - counter not incrementing

2020-03-20 Thread Ben Newlin
The 5xx_replies would be non-zero because you are sending stateless 503 replies. Either using “sl_send_reply” or calling “send_reply” from the signaling module without creating a transaction first. This makes sense for sending negative OPTIONS replies; you don’t want to create a transaction for

Re: [OpenSIPS-Users] db_mysql_convert_rows says no rows but there is one

2020-03-20 Thread Calvin Ellison
We developed a small patch to check if there is a second result set when the first result set has zero rows. It's pretty specific and probably shouldn't be merged, but might help someone else if they are stuck in a similar situation. modules/db_mysql/dbase.c | 13 +++-- 1 file changed, 11

Re: [OpenSIPS-Users] "opensipsctl fifo get_statistics 5xx_replies" - counter not incrementing

2020-03-20 Thread solarmon
Hi Ben, OK, but why is there already a counter value for 5xx_replies - it is non zero. Actually, what I have just done at the moment is to put my clusters in 'drain mode' - so all SIP Options pings to it will be responded with a 503. When in this mode, the 5xx_replies counters are going up.

Re: [OpenSIPS-Users] "opensipsctl fifo get_statistics 5xx_replies" - counter not incrementing

2020-03-20 Thread Ben Newlin
Apologies for the confusion. So that is expected if you are using the TM module and creating transactions for all of the 5xx responses, as far as I know. Ben Newlin From: Users on behalf of solarmon Reply-To: OpenSIPS users mailling list Date: Friday, March 20, 2020 at 10:49 AM To:

Re: [OpenSIPS-Users] "opensipsctl fifo get_statistics 5xx_replies" - counter not incrementing

2020-03-20 Thread solarmon
Hi Ben, Thanks for your input. It is the other way around - in my case, the transaction counters are incrementing, but not the replies counters. Thank you. On Fri, 20 Mar 2020 at 13:09, Ben Newlin wrote: > I believe the XXX_replies statistics only count StateLess (SL module) > messages.

Re: [OpenSIPS-Users] "opensipsctl fifo get_statistics 5xx_replies" - counter not incrementing

2020-03-20 Thread Ben Newlin
I believe the XXX_replies statistics only count StateLess (SL module) messages. XXX_transactions count transaction handled by the TM module. So if replies are incrementing but not transactions, it means you are not creating transactions for these messages. Ben Newlin From: Users on behalf of

Re: [OpenSIPS-Users] Registrar load branch flags

2020-03-20 Thread Ben Newlin
You could try saving the request uri prior to calling lookup() and then restore it after. There’s also the $ou variable which provides the original request uri for the message prior to any modifications. Ben Newlin From: Users on behalf of Bogdan-Andrei Iancu Reply-To: OpenSIPS users

Re: [OpenSIPS-Users] help on failover routing

2020-03-20 Thread johan
as for point 3, I will check. On 20/03/2020 11:43, Liviu Chircu wrote: On 20.03.2020 12:37, johan wrote: Hence, - when the softphone is registered, a call comes on that DID in udp (we do lookup_location) and we send it to the user in tls (this works) - when the softphone is off for a

[OpenSIPS-Users] uri table

2020-03-20 Thread volga629 via Users
Hello Everyone, I am trying migrate to 3.0 and I want keep db_is_from_authorized("uri");, but can't understand where need set use_uri_table based on migration doc function db_check_from() was replaced by the AUTH_DB module with:

Re: [OpenSIPS-Users] "opensipsctl fifo get_statistics 5xx_replies" - counter not incrementing

2020-03-20 Thread solarmon
Hi, I use opensips 2.4 and the command "opensipsctl fifo get_statistics 5xx_replies" - as documented at: https://www.opensips.org/Documentation/Interface-CoreMI-2-4#toc12 Thank you. On Fri, 20 Mar 2020 at 11:22, Bogdan-Andrei Iancu wrote: >

Re: [OpenSIPS-Users] "opensipsctl fifo get_statistics 5xx_replies" - counter not incrementing

2020-03-20 Thread Bogdan-Andrei Iancu
https://opensips.org/html/docs/modules/3.0.x/tm.html#exported_statistics Not sure where do you get these 5xx_replies stats - which module are they provided by ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com OpenSIPS Summit, Amsterdam, May

Re: [OpenSIPS-Users] "opensipsctl fifo get_statistics 5xx_replies" - counter not incrementing

2020-03-20 Thread solarmon
Hi, I meant that the 5xx_transactions counter value does not increment. However, I have now found the stats counter "5xx_transactions". This does seem to increment appropriately. So what is the difference between "5xx_replies" and "5xx_transactions"? Thank you. On Fri, 20 Mar 2020 at 10:55,

Re: [OpenSIPS-Users] Registrar load branch flags

2020-03-20 Thread Bogdan-Andrei Iancu
Hi Grant, The branch flags seems to be exposed only via the lookup() function. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com OpenSIPS Summit, Amsterdam, May 2020 https://www.opensips.org/events/Summit-2020Amsterdam/ On 3/16/20 11:38 PM,

Re: [OpenSIPS-Users] How to delete a line from pvar

2020-03-20 Thread Bogdan-Andrei Iancu
Hi, Have you tried the the regexp based transformation?     https://opensips.org/Documentation/Script-Tran-3-0#toc86 Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com OpenSIPS Summit, Amsterdam, May 2020

Re: [OpenSIPS-Users] replace_body()

2020-03-20 Thread Bogdan-Andrei Iancu
Hi Mark, You mentioned calling rtpengine before? if so, note that you cannot have more than one change over the same part of the body. And rtpengine is replacing the whole body, so you cannot change a prev change. What you have to do is to tell rtpengine_offer() to provide the new body into a

Re: [OpenSIPS-Users] help on failover routing

2020-03-20 Thread David Villasmil
I’ve never done it, but I understand there’s a route every time a TLS socket is disconnected. You can probably use that to remove the contact. On Fri, 20 Mar 2020 at 10:43, Liviu Chircu wrote: > On 20.03.2020 12:37, johan wrote: > > > > Hence, > > > > - when the softphone is registered, a call

Re: [OpenSIPS-Users] "opensipsctl fifo get_statistics 5xx_replies" - counter not incrementing

2020-03-20 Thread Bogdan-Andrei Iancu
Hi, Do you do understand by "stuck" ? no reply to the "get_statistics" cmd? or the value of the statistic does not change ? Both 4xx and 5xx stats count all transactions completed with such replies. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer

Re: [OpenSIPS-Users] help on failover routing

2020-03-20 Thread Liviu Chircu
On 20.03.2020 12:37, johan wrote: Hence, - when the softphone is registered, a call comes on that DID in udp (we do lookup_location) and we send it to the user in tls (this works) - when the softphone is off for a long time, there is no record in location so then I route the call via the

[OpenSIPS-Users] help on failover routing

2020-03-20 Thread johan
my systen will be used for aid in this corona crisis (remote diagnosis by doctors). We use a softphone on a mobile phone, this softphone has a DID assigned to itself. The mobile phone has a real mobile number also. The idea is when a call comes in from the provider on the DID assigned to