Fixed the connection handling - some modules would want to run cachedb type ops in the mod init
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
(cherry picked from commit 671a5bb7af35833fbf1e634e8bd321417ef5aa6a)
Postgres schema regenerated.
Fixed compile error.

Introduced in previous commit 1edac7bbda355f77ed9d0fe0c7fc5e854a5ed7ce
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)
Copy dlg AVPs into Transaction.

Partial backport from 253753e6, required for backporting 4ccebfe fix
Fix passing the auth AVPs from server to client.

Fixes #134, testing still required.

(cherry picked from commit 4ccebfe0ddda37b833cb7cabbe691fbf5f31402d)
Fixed compilation errors introduced by previous commits related to counter ops
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)
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)

Conflicts:
	action.c
	proxy.c
Fix comment
Fix DB_BIGINT support and unused vars.

(cherry picked from commit 611d47f5ac3ed36bcf3cfa233e25586b29616e88)

Conflicts:
	modules/db_berkeley/db_berkeley.c
Support for json-c ; Fixed compile warnings

(cherry picked from commit e481ef3895c5cc679ae94676e433a3b522c8b95f)

Conflicts:
	modules/json/json.c
Fixed compile warnings

(cherry picked from commit 5c27f464f78235d70414661721470e8213624f5f)

Conflicts:
	utils/db_berkeley/bdb_recover.c
event_rabbitmq: replace exchange with routing_key

Closes #220

(cherry picked from commit eb233f894b1364d20e1f3461304d79a077102a3a)

Conflicts:
	modules/event_rabbitmq/event_rabbitmq.c