Fixed the connection handling - some modules would want to run cachedb type ops in the mod init
Fixed the DB schema & increased version - the keyname must be a primary key for the counter ops to properly work
(cherry picked from commit f1fec17d012a54790ce9be47d20cd52daf5a1cbe)
When fetching a counter, do not accidentally create it in case it does not exist
(cherry picked from commit 47cd18c007ee24c3a2c2bdf853fdcbb5790a9e95)
When fetching a counter, do not accidentally create it in case it does not exist
(cherry picked from commit 67023e99bad1d0569db53853d935abc480c72c19)
Merge pull request #221 from nikbyte/master

Fix some PgSQL schema issues
Postgres schema regenerated.
db_unixodbc: deallocate the results only after they are processed

	* closes bug #622 on the SF tracker
(cherry picked from commit d63ee19a8961b6019eda067c0b439f09d8126901)
Fixed bogus test on memory allocation.

(cherry picked from commit d9fe58e721a0e4c53841e91ba766df7bbce2cae5)
Fixed examples in docs (uac versus uac_auth)

(cherry picked from commit e1641a4dc82686f2f12051ed22000e54a4b8d846)
db_text: properly initialize memory when caching tables
(cherry picked from commit 204d08bb18110599317324fefbd64ecc77e6784f)
httpd: fix a couple of size_t printing warnings
(cherry picked from commit 575c0db9193dbf6a11117d0bdf6e796b78f03a2c)
scripts: fix gdb detection for opensipsctl
(cherry picked from commit 92131a48b6bd7768038b0f1d138fa461163652fa)
Fix passing the auth AVPs from server to client.

Fixes #134, testing still required.

(cherry picked from commit 4ccebfe0ddda37b833cb7cabbe691fbf5f31402d)
lump processing: correct the handling of DEL lumps with identical offsets

	* for this corner case, only add the _delta_ lengths instead
(cherry picked from commit f9d9654e6df6c801f19f774e3960a8d6f806a1ca)
lumps processing: a couple of performance optimizations

Since we can only have LUMP_DEL or LUMP_NOP along the main lump chain,
reordering the switch statements will improve code performance.

This patch also enhances code readability and improves error reporting.
(cherry picked from commit 6f83e15bba66ca1d1f1437fb5afb1ad25a49c430)
Fix reusage of proxy_l structures.

As proxy_l structures contain information about the DNS-based failover (iteration in he struct, which SRV or NAPTR records were used or not), such structure cannot be used more then once for sending a message out.
Fixes:
- do not use the same proxy_l for multiple functions in script (remove the add_proxy() and find_proxy() )
- avoid using the same proxy_l structure for all the calls of same function (when proxy_l is a function parameter)

Fixes #224
Many thanks for Chris Maciejewski ( @l7s ) for support on troublehsooting this.

(cherry picked from commit f7f2cb41d6f562d0c3d6748a827d55e12cb05174)
Fix DB_BIGINT support and unused vars.
Support for json-c ; Fixed compile warnings
Fixed compile warnings

(cherry picked from commit 5c27f464f78235d70414661721470e8213624f5f)
Complete documentation added for the Call Center module

(cherry picked from commit 8f0a1508729276b8b8057e215e20316039f07079)
call_center: add column info when loading calls from db

(cherry picked from commit 997ccd335b1ec93397a0d86018ff8543a1cf71ae)