<div>I forgot to mention the kamailio information</div>
<div> </div>
<div><br>kamailio -V<br>version: kamailio 3.1.0 (i386/linux) 21a375<br>flags: STATS: Off, USE_IPV6, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES<br>
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, PKG_SIZE 10MB<br>poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.<br>id: 21a375<br>compiled on 15:13:13 Jan 14 2011 with gcc 4.5.0</div>

<div><br><br><br> </div>
<div class="gmail_quote">On Wed, Jan 26, 2011 at 3:31 PM, Jijo <span dir="ltr">&lt;<a href="mailto:realjijo@gmail.com">realjijo@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div> </div>
<div>Hi All,</div>
<div> </div>
<div>is there any limitation on the size of kamailo.cfg file. When i tried to add few avp_subst, then the kamailio starts showing up the error out of package memory on receiving SIP message. If i remove those lines then everything works fine.. avp_subst is simple one.  Our kamailio cfg file is quite big..</div>

<div> </div>
<div>Please let me know how to debug this issue?</div>
<div> </div>
<div>Here is the error</div>
<div> 2011-01-26T15:18:02-05:00 [err] sipserver: ERROR: &lt;core&gt; [db_row.c:116]: no private memory left<br>2011-01-26T15:18:02-05:00 [err] sipserver: ERROR: db_postgres [km_res.c:293]: could not allocate row<br>2011-01-26T15:18:02-05:00 [err] sipserver: ERROR: db_postgres [km_res.c:258]: failed to convert row #1<br>
2011-01-26T15:18:02-05:00 [err] sipserver: ERROR: db_postgres [km_res.c:75]: failed to convert rows<br>2011-01-26T15:18:02-05:00 [err] sipserver: ERROR: db_postgres [km_dbase.c:416]: error while converting result<br>2011-01-26T15:18:02-05:00 [err] sipserver: ERROR: &lt;core&gt; [db_query.c:137]: error while storing result<br>
2011-01-26T15:18:02-05:00 [err] sipserver: ERROR: avpops [avpops_db.c:333]: cannot do the query<br>2011-01-26T15:18:02-05:00 [err] sipserver: ERROR: &lt;core&gt; [parser/msg_parser.c:342]: ERROR:parse_headers: memory allocation error<br>
2011-01-26T15:18:02-05:00 [err] sipserver: ERROR: maxfwd [mf_funcs.c:62]: parsing MAX_FORWARD header failed!<br>2011-01-26T15:18:02-05:00 [err] sipserver: ERROR: &lt;core&gt; [parser/msg_parser.c:342]: ERROR:parse_headers: memory allocation error<br>
2011-01-26T15:18:02-05:00 [err] sipserver: ERROR: rr [loose.c:98]: failed to parse headers<br>2011-01-26T15:18:02-05:00 [err] sipserver: ERROR: &lt;core&gt; [parser/msg_parser.c:342]: ERROR:parse_headers: memory allocation error<br>
2011-01-26T15:18:02-05:00 [err] sipserver: ERROR: siputils [checks.c:64]: To parsing failed<br>2011-01-26T15:18:02-05:00 [err] sipserver: ERROR: &lt;core&gt; [action.c:831]: ERROR: do_action: memory allocation  failure<br>
2011-01-26T15:18:02-05:00 [err] sipserver: ERROR: &lt;core&gt; [action.c:1511]: run action error at: :0<br>2011-01-26T15:18:02-05:00 [err] sipserver: ERROR: pv [pv_core.c:1761]: do action failed<br>2011-01-26T15:18:02-05:00 [err] sipserver: ERROR: &lt;core&gt; [lvalue.c:358]: setting pvar failed<br>
2011-01-26T15:18:02-05:00 [err] sipserver: ERROR: &lt;core&gt; [parser/msg_parser.c:342]: ERROR:parse_headers: memory allocation error<br>2011-01-26T15:18:02-05:00 [err] sipserver: ERROR: &lt;core&gt; [parser/parse_from.c:71]: ERROR:parse_from_header: out of pkg_memory<br>
2011-01-26T15:18:02-05:00 [err] sipserver: ERROR: &lt;core&gt; [route.c:1846]: ERROR: eval_elem: bad or missing From: header<br>2011-01-26T15:18:02-05:00 [err] sipserver: ERROR: &lt;core&gt; [parser/msg_parser.c:342]: ERROR:parse_headers: memory allocation error<br>
2011-01-26T15:18:02-05:00 [err] sipserver: ERROR: &lt;core&gt; [parser/msg_parser.c:342]: ERROR:parse_headers: memory allocation error<br>2011-01-26T15:18:02-05:00 [err] sipserver: ERROR: &lt;core&gt; [parser/msg_parser.c:342]: ERROR:parse_headers: memory allocation error<br>
2011-01-26T15:18:02-05:00 [err] sipserver: ERROR: &lt;core&gt; [msg_translator.c:2229]: ERROR: build_res_buf_from_sip_req: alas, parse_headers failed<br>2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: &lt;core&gt; [parser/msg_parser.c:170]: get_hdr_field: out of memory<br>
2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: rr [loose.c:70]: failed to parse To header field<br>2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: &lt;core&gt; [parser/msg_parser.c:170]: get_hdr_field: out of memory<br>
2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: siputils [checks.c:64]: To parsing failed<br>2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: &lt;core&gt; [action.c:831]: ERROR: do_action: memory allocation  failure<br>
2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: &lt;core&gt; [action.c:1511]: run action error at: :0<br>2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: pv [pv_core.c:1740]: do action failed)<br>2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: &lt;core&gt; [lvalue.c:358]: setting pvar failed<br>
2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: &lt;core&gt; [parser/msg_parser.c:170]: get_hdr_field: out of memory<br>2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: &lt;core&gt; [parser/msg_parser.c:170]: get_hdr_field: out of memory<br>
2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: pv [pv_core.c:1381]: error parsing headers<br>2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: &lt;core&gt; [parser/msg_parser.c:342]: ERROR:parse_headers: memory allocation error<br>
2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: &lt;core&gt; [data_lump.c:318]: ERROR: del_lump: out of memory<br>2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: textops [textops.c:1081]: no memory<br>2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: &lt;core&gt; [parser/parse_from.c:71]: ERROR:parse_from_header: out of pkg_memory<br>
2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: &lt;core&gt; [route.c:1846]: ERROR: eval_elem: bad or missing From: header<br>2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: pv [pv_svar.c:117]: out of pkg mem!<br>2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: pv [pv_core.c:1640]: error - cannot set svar [backLinkMode]<br>
2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: &lt;core&gt; [lvalue.c:358]: setting pvar failed<br>2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: &lt;core&gt; [parser/parse_from.c:71]: ERROR:parse_from_header: out of pkg_memory<br>
2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: pv [pv_core.c:418]: cannot parse From header<br>2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: &lt;core&gt; [parser/msg_parser.c:342]: ERROR:parse_headers: memory allocation error<br>
2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: pv [pv_core.c:400]: cannot parse To header<br>2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: pv [pv_svar.c:117]: out of pkg mem!<br>2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: pv [pv_core.c:1640]: error - cannot set svar [temp]<br>
2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: &lt;core&gt; [lvalue.c:358]: setting pvar failed<br>2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: pv [pv_svar.c:117]: out of pkg mem!<br>2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: pv [pv_core.c:1640]: error - cannot set svar [node]<br>
2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: osb [osb.c:916]: osb_set_var_char(): setting profile PV failed. value INVALID (char)<br>2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: pv [pv_svar.c:117]: out of pkg mem!<br>
2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: pv [pv_core.c:1640]: error - cannot set svar [binding]<br>2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: osb [osb.c:916]: osb_set_var_char(): setting profile PV failed. value INVALID (char)<br>
2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: &lt;core&gt; [parser/msg_parser.c:342]: ERROR:parse_headers: memory allocation error<br>2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: &lt;core&gt; [parser/msg_parser.c:342]: ERROR:parse_headers: memory allocation error<br>
2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: &lt;core&gt; [parser/msg_parser.c:342]: ERROR:parse_headers: memory allocation error<br>2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: &lt;core&gt; [parser/msg_parser.c:342]: ERROR:parse_headers: memory allocation error<br>
2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: &lt;core&gt; [parser/msg_parser.c:342]: ERROR:parse_headers: memory allocation error<br>2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: pv [pv_shv.c:367]: no more pkg mem<br>
2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: &lt;core&gt; [parser/parse_from.c:71]: ERROR:parse_from_header: out of pkg_memory<br>2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: pv [pv_core.c:418]: cannot parse From header<br>
2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: &lt;core&gt; [parser/msg_parser.c:342]: ERROR:parse_headers: memory allocation error<br>2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: pv [pv_core.c:400]: cannot parse To header<br>
2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: pv [pv_svar.c:117]: out of pkg mem!<br>2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: pv [pv_core.c:1640]: error - cannot set svar [temp]<br>2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: &lt;core&gt; [lvalue.c:358]: setting pvar failed<br>
2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: pv [pv_svar.c:117]: out of pkg mem!<br>2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: pv [pv_core.c:1640]: error - cannot set svar [node]<br>2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: osb [osb.c:916]: osb_set_var_char(): setting profile PV failed. value INVALID (char)<br>
2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: pv [pv_svar.c:117]: out of pkg mem!<br>2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: pv [pv_core.c:1640]: error - cannot set svar [binding]<br>2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: osb [osb.c:916]: osb_set_var_char(): setting profile PV failed. value INVALID (char)<br>
2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: &lt;core&gt; [parser/parse_from.c:71]: ERROR:parse_from_header: out of pkg_memory<br>2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: pv [pv_core.c:418]: cannot parse From header<br>
2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: osb [osb.c:1257]: osb_get_osv_current_binding(): no binding available<br>2011-01-26T15:18:07-05:00 [err] sipserver: ERROR: &lt;script&gt;: R1 - binding IP=0 not available</div>

<div><br> </div></blockquote></div><br>