<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&nbsp;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,&nbsp;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",&nbsp; "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",&nbsp;&nbsp; 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",&nbsp;&nbsp;&nbsp; "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)&nbsp;<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>&nbsp;&nbsp;&nbsp; if (!mf_process_maxfwd_header("10")) {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_send_reply("483","Too Many Hops");<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(msg:len&gt;=2048)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_send_reply("513","Message too big");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; route(4);<BR>&nbsp;&nbsp;&nbsp; if (has_totag()) {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (loose_route()) {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (is_method("BYE")) {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; setflag(1); # do accounting ...<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; setflag(3); # ... even if the transaction fails<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; route(1);<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; } else {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (is_method("SUBSCRIBE") &amp;&amp; uri == myself) {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; # in-dialog subscribe requests<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; route(2);<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if ( is_method("ACK") ) {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if ( t_check_trans() ) {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; # non loose-route, but stateful ACK; must be an ACK after a 487 or e.g. 404 from upstream server<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; t_relay();<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; } else {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; # ACK without matching transaction ... ignore and discard.\n");<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_send_reply("404","Not here");<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; if (is_method("CANCEL"))<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (t_check_trans())<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; t_relay();<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; t_check_trans();<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(!uri==myself)<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; append_hf("P-hint: outbound\r\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(is_method("REGISTER|MESSAGE"))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(is_method("REGISTER"))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(!add_path_received())<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_send_reply("503","Internal Path Error!");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; record_route();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; route(1);<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; # authentication<BR>&nbsp;&nbsp;&nbsp; route(3);<BR>&nbsp;&nbsp;&nbsp; # record routing<BR>&nbsp;&nbsp;&nbsp; if (!is_method("REGISTER|MESSAGE"))<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; record_route();<BR>&nbsp;&nbsp;&nbsp; # account only INVITEs<BR>&nbsp;&nbsp;&nbsp; if (is_method("INVITE")) {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; setflag(1); # do accounting<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; if( is_method("PUBLISH|SUBSCRIBE"))<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; route(2);<BR>&nbsp;&nbsp;&nbsp; if (is_method("REGISTER"))<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (!save("location"))<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_reply_error();<BR><BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; if ($rU==NULL) {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; # request with no Username in RURI<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_send_reply("484","Address Incomplete");<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; if (!lookup("location")) {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; switch ($retcode) {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; case -1:<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; case -3:<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; t_newtran();<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; t_reply("404", "Not Found");<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; case -2:<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_send_reply("405", "Method Not Allowed");<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; # when routing via usrloc, log the missed calls also<BR>&nbsp;&nbsp;&nbsp; setflag(2);<BR>&nbsp;&nbsp;&nbsp; route(1);<BR>}<BR>route[1] {<BR>&nbsp;&nbsp;&nbsp; if (check_route_param("nat=yes")) {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; setbflag(6);<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; if (isflagset(5) || isbflagset(6)) {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; route(5);<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; /* example how to enable some additional event routes */<BR>&nbsp;&nbsp;&nbsp; if (is_method("INVITE"))<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; #t_on_branch("1");<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; t_on_reply("1");<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; t_on_failure("1");<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; if (!t_relay()) {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_reply_error();<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; exit;<BR>}<BR># Presence route<BR>/* uncomment the whole following route for enabling presence server */<BR>route[2]<BR>{<BR>&nbsp;&nbsp;&nbsp; if (!t_newtran())<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_reply_error();<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<BR>&nbsp;&nbsp;&nbsp; };<BR><BR>&nbsp;&nbsp;&nbsp; if(is_method("PUBLISH"))<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; handle_publish();<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; t_release();<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; else<BR>&nbsp;&nbsp;&nbsp; if( is_method("SUBSCRIBE"))<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; handle_subscribe();<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; t_release();<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; exit;<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp; # if presence enabled, this part will not be executed<BR>&nbsp;&nbsp;&nbsp; if (is_method("PUBLISH") || $rU==null)<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_send_reply("404", "Not here");<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; return;<BR>}<BR><BR># Authentication route<BR>/* uncomment the whole following route for enabling authentication */<BR>route[3] {<BR>&nbsp;&nbsp;&nbsp; if (is_method("REGISTER"))<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; # authenticate the REGISTER requests (uncomment to enable auth)<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; /*if (!www_authorize("", "subscriber"))<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; www_challenge("", "0");<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if ($au!=$tU)<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_send_reply("403","Forbidden auth ID");<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }*/<BR>&nbsp;&nbsp;&nbsp; } else {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; # authenticate if from local subscriber (uncomment to enable auth)<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; /*if (from_uri==myself)<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (!proxy_authorize("", "subscriber")) {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; proxy_challenge("", "0");<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (is_method("PUBLISH"))<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if ($au!=$tU) {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_send_reply("403","Forbidden auth ID");<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; } else {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if ($au!=$fU) {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_send_reply("403","Forbidden auth ID");<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<BR><BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; consume_credentials();<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; # caller authenticated<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }*/<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; return;<BR>}<BR># Caller NAT detection route<BR>/* uncomment the whole following route for enabling Caller NAT Detection */<BR>route[4]{<BR>&nbsp;&nbsp;&nbsp; force_rport();<BR>&nbsp;&nbsp;&nbsp; if (nat_uac_test("19")) {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (method=="REGISTER") {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; fix_nated_register();<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; } else {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; fix_nated_contact();<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; setflag(5);<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; return;<BR>}<BR><BR># RTPProxy control<BR>/* uncomment the whole following route for enabling RTPProxy Control */<BR>route[5] {<BR>&nbsp;&nbsp;&nbsp; if (is_method("BYE")) {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; unforce_rtp_proxy();<BR>&nbsp;&nbsp;&nbsp; } else if (is_method("INVITE")){<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; force_rtp_proxy();<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; if (!has_totag()) add_rr_param(";nat=yes");<BR>&nbsp;&nbsp;&nbsp; return;<BR>}<BR><BR>branch_route[1] {<BR>&nbsp;&nbsp;&nbsp; xdbg("new branch at $ru\n");<BR>}<BR>onreply_route[1] {<BR>&nbsp;&nbsp;&nbsp; xdbg("incoming reply\n");<BR>&nbsp;&nbsp;&nbsp; if ((isflagset(5) || isbflagset(6)) &amp;&amp; status=~"(183)|(2[0-9][0-9])") {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; force_rtp_proxy();<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; if (isbflagset(6)) {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; fix_nated_contact();<BR>&nbsp;&nbsp;&nbsp; }<BR>}<BR>failure_route[1] {<BR>&nbsp;&nbsp;&nbsp; if (is_method("INVITE") &amp;&amp; (isbflagset(6) || isflagset(5)))<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; unforce_rtp_proxy();<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; if (t_was_cancelled())<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; if (t_check_status("486|408")) {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sethostport("26.28.249.125:5060");<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; append_branch();<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; # do not set the missed call flag again<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; t_relay();<BR>&nbsp;&nbsp;&nbsp; }<BR>}<BR></DIV>
<DIV></DIV><BR><PRE>在2009-09-25,"Daniel-Constantin Mierla" &lt;<A href="mailto:miconda@gmail.com">miconda@gmail.com</A>&gt; 写道:
&gt;Hello,
&gt;
&gt;do keep mailing list CC-ed for every mail, otherwise I will stop replying.
&gt;
&gt;On 25.09.2009 3:33 Uhr, zhangchao00001 wrote:
&gt;&gt; Dear sir:
&gt;&gt; thank you for your reply.
&gt;&gt; The Kamailio -V result :
&gt;&gt; version: kamailio 1.5.2-notls (i386/linux)
&gt;&gt; flags: STATISTICS, USE_IPV6, USE_TCP, DISABLE_NAGLE, USE_MCAST, 
&gt;&gt; SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
&gt;&gt; ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, 
&gt;&gt; MAX_URI_SIZE 1024, BUF_SIZE 65535, PKG_SIZE 4194304
&gt;&gt; poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
&gt;&gt; svnrevision: unknown
&gt;&gt; @(#) $Id: main.c 5608 2009-02-13 16:48:17Z henningw $
&gt;&gt; main.c compiled on 10:23:04 Sep 23 2009 with gcc 4.3.0
&gt;&gt; when there's no user, it reports no error, when a UAC register, it 
&gt;&gt; reports the error below:
&gt;&gt; Sep 25 09:24:21 [3323] ERROR:core:build_req_buf_from_sip_req: out of 
&gt;&gt; pkg memory
&gt;&gt; Sep 25 09:24:21 [3323] ERROR:tm:print_uac_request: no more shm_mem
&gt;&gt; Sep 25 09:24:21 [3323] ERROR:tm:t_forward_nonack: failure to add branches
&gt;&gt; Sep 25 09:24:21 [3323] ERROR:tm:_reply_light: failed to allocate shmem 
&gt;&gt; buffer
&gt;&gt; Sep 25 09:24:21 [3323] ERROR:tm:relay_reply: no more share memory
&gt;&gt; what should i do to fix it?
&gt;does it happen after startup, during processing of SIP message? Is a 
&gt;stress test? What is the list of loaded modules? If you can share the 
&gt;config, would be good.
&gt;
&gt;Daniel
&gt;
&gt;-- 
&gt;Daniel-Constantin Mierla
&gt;* Kamailio SIP Masterclass, Nov 9-13, 2009, Berlin
&gt;* http://www.asipto.com/index.php/sip-router-masterclass/
&gt;
</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>