<DIV>Dear sir:<BR>I get the error during during processing of SIP message. The config file i used is below (the config works well on other kamailio server). By the way , the email system i used dosen't support:<SPAN style="COLOR: #660000"><EM>all the time please keep CC-ing to mailing list address </EM></SPAN></DIV>
<DIV><SPAN style="COLOR: #660000"><FONT color="#000000">or</FONT> <FONT color="#000000">maybe i</FONT> <FONT color="#000000">add the mailing list address in a wrong place, mails with a cc-ing added will be posted back.</FONT></SPAN></DIV>
<DIV><SPAN style="COLOR: #660000"><FONT color="#000000">is it CC:<A href="mailto:users@lists.kamailio.org">users@lists.kamailio.org</A>?</FONT></SPAN></DIV>
<DIV><SPAN style="COLOR: #660000"></SPAN>debug=3<BR>fork=yes<BR>log_stderror=yes<BR>port=5060<BR>####### Modules Section ########<BR>mpath="/usr/local/lib/kamailio/modules/"<BR>loadmodule "db_mysql.so"<BR>loadmodule "mi_fifo.so"<BR>loadmodule "sl.so"<BR>loadmodule "tm.so"<BR>loadmodule "rr.so"<BR>loadmodule "pv.so"<BR>loadmodule "maxfwd.so"<BR>loadmodule "usrloc.so"<BR>loadmodule "registrar.so"<BR>loadmodule "textops.so"<BR>loadmodule "uri_db.so"<BR>loadmodule "siputils.so"<BR>loadmodule "xlog.so"<BR>loadmodule "acc.so"<BR>loadmodule "path.so"<BR>loadmodule "auth.so"<BR>loadmodule "auth_db.so"<BR>loadmodule "domain.so"<BR>loadmodule "presence.so"<BR>loadmodule "presence_xml.so"<BR>loadmodule "nathelper.so"<BR># ----------------- setting module-specific parameters ---------------<BR>modparam("mi_fifo", "fifo_name", "/tmp/kamailio_fifo")<BR>modparam("rr", "enable_full_lr", 1)<BR>modparam("rr", "append_fromtag", 0)<BR>modparam("registrar", "method_filtering", 1)<BR>modparam("registrar", "append_branches", 0)<BR>modparam("registrar", "max_contacts", 10)<BR>modparam("uri_db", "use_uri_table", 0)<BR>modparam("uri_db", "db_url", "")<BR>modparam("acc", "early_media", 1)<BR>modparam("acc", "report_ack", 1)<BR>modparam("acc", "report_cancels", 1)<BR>modparam("acc", "detect_direction", 0)<BR>modparam("acc", "failed_transaction_flag", 3)<BR>modparam("acc", "log_flag", 1)<BR>modparam("acc", "log_missed_flag", 2)<BR>modparam("acc", "log_extra", "src_user=$fU;src_domain=$fd;dst_ouser=$tU;dst_user=$rU;dst_domain=$rd")<BR>modparam("acc", "db_flag", 1)<BR>modparam("acc", "db_missed_flag", 2)<BR>modparam("domain", "db_url", "mysql://root:123456@localhost/SIP")<BR>modparam("acc", "db_extra", "src_user=$fU;src_domain=$fd;dst_ouser=$tU;dst_user=$rU;dst_domain=$rd")<BR>modparam("usrloc", "db_mode", 2)<BR>modparam("usrloc", "db_url", "mysql://root:123456@localhost/SIP")<BR>modparam("auth_db", "calculate_ha1", yes)<BR>modparam("auth_db", "password_column", "password")<BR>modparam("auth_db", "db_url", "mysql://root:123456@localhost/SIP")<BR>modparam("auth_db", "load_credentials", "")<BR>modparam("domain", "db_url", "mysql://root:123456@localhost/SIP")<BR>modparam("domain", "db_mode", 1) <BR>modparam("alias_db|auth_db|usrloc|uri_db", "use_domain", 1)<BR>modparam("presence|presence_xml", "db_url", "mysql://root:123456@localhost/SIP")<BR>modparam("presence_xml", "force_active", 1)<BR>modparam("presence", "server_address", "sip:26.28.29.253:5060")<BR>modparam("nathelper", "rtpproxy_sock", "udp:26.28.249.253:7722")<BR>modparam("nathelper", "natping_interval", 30)<BR>modparam("nathelper", "rtpproxy_tout", 10)<BR>modparam("nathelper", "ping_nated_only", 1)<BR>modparam("nathelper", "sipping_bflag", 7)<BR>modparam("nathelper", "sipping_from", "sip:<A href="mailto:pinger@kamailio.org">pinger@kamailio.org</A>")<BR>modparam("registrar|nathelper", "received_avp", "$avp(i:80)")<BR>modparam("usrloc", "nat_bflag", 6)<BR>modparam("path", "use_received", 1)<BR><BR>####### Routing Logic ########<BR>route{<BR> if (!mf_process_maxfwd_header("10")) {<BR> sl_send_reply("483","Too Many Hops");<BR> exit;<BR> }<BR> if(msg:len>=2048)<BR> {<BR> sl_send_reply("513","Message too big");<BR> exit;<BR> }<BR> route(4);<BR> if (has_totag()) {<BR> if (loose_route()) {<BR> if (is_method("BYE")) {<BR> setflag(1); # do accounting ...<BR> setflag(3); # ... even if the transaction fails<BR> }<BR> route(1);<BR> } else {<BR> if (is_method("SUBSCRIBE") && uri == myself) {<BR> # in-dialog subscribe requests<BR> route(2);<BR> exit;<BR> }<BR> if ( is_method("ACK") ) {<BR> if ( t_check_trans() ) {<BR> # non loose-route, but stateful ACK; must be an ACK after a 487 or e.g. 404 from upstream server<BR> t_relay();<BR> exit;<BR> } else {<BR> # ACK without matching transaction ... ignore and discard.\n");<BR> exit;<BR> }<BR> }<BR> sl_send_reply("404","Not here");<BR> }<BR> exit;<BR> }<BR> if (is_method("CANCEL"))<BR> {<BR> if (t_check_trans())<BR> t_relay();<BR> exit;<BR> }<BR> t_check_trans();<BR> if(!uri==myself)<BR> {<BR> append_hf("P-hint: outbound\r\n");<BR> if(is_method("REGISTER|MESSAGE"))<BR> {<BR> if(is_method("REGISTER"))<BR> {<BR> if(!add_path_received())<BR> {<BR> sl_send_reply("503","Internal Path Error!");<BR> exit();<BR> }<BR> } <BR> }<BR> else<BR> {<BR> record_route();<BR> }<BR> route(1);<BR> }<BR> # authentication<BR> route(3);<BR> # record routing<BR> if (!is_method("REGISTER|MESSAGE"))<BR> record_route();<BR> # account only INVITEs<BR> if (is_method("INVITE")) {<BR> setflag(1); # do accounting<BR> }<BR> if( is_method("PUBLISH|SUBSCRIBE"))<BR> route(2);<BR> if (is_method("REGISTER"))<BR> {<BR> if (!save("location"))<BR> sl_reply_error();<BR><BR> exit;<BR> }<BR> if ($rU==NULL) {<BR> # request with no Username in RURI<BR> sl_send_reply("484","Address Incomplete");<BR> exit;<BR> }<BR> if (!lookup("location")) {<BR> switch ($retcode) {<BR> case -1:<BR> case -3:<BR> t_newtran();<BR> t_reply("404", "Not Found");<BR> exit;<BR> case -2:<BR> sl_send_reply("405", "Method Not Allowed");<BR> exit;<BR> }<BR> }<BR> # when routing via usrloc, log the missed calls also<BR> setflag(2);<BR> route(1);<BR>}<BR>route[1] {<BR> if (check_route_param("nat=yes")) {<BR> setbflag(6);<BR> }<BR> if (isflagset(5) || isbflagset(6)) {<BR> route(5);<BR> }<BR> /* example how to enable some additional event routes */<BR> if (is_method("INVITE"))<BR> {<BR> #t_on_branch("1");<BR> t_on_reply("1");<BR> t_on_failure("1");<BR> }<BR> if (!t_relay()) {<BR> sl_reply_error();<BR> }<BR> exit;<BR>}<BR># Presence route<BR>/* uncomment the whole following route for enabling presence server */<BR>route[2]<BR>{<BR> if (!t_newtran())<BR> {<BR> sl_reply_error();<BR> exit;<BR> };<BR><BR> if(is_method("PUBLISH"))<BR> {<BR> handle_publish();<BR> t_release();<BR> }<BR> else<BR> if( is_method("SUBSCRIBE"))<BR> {<BR> handle_subscribe();<BR> t_release();<BR> }<BR> exit;<BR> <BR> # if presence enabled, this part will not be executed<BR> if (is_method("PUBLISH") || $rU==null)<BR> {<BR> sl_send_reply("404", "Not here");<BR> exit;<BR> }<BR> return;<BR>}<BR><BR># Authentication route<BR>/* uncomment the whole following route for enabling authentication */<BR>route[3] {<BR> if (is_method("REGISTER"))<BR> {<BR> # authenticate the REGISTER requests (uncomment to enable auth)<BR> /*if (!www_authorize("", "subscriber"))<BR> {<BR> www_challenge("", "0");<BR> exit;<BR> }<BR> if ($au!=$tU)<BR> {<BR> sl_send_reply("403","Forbidden auth ID");<BR> exit;<BR> }*/<BR> } else {<BR> # authenticate if from local subscriber (uncomment to enable auth)<BR> /*if (from_uri==myself)<BR> {<BR> if (!proxy_authorize("", "subscriber")) {<BR> proxy_challenge("", "0");<BR> exit;<BR> }<BR> if (is_method("PUBLISH"))<BR> {<BR> if ($au!=$tU) {<BR> sl_send_reply("403","Forbidden auth ID");<BR> exit;<BR> }<BR> } else {<BR> if ($au!=$fU) {<BR> sl_send_reply("403","Forbidden auth ID");<BR> exit;<BR> }<BR> }<BR><BR> consume_credentials();<BR> # caller authenticated<BR> }*/<BR> }<BR> return;<BR>}<BR># Caller NAT detection route<BR>/* uncomment the whole following route for enabling Caller NAT Detection */<BR>route[4]{<BR> force_rport();<BR> if (nat_uac_test("19")) {<BR> if (method=="REGISTER") {<BR> fix_nated_register();<BR> } else {<BR> fix_nated_contact();<BR> }<BR> setflag(5);<BR> }<BR> return;<BR>}<BR><BR># RTPProxy control<BR>/* uncomment the whole following route for enabling RTPProxy Control */<BR>route[5] {<BR> if (is_method("BYE")) {<BR> unforce_rtp_proxy();<BR> } else if (is_method("INVITE")){<BR> force_rtp_proxy();<BR> }<BR> if (!has_totag()) add_rr_param(";nat=yes");<BR> return;<BR>}<BR><BR>branch_route[1] {<BR> xdbg("new branch at $ru\n");<BR>}<BR>onreply_route[1] {<BR> xdbg("incoming reply\n");<BR> if ((isflagset(5) || isbflagset(6)) && status=~"(183)|(2[0-9][0-9])") {<BR> force_rtp_proxy();<BR> }<BR> if (isbflagset(6)) {<BR> fix_nated_contact();<BR> }<BR>}<BR>failure_route[1] {<BR> if (is_method("INVITE") && (isbflagset(6) || isflagset(5)))<BR> {<BR> unforce_rtp_proxy();<BR> }<BR> if (t_was_cancelled())<BR> {<BR> exit;<BR> }<BR> if (t_check_status("486|408")) {<BR> sethostport("26.28.249.125:5060");<BR> append_branch();<BR> # do not set the missed call flag again<BR> t_relay();<BR> }<BR>}<BR></DIV>
<DIV></DIV><BR><PRE>在2009-09-25,"Daniel-Constantin Mierla" <<A href="mailto:miconda@gmail.com">miconda@gmail.com</A>> 写道:
>Hello,
>
>do keep mailing list CC-ed for every mail, otherwise I will stop replying.
>
>On 25.09.2009 3:33 Uhr, zhangchao00001 wrote:
>> Dear sir:
>> thank you for your reply.
>> The Kamailio -V result :
>> version: kamailio 1.5.2-notls (i386/linux)
>> flags: STATISTICS, USE_IPV6, USE_TCP, DISABLE_NAGLE, USE_MCAST,
>> SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
>> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
>> MAX_URI_SIZE 1024, BUF_SIZE 65535, PKG_SIZE 4194304
>> poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
>> svnrevision: unknown
>> @(#) $Id: main.c 5608 2009-02-13 16:48:17Z henningw $
>> main.c compiled on 10:23:04 Sep 23 2009 with gcc 4.3.0
>> when there's no user, it reports no error, when a UAC register, it
>> reports the error below:
>> Sep 25 09:24:21 [3323] ERROR:core:build_req_buf_from_sip_req: out of
>> pkg memory
>> Sep 25 09:24:21 [3323] ERROR:tm:print_uac_request: no more shm_mem
>> Sep 25 09:24:21 [3323] ERROR:tm:t_forward_nonack: failure to add branches
>> Sep 25 09:24:21 [3323] ERROR:tm:_reply_light: failed to allocate shmem
>> buffer
>> Sep 25 09:24:21 [3323] ERROR:tm:relay_reply: no more share memory
>> what should i do to fix it?
>does it happen after startup, during processing of SIP message? Is a
>stress test? What is the list of loaded modules? If you can share the
>config, would be good.
>
>Daniel
>
>--
>Daniel-Constantin Mierla
>* Kamailio SIP Masterclass, Nov 9-13, 2009, Berlin
>* http://www.asipto.com/index.php/sip-router-masterclass/
>
</PRE><BR><BR><SPAN title="neteasefooter">
<HR>
<A href="http://fanxian.163.com/fanxian/?keyfrom=163mail.footer">网易邮箱用户购物独享现金返还</A></SPAN><BR><BR><SPAN title="neteasefooter">
<HR>
<A href="http://fanxian.163.com/fanxian/?keyfrom=163mail.footer">网易邮箱用户购物独享现金返还</A></SPAN><BR><BR><SPAN title="neteasefooter">
<HR>
<A href="http://fanxian.163.com/fanxian/?keyfrom=163mail.footer">网易邮箱用户购物独享现金返还</A></SPAN><BR><BR><SPAN title="neteasefooter">
<HR>
<A href="http://news.163.com/madeinchina/index.html?from=mailfooter">"中国制造",讲述中国60年往事</A> </SPAN><BR><BR><SPAN title="neteasefooter">
<HR>
<A href="http://news.163.com/madeinchina/index.html?from=mailfooter">"中国制造",讲述中国60年往事</A> </SPAN><br><br><span title="neteasefooter"/><hr/>
<a href="http://news.163.com/madeinchina/index.html?from=mailfooter">"中国制造",讲述中国60年往事</a>
</span>