- fixed overflow in parsing the content len value
  Reported by franklyfox on GITHUB
  Closing issue #78
- fixed double free when building insert fails (in buffered insert mode)
  Reported by Brett Nemeroff
The latest Linux distros from OpenSUSE, Fedora, and other non-Debian based distros no longer add symlinks for libcurses.so -> libncurses.so. Trying to compile menuconfig with -lcurses will not work on these distros, so I changed -lcurses to -lncurses, since -lncurses will work on any modern Linux distro with the ncurses5 libraries installed.

See http://stackoverflow.com/questions/1517756/whats-the-difference-between-lcurses-and-lncurses-when-compiling-c-using-ncur for more info.
Fix invalid pointer when fetching the usrloc extra info column
Fix missing GPL headers in event_xmlrpc module
Fix some documentation typos
enable rabbitmq heartbeat to solve processes hang by amqp socket
"registered" must also populate the 'attr' avp, if defined
- doc examples fixed
  Reported by "miha" on IRC
Merge branch 'master' of github.com:OpenSIPS/opensips
Fix unpatched assignment in commit b33d4b3f
Properly load contact flags even when NAT pinging is disabled
Fixed menuconfig errors when selecting mi_xmlrpc vs mi_xmlrpc_ng
Fixed the un-initialized "reason" string when certain headers are missing
Fixed reported "invalid" code on maxforrward missing (closes Issue #95)
Merge branch 'master' of github.com:OpenSIPS/opensips
handle the signals while waiting for the startup route to end (if not, the main proc will never know if the child running startup route crashed and it will hang for ever during startup)
In DELAYED mode, flush vars & profile to DB at ACK time too - no timer tick between 200 OK and ACK was droping the update operation to DB.
Please note that this "bug" had actually no implications, as dialog data is either used from memory cache, either from DB after a restart (and a shutdown flushes everything to DB).
Related to issue #97.
Fixed is_mod_func_used() (used from is_script_func_used()) to determin if a function is used from script - we need to follow the IF / WHILE / MODULE set of instructions too.
Reported by Mayama Takeshi - many thanks for the detailed report on this.
Closes issue #98
enable rabbitmq heartbeat to solve issues of hanging SIP processing because of a broken amqp socket

This implementation enabled the rabbitmq's client side's heartbeat negotiation.

Issue:
Because of TCP's nature, it takes very long time for a TCP peer to make the decision of closing a local socket when the connection actually is broken. The event_rabbitmq module didn't handle the situation which causes the Opensips1.9 stop processing UDP packets until the O.S decides to close the local socket. One of the consequence is that UAC cannot register to the registrar during this time period.

Issue Reproduce:
1. Block an existing amqp connection from the rabbitmq-server that event_rabbitmq module connects to.
2. From the event_rabbitmq side, the UDP receive-buffer that Opensips uses should be full.

Solution:
If the module, even_rabbitmq/rabbitmq-client, doesn't get a heartbeat message from the rabbitmq-server within X seconds, the rabbitmq-client will kill the local socket connection actively.

Added a modparam:

modparam("event_rabbitmq", "heartbeat", [X seconds]
Fix duplicated code in db_virtual