<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Verdana","sans-serif";
color:black;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:10.0pt;
font-family:"Verdana","sans-serif";
color:black;
mso-fareast-language:EN-US;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Vorformatiert Zchn";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;
mso-fareast-language:DE;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Sprechblasentext Zchn";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
color:black;
mso-fareast-language:EN-US;}
span.HTMLVorformatiertZchn
{mso-style-name:"HTML Vorformatiert Zchn";
mso-style-priority:99;
mso-style-link:"HTML Vorformatiert";
font-family:Consolas;
color:black;}
span.SprechblasentextZchn
{mso-style-name:"Sprechblasentext Zchn";
mso-style-priority:99;
mso-style-link:Sprechblasentext;
font-family:"Tahoma","sans-serif";}
span.E-MailFormatvorlage22
{mso-style-type:personal;
font-family:"Verdana","sans-serif";
color:windowtext;}
span.E-MailFormatvorlage23
{mso-style-type:personal-reply;
font-family:"Verdana","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=DE link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt;color:#1F497D'>Hi Ionut,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt;color:#1F497D'>I can’t send the signal to any process, because OpenSIPS does not start. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt;color:#1F497D'>But I set </span><b><span lang=EN-GB>memdump=1</span></b><span lang=EN-GB> </span><span lang=EN-GB style='font-size:11.0pt;color:#1F497D'>during the start and put the log here: </span><span style='font-size:11.0pt;color:#1F497D'><a href="https://www.file-upload.net/download-12311434/Feb10start.log.html"><span lang=EN-GB>https://www.file-upload.net/download-12311434/Feb10start.log.html</span></a></span><span lang=EN-GB style='font-size:11.0pt;color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt;color:#1F497D'>Thanks for your help!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt;color:#1F497D'> Marco<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt;color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:DE'>Von:</span></b><span style='font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:DE'> Users [mailto:users-bounces@lists.opensips.org] <b>Im Auftrag von </b>Ionut Ionita<br><b>Gesendet:</b> Donnerstag, 9. Februar 2017 16:56<br><b>An:</b> OpenSIPS users mailling list<br><b>Betreff:</b> Re: [OpenSIPS-Users] limit of using $acc_extra() variables<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p>Please start OpenSIPS using <b>memdump=1</b> option at the beginning of your script. When the memory errors appear generate a SIGUSR1 signal to all opensips processes<o:p></o:p></p><p><b>killall -SIGUSR1 opensips</b><o:p></o:p></p><p>and then please sent me the memory report you should see in your logs. For more information check this tutorial[0], last section(<b>At runtime</b>). You can either send the results here on the list or privately, however you prefer.<o:p></o:p></p><p><o:p> </o:p></p><p>[0] <a href="http://www.opensips.org/Documentation/TroubleShooting-OutOfMem">http://www.opensips.org/Documentation/TroubleShooting-OutOfMem</a><o:p></o:p></p><pre>Regards,<o:p></o:p></pre><pre>Ionut Ionita<o:p></o:p></pre><pre>OpenSIPS Developer<o:p></o:p></pre><div><p class=MsoNormal>On 02/07/2017 12:39 PM, Marco Hierl wrote:<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>Dear all,</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>there seems to be a limit of using $acc_extra() variables.</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>I’m using the ACC module to log accounting data into a file and it’s working fine even with logging of extra_fields. </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>But when I come to the point that I used $acc_extra variables more often (around 45 times) in the config file, I get “not enough free pkg memory” during the OpenSIPS start.</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>Ok, so I set start option –M from 8 to 128… but the fault did not change.</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>Maybe this part of my config file can explain it better. It is running fine as long as I don’t remove one of the “<b>#</b>”-signs below:</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>modparam("acc", "extra_fields", "log: switch; internal_ci; related_inc_cdrs; time; us; si; inroute; outroute; bno_in; bno_out; snr; ziel; tu; anum; fu; diverting_no; cpc; privacy; ua; received; p-germany-tariff; switch_dur; init; eos")</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>route{ </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>…</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'> do_accounting("log", "missed|failed", "");</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'> $acc_extra(switch)="sitename"; ..(and couple of assignments/po’s more) …</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'> $acc_extra(si)="si”;</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'> $acc_extra(ua)="ua”;</span><o:p></o:p></p><p class=MsoNormal style='margin-left:35.4pt;text-indent:35.4pt'><span lang=EN-GB style='font-size:11.0pt'>xlog("L_DBG","+++ $acc_extra(ua)");</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'> <b>#</b>$acc_extra(ua)="ua”;</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'> <b>#</b>$acc_extra(received)="yes";</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'> <b>#</b>xlog("L_DBG","+++ $acc_extra(ua)");</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>…</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>}</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>If I remove any of the “#” above I get:</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>Feb 7 10:57:25 sbc-dtag-bln opensips[3282]: Not starting opensips: invalid configuration file!</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt'>Feb 7 10:57:25 sbc-dtag-bln opensips[3282]: -e</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>Feb 7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25 [3290] <a href="INFO:core:tr_parse_re">INFO:core:tr_parse_re</a>: preparing to parse param</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>Feb 7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25 [3290] <a href="INFO:cfgutils:shvar_init_locks">INFO:cfgutils:shvar_init_locks</a>: locks array size 16</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>Feb 7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25 [3290] <a href="INFO:core:tr_parse_re">INFO:core:tr_parse_re</a>: preparing to parse param</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>Feb 7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25 [3290] <a href="INFO:core:tr_parse_re">INFO:core:tr_parse_re</a>: preparing to parse param</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>Feb 7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25 [3290] <a href="INFO:core:tr_parse_re">INFO:core:tr_parse_re</a>: preparing to parse param</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>Feb 7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25 [3290] <a href="INFO:core:tr_parse_re">INFO:core:tr_parse_re</a>: preparing to parse param</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>Feb 7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25 [3290] <a href="INFO:core:fix_poll_method">INFO:core:fix_poll_method</a>: using epoll_lt as the IO watch method (auto detected)</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>Feb 7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25 [3290] ERROR:core:qm_malloc: not enough free pkg memory (64 bytes left), please increase the "-M" command line parameter!</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>Feb 7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25 [3290] ERROR:core:new_sock_info: pkg memory allocation error</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>Feb 7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25 [3290] ERROR:core:new_sock2list: new_sock_info failed</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>Feb 7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25 [3290] ERROR:core:add_interfaces: new_sock2list failed</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>Feb 7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25 [3290] ERROR:core:qm_malloc: not enough free pkg memory (64 bytes left), please increase the "-M" command line parameter!</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>Feb 7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25 [3290] ERROR:core:new_sock_info: pkg memory allocation error</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>Feb 7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25 [3290] ERROR:core:new_sock2list: new_sock_info failed</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>Feb 7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25 [3290] ERROR:core:add_interfaces: new_sock2list failed</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>Feb 7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25 [3290] ERROR:core:fix_socket_list: could not resolve eth0</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>Feb 7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25 [3290] ERROR:core:fix_all_socket_lists: fix_socket_list for 1 failed</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>Feb 7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25 [3290] ERROR:core:main: failed to initialize list addresses</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>Feb 7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25 [3290] NOTICE:core:main: Exiting....</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>This is for OpenSIPS 2.2 & 2.3, running on </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt'>Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19) x86_64 GNU/Linux</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>Thanks for your help</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'> Marco</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:DE'><br><br><br><o:p></o:p></span></p><pre>_______________________________________________<o:p></o:p></pre><pre>Users mailing list<o:p></o:p></pre><pre><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><o:p></o:p></pre><pre><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><o:p></o:p></pre></blockquote><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:DE'><o:p> </o:p></span></p></div></body></html>