X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@lists.alpinelinux.org Received: from sp4.qcslink.com (sp4.qcslink.com [200.35.147.4]) by lists.alpinelinux.org (Postfix) with ESMTP id 170AA3617A29 for ; Thu, 24 Jun 2010 01:54:28 +0000 (UTC) Received: from sp4.qcslink.com (localhost.localdomain [127.0.0.1]) by sp4.qcslink.com (Postfix) with ESMTP id 6A53D1A64A; Wed, 23 Jun 2010 21:54:27 -0400 (EDT) Received: from [10.252.6.46] (c-71-198-150-62.hsd1.ca.comcast.net [71.198.150.62]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: nangel@nothome.org) by sp4.qcslink.com (Postfix) with ESMTPSA id D356B1A62B; Wed, 23 Jun 2010 21:54:26 -0400 (EDT) Message-ID: <4C22BB08.9020009@nothome.org> Date: Wed, 23 Jun 2010 18:55:20 -0700 From: Nathan Angelacos User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100515 Icedove/3.0.4 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 To: Alpine-devel , Natanael Copa Subject: [alpine-devel] kamilio 3.0.x config for Alpine 2.0 Content-Type: multipart/mixed; boundary="------------060709060101080707020506" X-Virus-Scanned: ClamAV using ClamSMTP This is a multi-part message in MIME format. --------------060709060101080707020506 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Attached is a sample kamailio.cfg that works with 3.0.x Recommend bumping kamailio 3 from testing to main for Alpine Linux 2.0 --------------060709060101080707020506 Content-Type: text/plain; name="kamailio.cfg" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="kamailio.cfg" # Sample Kamailio Configuration # 23 June 2010 - For Alpine Linux # Accepts all registrations; routes calls to any registered AOR #-------------------------------------------------------- # Section 1: Global Definitions #-------------------------------------------------------- debug = 2 fork = yes log_stderror = no # listen = 0.0.0.0 port = 5060 children = 4 dns = no rev_dns = no mpath = "/usr/lib/kamailio/modules_k/:/usr/lib/kamailio/modules/" #-------------------------------------------------------- # Section 2: Modules #-------------------------------------------------------- loadmodule "tm.so" loadmodule "sl.so" loadmodule "tmx.so" loadmodule "rr.so" loadmodule "maxfwd.so" loadmodule "usrloc.so" loadmodule "registrar.so" loadmodule "mi_fifo.so" loadmodule "pv.so" loadmodule "xlog.so" #-------------------------------------------------------- # Section 3: Module Configuration #-------------------------------------------------------- modparam ( "usrloc", "db_mode", 0 ) modparam ( "rr", "enable_full_lr", 1 ) modparam ( "mi_fifo", "fifo_name", "/tmp/kamailio_fifo") #-------------------------------------------------------- # Section 4: Main Route Block #-------------------------------------------------------- route { # Uncomment next line if you want to see # each incoming message xlog( "L_INFO", "$rm: $fu -> $ru" ); if (!mf_process_maxfwd_header("10")) { sl_send_reply("483", "Too Many Hops"); return; } if (msg:len > 4096) { sl_send_reply("513", "Message too big" ); return; } if (method == "REGISTER" ) { route(REGISTER); return; } loose_route(); if (!lookup("location")) { sl_send_reply("404", "User Not Found"); return; } route(RELAY); } #-------------------------------------------------------- # Section 5: Secondary Route Blocks #-------------------------------------------------------- # - Default message handler route[RELAY] { if (!t_relay()) { sl_reply_error(); } } #- Registration Request route[REGISTER] { if (!save("location")) { sl_reply_error(); } } #-------------------------------------------------------- # Section 6: Reply Route Block #-------------------------------------------------------- #-------------------------------------------------------- # Section 7: Failure Route Block #-------------------------------------------------------- --------------060709060101080707020506-- --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---