pipelimit: run timer at 1000ms

- proper execution on timer_interval
- reported by Julia <juliabo@gmail.com>

(cherry picked from commit f9d95734ba7c04a0188077914161395c2e94f3eb)
(cherry picked from commit ee692ab89f1321ccfb24316c30fce5a90e6a9764)
drouting: removed old contraint on route index

(cherry picked from commit c3386295d7607a58d37a65b6822bf5f98b3fefa0)
(cherry picked from commit a9a3cebc7688dcaea7539c067c4b1bf3463040ce)
acc: no request is needed for setting end time on dialog termination

- callback function cdr_on_end() doesn't use it at all
- reported by Eduardo Lejarreta, FS#256

(cherry picked from commit 8fcdd23aaa49cb6c1ecb34c4c6b4a88078a860f7)
(cherry picked from commit 4455a13e8d31416dc44af455710fd7a7ff37ec11)
dialog: copy dlg var value locally on get operation

- reference to shared memory exposes risk on accessing an invalid
  pointer if anothe process updates it
- reported by Dragos Oancea

(cherry picked from commit bb3eed8aabea9f63c9922f71714aea242771db02)
(cherry picked from commit b76eb77a36a5e751d792cb7e0d60f4750976e322)
rtmier: reset avps and xavp lists after route blocks execution

- avoid leaks if someone is using avp/xavp with rtimer - there is a fake
  message used there, thus not the normal sip message routing that
  resets avps/xavps

(cherry picked from commit 159978cf2a98748f3225155d8946bcbd768b51e3)
(cherry picked from commit c5781b28cd92360cf163a84312fa72c08c4737b5)
presence_dialoginfo: interetate through all 'dialog' nodes of xml document

- PUBLISH request can carry info for many dialogs
- reported and patch by Klaus Feichtinger

(adapted from commit cc4a7c67f24d105a119ea492ce53f017369af296)
db_mysql: fixed condition checking the parameter for db uri parsing

- on a report generated by cppcheck sent by David Binderman

(cherry picked from commit c0b2e567b2a27d5d29ede39409d6299f7d375d87)
(cherry picked from commit 75203caf1a7a8c582b8eaff67af891b00100f232)
db_mysql: remove line accessing freed result

(cherry picked from commit e114105450d8a5152448afd28de16e290297e38d)
(cherry picked from commit 045b6ead1eace226ec316e3ae776f7bc35e54341)
db_mysql: reset prev_token to avoid double free in case of url parse error

- when db api v2 is used (ser modules)

(cherry picked from commit f65bf2c37bfaae740dd3cd8d686308cfa44b42f2)
(cherry picked from commit 340768948df423e25812d083fcdf09396ef763e3)
db_mysql: properly free db result structure if db_mysql_convert_result() fails

- reported by Torrey Searle, FS#420

(cherry picked from commit 37983c9f57536c57c5d34ce2d8a1c8f411e61e39)
(cherry picked from commit 402e2122d1aa353ee8c10321aa1eb9315a81cd81)
siputils: allocate enough space to hold ending zero for tel uri in tel2sip()

- reported by Juha Heinanen

(cherry picked from commit 7992a2b8d42bb7e8bcf1738cf042013ed126a47a)
(cherry picked from commit f44415eee52d5c17a9b6c5e16175bd84455e9867)
initial commit with kazoo patch
KAZOO-1513 handle mwi subscriptions
KAZOO-2318 fix tcp / tls subscriptions
KAZOO-1513 KAZOO-2318 now working
KAZOO-2318 formatting
removed dbk_pres_update_and_notify
removed dbk_pres_update_and_notify_mwi
change debug lines loglevel to debug
memory adjustments because of tls