Re: [OpenSIPS-Users] Custom field in dialog list (dlg_list)

2021-12-17 Thread Giovanni Maruzzelli
You so kind, thanks a lot.

I'd like to do it in script, for efficiency and elegance (hahaha), but yes
I can fall back to something external.

-giovanni


answered from mobile, please pardon terseness and typos,
-giovanni

On Fri, Dec 17, 2021, 17:57 solarmon  wrote:

> Hi Giovanni,
>
> I personally use PHP to parse the JSON formatted data - but most scripting
> and programming languages will have a way of doing it.
>
> I would assume you could use the opensipsctrl (or opensips-cli) and MI
> JSON commands to get a script to control opensips - so it will be dependent
> on what control you have using those commands. You can be creative using
> shared variables that can be set using the opensipsctl/opensips-cli
> commands, to control the opensips configuration/logic.
>
>
> On Fri, 17 Dec 2021 at 16:47, Giovanni Maruzzelli 
> wrote:
>
>> On Fri, Dec 17, 2021 at 5:11 PM Giovanni Maruzzelli 
>> wrote:
>>
>>> On Fri, Dec 17, 2021 at 5:08 PM Bogdan-Andrei Iancu 
>>> wrote:
>>>
 You can attach $dlg_val()'s to the dialog. These dialog vals are
 printed by the dlg_list_ctx MI cmd.


>>> I piggyback on this thread:
>>> other than the https://opensips.org/docs/modules/3.1.x/json.html there
>>> are docs, scripts, hints on advanced (eg, non trivial) json processing in
>>> OpenSIPS?
>>>
>>> do it uses a library with extensive docs? or anything else to read?
>>>
>>>
>> answer to myself:
>> https://github.com/rbtylee/tutorial-jsonc/blob/master/tutorial/index.md
>>
>> but... not sure it answers my questions about advanced usage INTO
>> opensips (from the script)
>>
>> -giovanni
>>
>>
>>
>> --
>> Sincerely,
>>
>> Giovanni Maruzzelli
>> OpenTelecom.IT
>> cell: +39 347 266 56 18
>>
>> ___
>> 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] Custom field in dialog list (dlg_list)

2021-12-17 Thread solarmon
Hi Giovanni,

I personally use PHP to parse the JSON formatted data - but most scripting
and programming languages will have a way of doing it.

I would assume you could use the opensipsctrl (or opensips-cli) and MI JSON
commands to get a script to control opensips - so it will be dependent on
what control you have using those commands. You can be creative using
shared variables that can be set using the opensipsctl/opensips-cli
commands, to control the opensips configuration/logic.


On Fri, 17 Dec 2021 at 16:47, Giovanni Maruzzelli  wrote:

> On Fri, Dec 17, 2021 at 5:11 PM Giovanni Maruzzelli 
> wrote:
>
>> On Fri, Dec 17, 2021 at 5:08 PM Bogdan-Andrei Iancu 
>> wrote:
>>
>>> You can attach $dlg_val()'s to the dialog. These dialog vals are printed
>>> by the dlg_list_ctx MI cmd.
>>>
>>>
>> I piggyback on this thread:
>> other than the https://opensips.org/docs/modules/3.1.x/json.html there
>> are docs, scripts, hints on advanced (eg, non trivial) json processing in
>> OpenSIPS?
>>
>> do it uses a library with extensive docs? or anything else to read?
>>
>>
> answer to myself:
> https://github.com/rbtylee/tutorial-jsonc/blob/master/tutorial/index.md
>
> but... not sure it answers my questions about advanced usage INTO opensips
> (from the script)
>
> -giovanni
>
>
>
> --
> Sincerely,
>
> Giovanni Maruzzelli
> OpenTelecom.IT
> cell: +39 347 266 56 18
>
> ___
> 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] Custom field in dialog list (dlg_list)

2021-12-17 Thread Giovanni Maruzzelli
On Fri, Dec 17, 2021 at 5:11 PM Giovanni Maruzzelli 
wrote:

> On Fri, Dec 17, 2021 at 5:08 PM Bogdan-Andrei Iancu 
> wrote:
>
>> You can attach $dlg_val()'s to the dialog. These dialog vals are printed
>> by the dlg_list_ctx MI cmd.
>>
>>
> I piggyback on this thread:
> other than the https://opensips.org/docs/modules/3.1.x/json.html there
> are docs, scripts, hints on advanced (eg, non trivial) json processing in
> OpenSIPS?
>
> do it uses a library with extensive docs? or anything else to read?
>
>
answer to myself:
https://github.com/rbtylee/tutorial-jsonc/blob/master/tutorial/index.md

but... not sure it answers my questions about advanced usage INTO opensips
(from the script)

-giovanni



-- 
Sincerely,

Giovanni Maruzzelli
OpenTelecom.IT
cell: +39 347 266 56 18
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Does anyone have Fraud Detection working in OpenSIPS V3.2?

2021-12-17 Thread Adrian Fretwell

Hi Bogdan,

No, I have not, but I will now.

Having tried to dig in to this issue myself, I now believe it is a 
SIGFPE, not a crash.


Many thanks for your help.

Kind regards,

Adrian.


On 17/12/2021 15:23, Bogdan-Andrei Iancu wrote:

Hi Adrian,

HAve you opened any bug report on the github tracker, with a 
bracktrace and description of the crash ?


Best regards,
Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
OpenSIPS eBootcamp 2021
   https://opensips.org/training/OpenSIPS_eBootcamp_2021/
On 12/15/21 10:53 AM, Adrian Fretwell wrote:


One & All,

Just wondering if anyone has Fraud Detection working in OpenSIPS 
V3.2?  I just can't get the call to check_fraud to work without crashing.


--
Kind regards,

Adrian Fretwell
Nottinghamshire
UK.

___
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] Custom field in dialog list (dlg_list)

2021-12-17 Thread Giovanni Maruzzelli
On Fri, Dec 17, 2021 at 5:08 PM Bogdan-Andrei Iancu 
wrote:

> You can attach $dlg_val()'s to the dialog. These dialog vals are printed
> by the dlg_list_ctx MI cmd.
>
>
I piggyback on this thread:
other than the https://opensips.org/docs/modules/3.1.x/json.html there are
docs, scripts, hints on advanced (eg, non trivial) json processing in
OpenSIPS?

do it uses a library with extensive docs? or anything else to read?

-giovanni


-- 
Sincerely,

Giovanni Maruzzelli
OpenTelecom.IT
cell: +39 347 266 56 18
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Custom field in dialog list (dlg_list)

2021-12-17 Thread Bogdan-Andrei Iancu
You can attach $dlg_val()'s to the dialog. These dialog vals are printed 
by the dlg_list_ctx MI cmd.


Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS eBootcamp 2021
  https://opensips.org/training/OpenSIPS_eBootcamp_2021/

On 12/17/21 5:35 PM, solarmon wrote:

Hi Bogdan,

Yes, correct - I meant the fields available in the output of dlg_list 
and dlg_list_ctx


I'm using this out to sort/filter/search and wondered whether I could 
include custom SIP headers that might also be useful for the 
sort/filter/search.


Cheers!

On Fri, 17 Dec 2021 at 15:24, Bogdan-Andrei Iancu > wrote:


Hi,

By "dialog list" you mean the output of the MI "dlg_list" command ?

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com  
OpenSIPS eBootcamp 2021
   https://opensips.org/training/OpenSIPS_eBootcamp_2021/  


On 12/14/21 11:05 AM, solarmon wrote:

Hi,

In opensips 2.4.x is there a way to inject a custom field into
the dialog list? For example, inject a custom SIP header into it?

Thank you!

___
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] Custom field in dialog list (dlg_list)

2021-12-17 Thread Alain Bieuzent
Hi solarmon,

 

the method I use to do what you want is to go through the profiles 
(https://opensips.org/docs/modules/3.1.x/dialog#func_set_dlg_profile)

 

exemple : 

 set_dlg_profile("Provider",$var(Provider));

 set_dlg_profile("DID",$tU);

 

in dlg_list output we can find information in context part :

 

    "context": {

    "profiles": [

    {

    "DID": "32696XX"

    },

    {

    "Provider": “ORANGE"

    }

    ]

    }

 

Regards 

De : Users  au nom de solarmon 

Répondre à : OpenSIPS users mailling list 
Date : vendredi 17 décembre 2021 à 16:37
À : Bogdan-Andrei Iancu 
Cc : OpenSIPS users mailling list 
Objet : Re: [OpenSIPS-Users] Custom field in dialog list (dlg_list)

 

Hi Bogdan,

 

Yes, correct - I meant the fields available in the output of dlg_list and 
dlg_list_ctx 

 

I'm using this out to sort/filter/search and wondered whether I could include 
custom SIP headers that might also be useful for the sort/filter/search.

 

Cheers!

 

On Fri, 17 Dec 2021 at 15:24, Bogdan-Andrei Iancu  wrote:

Hi,

By "dialog list" you mean the output of the MI "dlg_list" command ?

Regards,

Bogdan-Andrei Iancu
 
OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS eBootcamp 2021 
  https://opensips.org/training/OpenSIPS_eBootcamp_2021/
On 12/14/21 11:05 AM, solarmon wrote:

Hi,

 

In opensips 2.4.x is there a way to inject a custom field into the dialog list? 
For example, inject a custom SIP header into it?

 

Thank you!



___
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] dlg_list - caller_sdp and callee_sdp

2021-12-17 Thread solarmon
Hi Gionanni,

Thank you for the pointer. In our opensips config, I see that we currently
use:

create_dialog("B")

Cheers!

On Fri, 17 Dec 2021 at 15:12, Giovanni Maruzzelli  wrote:

>
> On Tue, Dec 7, 2021 at 8:49 AM solarmon  wrote:
>
>>
>> I'm not sure what you mean by "re-INVITE pinging"
>>
>
> create_dialog("Rr");
> https://opensips.org/docs/modules/3.2.x/dialog.html#func_create_dialog
>
> --
> Sincerely,
>
> Giovanni Maruzzelli
> OpenTelecom.IT
> cell: +39 347 266 56 18
>
> ___
> 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] Custom field in dialog list (dlg_list)

2021-12-17 Thread solarmon
Hi Bogdan,

Yes, correct - I meant the fields available in the output of dlg_list and
dlg_list_ctx

I'm using this out to sort/filter/search and wondered whether I could
include custom SIP headers that might also be useful for the
sort/filter/search.

Cheers!

On Fri, 17 Dec 2021 at 15:24, Bogdan-Andrei Iancu 
wrote:

> Hi,
>
> By "dialog list" you mean the output of the MI "dlg_list" command ?
>
> Regards,
>
> Bogdan-Andrei Iancu
>
> OpenSIPS Founder and Developer
>   https://www.opensips-solutions.com
> OpenSIPS eBootcamp 2021
>   https://opensips.org/training/OpenSIPS_eBootcamp_2021/
>
> On 12/14/21 11:05 AM, solarmon wrote:
>
> Hi,
>
> In opensips 2.4.x is there a way to inject a custom field into the dialog
> list? For example, inject a custom SIP header into it?
>
> Thank you!
>
> ___
> 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


Re: [OpenSIPS-Users] Custom field in dialog list (dlg_list)

2021-12-17 Thread Bogdan-Andrei Iancu

Hi,

By "dialog list" you mean the output of the MI "dlg_list" command ?

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS eBootcamp 2021
  https://opensips.org/training/OpenSIPS_eBootcamp_2021/

On 12/14/21 11:05 AM, solarmon wrote:

Hi,

In opensips 2.4.x is there a way to inject a custom field into the 
dialog list? For example, inject a custom SIP header into it?


Thank you!

___
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] Does anyone have Fraud Detection working in OpenSIPS V3.2?

2021-12-17 Thread Bogdan-Andrei Iancu

Hi Adrian,

HAve you opened any bug report on the github tracker, with a bracktrace 
and description of the crash ?


Best regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS eBootcamp 2021
  https://opensips.org/training/OpenSIPS_eBootcamp_2021/

On 12/15/21 10:53 AM, Adrian Fretwell wrote:


One & All,

Just wondering if anyone has Fraud Detection working in OpenSIPS 
V3.2?  I just can't get the call to check_fraud to work without crashing.


--
Kind regards,

Adrian Fretwell
Nottinghamshire
UK.

___
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] module auth_jwt not in available list of packages OpenSIPS 3.2 Debian/unbuntu

2021-12-17 Thread Bogdan-Andrei Iancu

Hi Jonathan,

Please open a feature request on the opensips tracker, so we can manage 
that.


Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS eBootcamp 2021
  https://opensips.org/training/OpenSIPS_eBootcamp_2021/

On 12/15/21 4:38 PM, Jonathan Hunter wrote:


Hi All,

I am trying to install OpenSIPS 3.2 within a container and use the 
auth_jwt module as I will be authenticating webrtc/sip clients.


I notice it is not available on the list of available deb packages and 
wondered if its possible to add or if its only available from sources?


As ideally be great if it was a package, if any one could advise/ help 
that would be great.


Many thanks

Jon

Sent from Mail  for 
Windows



___
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] timers in opensips 3.2.

2021-12-17 Thread Bogdan-Andrei Iancu

Still 30 :)

https://github.com/OpenSIPS/opensips/blob/master/modules/tm/config.h#L42

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS eBootcamp 2021
  https://opensips.org/training/OpenSIPS_eBootcamp_2021/

On 12/17/21 5:16 PM, Johan De Clercq wrote:

Indeed.

Outlook voor iOS  downloaden

*Van:* Bogdan-Andrei Iancu 
*Verzonden:* Friday, December 17, 2021 4:14:33 PM
*Aan:* OpenSIPS users mailling list ; johan 


*Onderwerp:* Re: timers in opensips 3.2.
Hi Johan,

I assume you refer to the fr_timeout, right ?

https://opensips.org/html/docs/modules/3.2.x/tm.html#param_fr_timeout 



Regards,
Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com  
OpenSIPS eBootcamp 2021
   https://opensips.org/training/OpenSIPS_eBootcamp_2021/  

On 12/17/21 1:01 PM, johan wrote:

Can it be that the retransmission timer now defautls to 10 ms ?

If yes, can you then please update the documentation ?


wkr,


___
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] how to change mysql data directory to CP

2021-12-17 Thread Bogdan-Andrei Iancu

You need to update the DB settings in this file:

https://github.com/OpenSIPS/opensips-cp/blob/master/config/db.inc.php

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS eBootcamp 2021
  https://opensips.org/training/OpenSIPS_eBootcamp_2021/

On 12/16/21 1:52 AM, mrsanvicente wrote:

Yes i did.   And restarted mysqld and httpd.  But still not working.


Thanks

Mario San Vicente


El 15 dic 2021, a la(s) 16:14, Joseph Jackson 
 escribió:




Did you also change the location of the socket file in the my.cnf?

*From:*Users [mailto:users-boun...@lists.opensips.org] *On Behalf Of 
*Mario San Vicente

*Sent:* Wednesday, December 15, 2021 11:27 AM
*To:* OpenSIPS users mailling list
*Subject:* [OpenSIPS-Users] how to change mysql data directory to CP

Hello Everyone,

I have changed my mysql directory and a had limited space on the 
default partition.  I applied the change and opensips is working 
fine. But the control panel is not working and i can not find 
where to update it.


Getting the following error:

http://x.x.x.x/cp/login.php 

Error!: SQLSTATE[HY000] [2002] Can't connect to local MySQL server 
through socket '/var/lib/mysql/mysql.sock' (2)


Any idea, where to update this?

Saludos!

Mario San Vicente

___
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] timers in opensips 3.2.

2021-12-17 Thread Johan De Clercq
Indeed.

Outlook voor iOS downloaden

Van: Bogdan-Andrei Iancu 
Verzonden: Friday, December 17, 2021 4:14:33 PM
Aan: OpenSIPS users mailling list ; johan 

Onderwerp: Re: timers in opensips 3.2.

Hi Johan,

I assume you refer to the fr_timeout, right ?

https://opensips.org/html/docs/modules/3.2.x/tm.html#param_fr_timeout

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS eBootcamp 2021
  https://opensips.org/training/OpenSIPS_eBootcamp_2021/

On 12/17/21 1:01 PM, johan wrote:

Can it be that the retransmission timer now defautls to 10 ms ?

If yes, can you then please update the documentation ?


wkr,





___
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] timers in opensips 3.2.

2021-12-17 Thread Bogdan-Andrei Iancu

Hi Johan,

I assume you refer to the fr_timeout, right ?

https://opensips.org/html/docs/modules/3.2.x/tm.html#param_fr_timeout

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS eBootcamp 2021
  https://opensips.org/training/OpenSIPS_eBootcamp_2021/

On 12/17/21 1:01 PM, johan wrote:

Can it be that the retransmission timer now defautls to 10 ms ?

If yes, can you then please update the documentation ?


wkr,


___
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] dlg_list - caller_sdp and callee_sdp

2021-12-17 Thread Giovanni Maruzzelli
On Tue, Dec 7, 2021 at 8:49 AM solarmon  wrote:

>
> I'm not sure what you mean by "re-INVITE pinging"
>

create_dialog("Rr");
https://opensips.org/docs/modules/3.2.x/dialog.html#func_create_dialog

-- 
Sincerely,

Giovanni Maruzzelli
OpenTelecom.IT
cell: +39 347 266 56 18
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] timers in opensips 3.2.

2021-12-17 Thread johan
Can it be that the retransmission timer now defautls to 10 ms ?

If yes, can you then please update the documentation ?


wkr,



OpenPGP_0xD7D896F7DDA70EC3.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Memory leak

2021-12-17 Thread Bogdan-Andrei Iancu

Hi Schneur,

I suspect that the leaking mk_proxy is related to the changing of the 
RURI in local route. Let me test your snippet. BTW, is that the whole 
processing you do in local route? is the $rd (from LB) a FQDN or 
straight IP ?


Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS eBootcamp 2021
  https://opensips.org/training/OpenSIPS_eBootcamp_2021/

On 12/16/21 9:43 AM, Schneur Rosenberg wrote:

Hi Bogdan

I think I found the issue, I recently added these lines of code,
because of a probing issue I was having, I just searched from my
previous tickets and I see that you have warned me about the
implications but for some reason I never read the message.

Here is the old ticket
https://www.mail-archive.com/users@lists.opensips.org/msg43301.html
the reason I'm using INVITE to probe is because I want the servers
that were probed not only to respond but also check if the database is
working, I did it this way because I had cases where mysql crashed but
my asterisk servers were still responding to the probe but all of the
calls just hung, so I do a invite and it does a DB lookup and it will
only return a positive message if it was able to query the DB, do you
have a better solution? at the time I set it up I couldn't run a query
on receipt of a OPTIONS but perhaps I didn't look good enough :-),
either way can I do anything to make sure this code doesn't leak
memory? this probing has worked for years until I needed the Contact
header.

local_route {
  if (is_method("INVITE")&& $fU=="pingTest"){
 $ru="sip:s@"+$rd ;
 append_hf("Contact: \r\n");
 exit;
  }
}

On Fri, Dec 10, 2021 at 2:16 PM Schneur Rosenberg
 wrote:

Hi Bogdan,

I did it on a backup server, its also leaking memory but at a slower
pace, I'm attaching the logs when running kill -SIGUSR1 on the pid
that's growing in size, it still has available memory, I hop this will
give you a clue.

Here is a pastbin to the loggs https://pastebin.com/KJVb9Y75

On Fri, Dec 10, 2021 at 11:00 AM Schneur Rosenberg
 wrote:

Thank you, does this reduce performance? can I leave it enabled on a
production machine? I will wait for the memory leak to be apparent and
I'll post the result.


On Thu, Dec 9, 2021 at 12:31 PM Bogdan-Andrei Iancu  wrote:

Hi Schneur,

Just follow the
https://www.opensips.org/Documentation/TroubleShooting-OutOfMem and
provide the dump. This is the only way to investigate this.

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
https://www.opensips-solutions.com
OpenSIPS eBootcamp 2021
https://opensips.org/training/OpenSIPS_eBootcamp_2021/

On 12/8/21 12:14 PM, Schneur Rosenberg wrote:

I just noticed that process 88 runs the timer handler, perhaps this
might shed light on whats going on.

opensipsctl fifo ps
Process::  ID=88 PID=5327 Type=Timer handler

On Wed, Dec 8, 2021 at 10:55 AM Schneur Rosenberg
 wrote:

Now a few hours later this is what I'm getting
Dec  8 09:50:13 /sbin/opensips[21699]: ERROR:nathelper:nh_timer: out
of pkg memory
Dec  8 09:50:16 /sbin/opensips[21699]: WARNING:core:fm_malloc: not
enough continuous free pkg memory (3024 bytes left, need 5128),
attempting defragmentation... please increase the "-M" command line
parameter!
Dec  8 09:50:16 /sbin/opensips[21699]: ERROR:core:fm_malloc: not
enough free pkg memory (3024 bytes left, need 5128), please increase
the "-M" command line parameter!

Here is the last 20 package memory max_used_size
pkmem:70-max_used_size:: 1009584
pkmem:71-max_used_size:: 1009584
pkmem:72-max_used_size:: 1009584
pkmem:73-max_used_size:: 1009584
pkmem:74-max_used_size:: 1009584
pkmem:75-max_used_size:: 1009584
pkmem:76-max_used_size:: 1009584
pkmem:77-max_used_size:: 1009584
pkmem:78-max_used_size:: 1009584
pkmem:79-max_used_size:: 1009584
pkmem:80-max_used_size:: 1044752
pkmem:81-max_used_size:: 1075552
pkmem:82-max_used_size:: 1116848
pkmem:83-max_used_size:: 1117456
pkmem:84-max_used_size:: 1102640
pkmem:85-max_used_size:: 1306992
pkmem:86-max_used_size:: 1706304
pkmem:87-max_used_size:: 2507000
pkmem:88-max_used_size:: 4194264
pkmem:89-max_used_size:: 1009584

And here is the real used size, you can see that process 88 maxed out
pkmem:69-real_used_size:: 975528
pkmem:70-real_used_size:: 978016
pkmem:71-real_used_size:: 989592
pkmem:72-real_used_size:: 951416
pkmem:73-real_used_size:: 982496
pkmem:74-real_used_size:: 965744
pkmem:75-real_used_size:: 959424
pkmem:76-real_used_size:: 949472
pkmem:77-real_used_size:: 983080
pkmem:78-real_used_size:: 961400
pkmem:79-real_used_size:: 977808
pkmem:80-real_used_size:: 978928
pkmem:81-real_used_size:: 1009936
pkmem:82-real_used_size:: 1110760
pkmem:83-real_used_size:: 1116720
pkmem:84-real_used_size:: 1096568
pkmem:85-real_used_size:: 1300592
pkmem:86-real_used_size:: 1699648
pkmem:87-real_used_size:: 2501096
pkmem:88-real_used_size:: 4191280
pkmem:89-real_used_size:: 882528

On Tue, Dec 7, 2021 at 7:53 PM Schneur Rosenberg
 wrote:

Hi, lately