Hello,
In my ser.cfg I would like to add a lot of peers in this form:
... if (uri=~"^sip:*123[0-9]*@.*"){ xlog("L_INFO", "Forwarding *123 to 'other.sip.com': %fu (%ua - %is) -> %tu, %mf\n"); strip(4); rewritehost("other.sip.com"); } ...
If I put four of them, everything is okay, ser starts and the calls are correctly redirected.
But if I put 1000 of them:
Oct 27 02:55:57 ser ser: ERROR:lex:addstr: memory allocation error Oct 27 02:55:57 ser last message repeated 71 times Oct 27 02:55:57 ser ser: ERROR: mk_action: memory allocation failure Oct 27 02:55:57 ser ser: ERROR: mk_action: memory allocation failure Oct 27 02:55:57 ser ser: ERROR:lex:addstr: memory allocation error Oct 27 02:55:57 ser last message repeated 12 times Oct 27 02:55:57 ser ser: ERROR: mk_action: memory allocation failure Oct 27 02:55:57 ser ser: ERROR: mk_action: memory allocation failure Oct 27 02:55:57 ser ser: ERROR:lex:addstr: memory allocation error Oct 27 02:55:57 ser last message repeated 20 times Oct 27 02:55:57 ser ser: ERROR: mk_elem: memory allocation failure Oct 27 02:55:57 ser ser: ERROR:lex:addstr: memory allocation error
I tried to change #define SHM_MEM_SIZE 32 into #define SHM_MEM_SIZE 128 in config.h, but same result.
Also, in some old doc, a config item called 'shared_mem_size', but adding shared_mem_size=256 in ser.cfg just leads to a Oct 27 03:04:16 ser ser: parse error (30,1-16): syntax error
I am quite sure it's just a number to change, but where?
Thanks in advance