test/unit: updates to unit 22

(cherry picked from commit 6f476de8d0e658c148328ace7f0f27f0574fb52e)
test/unit: updated unit 25.sh

(cherry picked from commit 66b93da82ed075c0a4d9d6b1e5f93932432a1aee)
test/unit: sipsak listed as dependency in readme

(cherry picked from commit dad6e668c3839bafb20fcee31fdd35a1ce7ceac7)

Conflicts:
	test/unit/README
test/unit: updates to units 27, 28, 29, 31 ane 33

- parametrizied 11.cfg

(cherry picked from commit 4d898e9391ff4990eb5ce2319c9a5ca7d66d98b4)
test/unit: Add Sipsak URL in README

(cherry picked from commit c2180873931408e7ff35e826f82505a7a99167e6)
tls: note that SSLv3 should not be used if high security is needed

- the note was already for SSLv2

(cherry picked from commit 5fe0d14745303c61d3fafe9decbb735d5424a442)
cr: decreased logging severity of some messages

- moved some informative messages from ERR to INFO, DBG

(cherry picked from commit 2a57414fd952f36f88b1ab2dc038934a8ddf6d64)
cr: fix some cr kamctl fifo problems

- initialize builtin structures with appropiate values

(cherry picked from commit 22d125e3b73688b227a951dce1ce12b4c798229a)
modules/dialog_ng: prevent seg fault if socket struct is null

(cherry picked from commit de369d4b466078c4c5aada0fc55d9689b2d13047)
core/parser: Fix extract_sendrecv_mode to always return mode if valid

- All four sendrecv directions return 0
- is_on_hold flag set for inactive and sendonly

(cherry picked from commit 0a019df8f2922a940a41742ce0e4560bb6523d6c)
sdpops/documentation: Add id's to function sections

(cherry picked from commit 69cd679496c482aabd17f2c7fbde7a5282864308)
registrar: Prevent incorrect application of path when forwarding a register

- Reset the internal path pointer after a save() to prevent it being added
  as a Route: header, e.g. when running t_replicate()

(cherry picked from commit 61a1eee4fe2b7e3a7c6a8f82c86ac52957439053)
htable: safety check for key type and value

- reported by FS#486

(cherry picked from commit f5d9b59ee5aabb1da934ae2ce8101250041c05d1)
sqlops: use row index for storing result of sql_pvquery()

- reported by Savolainen Dmitri, FS#487

(cherry picked from commit 367840503010d1be0da23e79525f2f88eb09ebcf)
tm: safety catch inside t_check_trans() when already in a tm routing block

- transaction is known and some of these routing blocks are inside tm
  lock, which can result in deadlock if not tested
- reported by Andrew Pogrebennyk, FS#482

(cherry picked from commit a8d50919bd614b704f3a4e08ff90d844b2c29829)
rr: dont set msg flag FL_RR_ADDED for record_route() in branch_route

- the operation is specific only for the branch

(cherry picked from commit 58ad681ab68a14e8fe2b0f6ebc6cf03bdabeea80)
pipelimit: update the limit of pipe for pl_check(pipeid, alg, limit)

- affects the dynamic pipes that could have been created by same
  function on a previous execution, allowing to be on-the-fly updated
- reported by Alex Balashov

(cherry picked from commit 280f947eac5c66bfa6151c75983ffa9e533dd709)
tm: do all the clean local msg structure in one place

- uri/dst-uri were clened before the entire local sip message, not being
  visible while rebuilding the content

(cherry picked from commit a2252afe90e0acd779e64c47eacc174b4bbdc41c)
main.c: fix compile warning

(cherry picked from commit e4f18cb322d54035fb6825df3a2f712ed03a71db)
tm: update headers shortcuts if buffer rebuilt after event_route[tm:local-requests]

- affecting transactions for local generated requests
- bulding local ACK uses the shortcuts and they ended up being broken
- reported by Kristian F. Høgh

(cherry picked from commit b6d3dc61a78e549c9a75ddfa2fbb86aa2a1682c5)