Friends,
The attached patch implements parallel building of the debian packages using
the -j parameter to make.
Predictably this gives package building a serious speed boost on an 8 way
xeon with solid state drives :)
To make things even simpler, I've pushed a branch debian-packaging to git://
git.resare.com/kamailio that you can pull from and merge with master using
the following commands:
git remote add resare git://git.resare.com/kamailio
git fetch resare
<check out the resare/debian-packaging branch, inspect>
<merge it into master>
A note on the patch:
- I've replaced the DEB_BUILD_OPTIONS:="$(DEB_BUILD_OPTIONS) nostrip" (which
puts literal quote characters in the make variable with a construct using
the += operator.
-It passes the basic test of building packages without failing with the
DEB_BUILD_OPTIONS environment variable set to parallel=8 as well as unset on
squeeze and lenny.
/noa
--
Everything is secret.
Hello
I'd like to do some tests with the dialplan module, but Kamailio is crashing
when it loads it. Actually the module is properly loaded if the table is
empty, but it fails when a row is added; so I guess it's related with the
way I've inserted the values. A core file is generated:
Core was generated by `./kamailio -f ../etc/kamailio/kamailio.cfg'.
Program terminated with signal 11, Segmentation fault.
#0 build_rule (values=0x0) at dp_db.c:439
439 new_rule->dpid = VAL_INT(values);
This is the relevant config:
#----- dialplan params ---
modparam("dialplan", "db_url", "mysql://xxxx:yyyyy@localhost/db")
modparam("dialplan", "table_name", "dialplan")
modparam("dialplan", "dpid_col", "dpid")
modparam("dialplan", "attrs_pvar", "$avp(s:dp_attrs)")
mysql> describe dialplan;
+-----------+------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-----------+------------------+------+-----+---------+----------------+
| id | int(10) unsigned | NO | PRI | NULL | auto_increment |
| dpid | int(11) | NO | | NULL | |
| pr | int(11) | NO | | NULL | |
| match_op | int(11) | NO | | NULL | |
| match_exp | varchar(64) | NO | | NULL | |
| match_len | int(11) | NO | | NULL | |
| subst_exp | varchar(64) | NO | | NULL | |
| repl_exp | varchar(32) | NO | | NULL | |
| attrs | varchar(32) | NO | | NULL | |
+-----------+------------------+------+-----+---------+----------------+
9 rows in set (0.00 sec)
mysql> select * from dialplan;
+----+------+----+----------+-----------+-----------+-----------+----------+-------+
| id | dpid | pr | match_op | match_exp | match_len | subst_exp | repl_exp |
attrs |
+----+------+----+----------+-----------+-----------+-----------+----------+-------+
| 1 | 1 | 1 | 1 | ^00 | 0 | ^00 | 011 |
dp1 |
+----+------+----+----------+-----------+-----------+-----------+----------+-------+
1 row in set (0.00 sec)
I'm probably making some stupid mistake...any clue?
Thanks in advance
Javier
Greetings,
I have not tried in 3.0+, but in Kamailio 1.5.x, the documentation says
that the MI FIFO command 'dlg_end_dlg' will only terminate confirmed
dialogs.
That's fair. However, I am concerned about what it does with
unconfirmed dialogs (e.g. early dialogs). When I run 'kamctl fifo
dlg_end_dlg SOME_HASH_ENTRY SOME_HASH_ID' it returns a positive value as
if the dialog were deleted, but it is not actually deleted. It
continues to show up in 'kamctl fifo profile_list_dlgs SOME_PROFILE
SOME_VALUE', and continues to be linked to the profile, which is a
problem if profiles are being used to enforce concurrent channel limits.
Subsequent invocations of 'kamctl fifo dlg_end_dlg SOME_HASH_ENTRY
SOME_HASH_ID' return: 404 Requested dialog not found.
Is this a bug? A feature? What should one do with these permanent
suspended dialogs other than to restart the proxy?
Thanks,
--
Alex Balashov - Principal
Evariste Systems LLC
260 Peachtree Street NW
Suite 2200
Atlanta, GA 30303
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web: http://www.evaristesys.com/
Looking back to 2010, it was an amazing year - two major releases v3.0.x
and v3.1.0, lot of new features, all in top of a better and more
scalable core we have now after the integration of Kamailio with SER.
Just to mention few here: asynchronous TCP and TLS, embedded Lua, XCAP
server, HTTP server, pre-processor directives, full SCTP implementation
with multi-homing, geoip API, asynchronous message queues, over 20 new
modules -- for sake of completion, here are the links with the
announcements:
http://www.kamailio.org/w/kamailio-openser-v3.0.0-release-notes/http://www.kamailio.org/w/kamailio-openser-v3.1.0-release-notes/
As for 2011, we will continue to deliver new features, but maintain as
well our line of scalable, secure and rock solid SIP server. New
projects related to Kamailio already announced their launch,
participation to VoIP and Open Source events already booked, new thinks
are baked and getting ready to launch soon -- 2011 is going to be for
sure fascinating as well as challenging.
Thanks for your support for the project! I wish you a great 2011 in
personal life and business, enjoy tonight party!
Happy New Year!
Daniel
--
Daniel-Constantin Mierla
Kamailio (OpenSER) Advanced Training
Jan 24-26, 2011, Irvine, CA, USA
http://www.asipto.com
Hello Friends,
I thought I'd set up a SIP server during the holidays and kamailio seemed
like a good choice. Since my setup won't be handling large amounts of users,
a file based backend seemed like a good choice. Since I didn't find any "new
users, please start with these steps" instruction on the web page I just
installed the base package for Debian squeeze along with
kamailio-berkeley-modules and proceded to try to configure the database.
I set DBENGINE=DB_BERKELEY in /etc/kamailio/kamctlrc and ran 'kamdbctl
create', which fails with this message:
root@uma:/home/noa# kamdbctl create
db4.6_load: /usr/share/kamailio//db_berkeley/kamailio/lcr_gw: reopen: No
such file or directory
ERROR: Creating standard tables failed!
I tried DBENGINE=DBTEXT, and the command failed similarly:
INFO: creating DBTEXT tables at: /usr/local/etc/kamailio/dbtext ...
cp: cannot stat `/usr/share/kamailio//dbtext/kamailio/lcr_gw': No such file
or directory
ERROR: Creating core tables failed!
Based on this I have a few questions:
1) Is there a text somewhere outlining the recommended steps to get a basic
server going using the .deb packages?
2) What is the recommended backend for the least amount of install time
trouble?
3) Is the issue I got into above a known problem? Is there a fix available?
I asked my friend google, but she didn't seem to have an easily findable
solution.
/noa
--
Everything is secret.
Hello everyone
is there a possibility to check working dialplan rules in kamailio (ver
1.4) with the command kamctl fifo dp_translate ? "fifo which" shows that
there is such command but I can't figure out how to use it. some rules are
not working and I want to check if kamailio loads everything from dialplan
table correctly. Mainly I use fifo commands to reload dialplan and
dispatcher so fifo is configured right I suppose.
I'm getting following config error when i use the api from group module.
CSBC-JJ:/srv/www/htdocs/core # /usr/sbin/kamailio -c -f
/etc/kamailio/kamailio.cfg
loading modules under
/usr/lib/kamailio/modules_k/:/usr/lib/kamailio/modules/
0(5020) : <core> [cfg.y:3412]: parse error in config file
/etc/kamailio/kamailio.cfg, line 455, column 20-36: function get_user_group:
parameter 1 is not constant
0(5020) : <core> [cfg.y:3415]: parse error in config file
/etc/kamailio/kamailio.cfg, line 455, column 48: bad command
0(5020) INFO: pv [pv_shv.c:61]: locks array size 16
ERROR: bad config file (2 errors)
I have used the API get_user_group as shown below
$avp(r_contact)=$ru;
$avp(temp)=$null;
get_user_group($avp(reg_contact),$avp(temp));
xlog("L_ERR", "request - M=$rm get_user_group=$avp(temp)\n\n");
Please let me know what could be reason for this error.
Thanks
Jijo
I wanted to see how the sipce works and how it looks like , as Andreas
suggested me to. But when i try to start the virtual machine i get the
following error :
This kernel requires an x86-64 CPU, but only detected an i686 CPU.
Unable to boot - please use a kernel appropriate for your CPU
I tried with both vmware and vbox image. I am trying to run the image on
vmware infrastrcture running on dell dual xeon cpu.
--
Thank You
Amit Nepal
Systems Administrator
Phoenix Internet
Phone: 602-385-0731
602-234-0917#112
http://www.phoenixinternet.net
Apparently the process of the installation did not setup even a default
sip.conf file, and there were some other issues with the Kamailio.cfg file.
Most of the issues were resolved by one of the other users in the group, and
we were able to get the system running.
Thanks everyone for your assistance.
-----Original Message-----
From: sr-users-bounces(a)lists.sip-router.org
[mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of
sr-users-request(a)lists.sip-router.org
Sent: Wednesday, December 29, 2010 11:49 AM
To: sr-users(a)lists.sip-router.org
Subject: sr-users Digest, Vol 67, Issue 75
Send sr-users mailing list submissions to
sr-users(a)lists.sip-router.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
or, via email, send a message with subject or body 'help' to
sr-users-request(a)lists.sip-router.org
You can reach the person managing the list at
sr-users-owner(a)lists.sip-router.org
When replying, please edit your Subject line so it is more specific than
"Re: Contents of sr-users digest..."
Today's Topics:
1. Re: Kamailio 3.1.x and Asterisk 1.6.2 Realtime Integration
using Asterisk Database (Klaus Darilion)
2. Load Balancing (Tim King)
3. Re: Load Balancing (Alex Balashov)
4. fifo dp_translate (Borin)
5. Re: some issues with database initialization (berkeley/txt)
(Noa Resare)
6. Re: some issues with database initialization (berkeley/txt)
(Daniel-Constantin Mierla)
----------------------------------------------------------------------
Message: 1
Date: Wed, 29 Dec 2010 15:17:41 +0100
From: Klaus Darilion <klaus.mailinglists(a)pernau.at>
Subject: Re: [SR-Users] Kamailio 3.1.x and Asterisk 1.6.2 Realtime
Integration using Asterisk Database
To: sr-users(a)lists.sip-router.org
Message-ID: <4D1B4305.30504(a)pernau.at>
Content-Type: text/plain; charset=windows-1252; format=flowed
On 28.12.2010 22:07, Kurt Mullen wrote:
> I am on my 20^th (I?m not kidding) attempt to successfully complete
> this tutorial.
>
> I have installed on Ubuntu 10.10 x64 Server. I installed Kamailio &
> Asterisk on the same server as in the tutorial.
>
> I have two SIP clients registered, but they are not able to call each
other.
>
> No one answered my last two posts, so I hope someone can help this time.
If you can describe the problem (why can't they call each other) we can help
you.
So, first you have to find out what is the problem. Use a packet sniffer
(wireshark, ngrep) to capture the SIP traffic and analyze it (yes, if you
want to use Kamailio you have to know at least the basics of SIP) for the
problems.
regards
klaus
------------------------------
Message: 2
Date: Wed, 29 Dec 2010 09:31:28 -0500
From: Tim King <tim(a)compnetwork.net>
Subject: [SR-Users] Load Balancing
To: sr-users(a)lists.sip-router.org
Message-ID:
<AANLkTindx_r-RmTJSjTnpfdmLX8Nespzs_M9O0f6y385(a)mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
I have read many examples and it seems I have found several pieces of how to
do this but no real example of how to achieve this.
I followed this setup guide:
http://kb.asipto.com/freeswitch:kamailio-3.1.x-freeswitch-1.0.6d-sbc
Performed this Kamailio install:
http://www.kamailio.org/dokuwiki/doku.php/install:kamailio-3.1.x-from-git
I have found the page for the dispatcher module here:
http://kamailio.org/docs/modules/3.1.x/modules_k/dispatcher.html
I also am curious if this dispatcher setup can be driven solely from the
dispatcher mysql table or if the dispatcher.list file is required.
Can someone point me towards the proper documentation that truly show how to
configure these features.
*SIP Routing Capabilities*
-
- NAT traversal support for SIP and RTP traffic
- load balancing with many distribution algorithms and failover
support
- flexible least cost routing
- routing failover
- replication for High Availability (HA)
* Load Based Load Balancing
** -------------------------
**
** +----------+
** | Kamailio |
** +----------+
** |
** | +--------------+
** |-------| FreeSWITCH 1 | [Calls 1,3,7]
** | +--------------+
** |
** | +--------------+
** |-------| FreeSWITCH 2 | [Calls 2,6]
** +--------------+
*
I have read many examples and it seems I have found several pieces of how to
do this but no real example of how to achieve this.
I followed this setup guide:
http://kb.asipto.com/freeswitch:kamailio-3.1.x-freeswitch-1.0.6d-sbc
Performed this Kamailio install:
http://www.kamailio.org/dokuwiki/doku.php/install:kamailio-3.1.x-from-git
I have found the page for the dispatcher module here:
http://kamailio.org/docs/modules/3.1.x/modules_k/dispatcher.html
I also am curious if this dispatcher setup can be driven solely from the
dispatcher mysql table or if the dispatcher.list file is required.
Can someone point me towards the proper documentation that truly show how to
configure these features.
*SIP Routing Capabilities*
-
- NAT traversal support for SIP and RTP traffic
- load balancing with many distribution algorithms and failover
support
- flexible least cost routing
- routing failover
- replication for High Availability (HA)
* Load Based Load Balancing
** -------------------------
**
** +----------+
** | Kamailio |
** +----------+
** |
** | +--------------+
** |-------| FreeSWITCH 1 | [Calls 1,3,7]
** | +--------------+
** |
** | +--------------+
** |-------| FreeSWITCH 2 | [Calls 2,6]
** +--------------+
*