<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>