<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=us-ascii"><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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Verdana","sans-serif";
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.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";
mso-fareast-language:EN-US;}
span.SprechblasentextZchn
{mso-style-name:"Sprechblasentext Zchn";
mso-style-priority:99;
mso-style-link:Sprechblasentext;
font-family:"Tahoma","sans-serif";}
span.E-MailFormatvorlage19
{mso-style-type:personal-compose;
font-family:"Verdana","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
font-family:"Verdana","sans-serif";
mso-fareast-language:EN-US;}
@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 lang=DE link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>Dear all,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>there seems to be a limit of using $acc_extra() variables.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'><o:p> </o:p></span></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. <o:p></o:p></span></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.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'><o:p> </o:p></span></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.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'><o:p> </o:p></span></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:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'><o:p> </o:p></span></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")<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>route{ <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>…<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'> do_accounting("log", "missed|failed", "");<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'> $acc_extra(switch)="sitename"; ..(and couple of assignments/po’s more) …<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'> $acc_extra(si)="si”;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'> $acc_extra(ua)="ua”;<o:p></o:p></span></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)");<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'> <b>#</b>$acc_extra(ua)="ua”;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'> <b>#</b>$acc_extra(received)="yes";<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'> <b>#</b>xlog("L_DBG","+++ $acc_extra(ua)");<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>…<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>}<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>If I remove any of the “#” above I get:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'><o:p> </o:p></span></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!<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>Feb 7 10:57:25 sbc-dtag-bln opensips[3282]: -e<o:p></o:p></span></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] INFO:core:tr_parse_re: preparing to parse param<o:p></o:p></span></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] INFO:cfgutils:shvar_init_locks: locks array size 16<o:p></o:p></span></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] INFO:core:tr_parse_re: preparing to parse param<o:p></o:p></span></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] INFO:core:tr_parse_re: preparing to parse param<o:p></o:p></span></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] INFO:core:tr_parse_re: preparing to parse param<o:p></o:p></span></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] INFO:core:tr_parse_re: preparing to parse param<o:p></o:p></span></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] INFO:core:fix_poll_method: using epoll_lt as the IO watch method (auto detected)<o:p></o:p></span></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!<o:p></o:p></span></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<o:p></o:p></span></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<o:p></o:p></span></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<o:p></o:p></span></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!<o:p></o:p></span></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<o:p></o:p></span></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<o:p></o:p></span></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<o:p></o:p></span></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<o:p></o:p></span></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<o:p></o:p></span></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<o:p></o:p></span></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....<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>This is for OpenSIPS 2.2 & 2.3, running on <o:p></o:p></span></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<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'>Thanks for your help<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'> Marco<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:11.0pt'><o:p> </o:p></span></p></div></body></html>