modules/pipelimit: check correctly for all arguments in mi_set_pipe
(cherry picked from commit d17b02ed5014b4e32bd0060f32cabd750956779c)
srdb1: add new db-private generic pointer to struct db1_res
db_mysql: fix segfault when recursive queries are made

The MySQL result object (MYSQL_RES) should not be stored within the
srdb1 connection object, but rather within the srdb1 result object.
Otherwise recursive queries overwrite each other's result sets, which
results in segfault.

Conflicts:
	modules/db_mysql/km_my_con.h
xcap_server: init etag variable for PUT operations

- the function xcaps_get_db_etag() may not found a record to db and will
  not initialize it, resulting in bogus value passed to
  check_preconditions()
- reported by Juha Heinanen, FS#283
(cherry picked from commit 2d27dd1080cd490e93646b38d3912dcbe3761ca5)
rr: use sips to build RR headers of R-URI has sips

- reported by Hugh James, FS#277
(cherry picked from commit 1826a5f4e3a981e30956da61e11ea551aae0b714)
msrp: fix compile warning of argument type in dbg message

- reported by Olle E. Johansson
(cherry picked from commit 7339d847adfd098c58426e96e5e3730ad580d543)
core: set TOS for IPv6 UDP sockets

- reported by Klaus Feichtinger, FS#179
(cherry picked from commit 084be456bc0fab015cf9964ac85651fa60ea77c9)
usrloc: use NULL domain for updating ul attributes for use_domain=0

- use counter var for db matching keys
(cherry picked from commit 50b116cf4c9c33c4f23c1d5b66fd313a7f40c572)
core: set TOS for IPv6 sctp sockets
(cherry picked from commit b57f64533dbc538f3d5282d0196598062f0b4652)
core: set TOS for tcp IPv6 sockets
(cherry picked from commit b9476db0c1e1ce869c1da2f87dfaf411edf69277)
dialog_ng: set kamailio mod interface always

- it breaks rpc list generation otherwise
(cherry picked from commit 11bc294a9d64e31014ccb836290467984c28ce65)
rr: added missing s in sips for record route

- reported by Sander van Grieken
(cherry picked from commit 0ecde91fe6e911997b1f5ee33eb50fa6778b7a89)
parser: safety check for max port length in URI

- can't be longer than 5, a port being 16b value
- reported by Kevin Wojtysiak
(cherry picked from commit 13fd48f89555f5421e8285669e303bcefe44f149)
.gitignore: added protoshoot binary the ignore list of git
(cherry picked from commit a177a33b9938a36cfaedbce61734a1525e5b1665)
rr: use port.len to check for buffer overflow instead of max port len

- reported by Kevin Wojtysiak
(cherry picked from commit 28a8b87885e373bee8cc81985277ae718973fdfd)
core: safety check for content-lenght size in tcp read

- avoid getting negative
- upon a report by Kevin Wojtysiak
(cherry picked from commit 3c54420914c011bdd874a97c4c40ee9dacb59788)
modules/usrloc: init _ul_sruid also in mi_child_init
(cherry picked from commit 2190c572cd1bc4b57a3c2dd5241e556b834c728c)