Dear all,
there seems to be a limit of using $acc_extra() variables.
I'm using the ACC module to log accounting data into a file and it's working
fine even with logging of extra_fields.
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.
Ok, so I set start option -M from 8 to 128... but the fault did not change.
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 "#"-signs below:
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")
route{
...
do_accounting("log", "missed|failed", "");
$acc_extra(switch)="sitename"; ..(and couple of
assignments/po's more) ...
$acc_extra(si)="si";
$acc_extra(ua)="ua";
xlog("L_DBG","+++ $acc_extra(ua)");
#$acc_extra(ua)="ua";
#$acc_extra(received)="yes";
#xlog("L_DBG","+++ $acc_extra(ua)");
...
}
If I remove any of the "#" above I get:
Feb 7 10:57:25 sbc-dtag-bln opensips[3282]: Not starting opensips: invalid
configuration file!
Feb 7 10:57:25 sbc-dtag-bln opensips[3282]: -e
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
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
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
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
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
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
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)
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!
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
Feb 7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25 [3290]
ERROR:core:new_sock2list: new_sock_info failed
Feb 7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25 [3290]
ERROR:core:add_interfaces: new_sock2list failed
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!
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
Feb 7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25 [3290]
ERROR:core:new_sock2list: new_sock_info failed
Feb 7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25 [3290]
ERROR:core:add_interfaces: new_sock2list failed
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
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
Feb 7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25 [3290]
ERROR:core:main: failed to initialize list addresses
Feb 7 10:57:25 sbc-dtag-bln opensips[3282]: Feb 7 10:57:25 [3290]
NOTICE:core:main: Exiting....
This is for OpenSIPS 2.2 & 2.3, running on
Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19) x86_64
GNU/Linux
Thanks for your help
Marco
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users