check validity for to/from in sipmsg_validate
sanity check for contact header(s)
indentation with tabs, correct typos, remove escaped quotes. thank you Walter Doekes for the code review.
Fixed deadlock when replicating dialog which has pinging enabled.
Remove pinging entirely for replicated dialogs, since it might cause issues when running in active-backup mode
Properly set the dialog timeout for update bin requests
(cherry picked from commit 837032b63b092b45cae64668fd56e6e7cb3d7184)
Do not replicate dialog termination if dialog creation was not done ( failed calls )
(cherry picked from commit 0705a29de1fdf865f7fa11cd3b68c43ccb9e9671)
Do not crash on replicated update if replicated create has failed
Free dlg memory in case replicated create fails
(cherry picked from commit c9b39731c4669bc2d91182bb6130cc1e88286b8a)
whitelist fix
Merge pull request #302 from tallicamike/fix-whitelists

whitelist fix
dialog: fix possible hash id conflict on restart

When restarting the proxy, the auto-generated next_id of each
hash entry is not properly incremented if a loaded dialog happens to
have this same next_id as hash id. This will soon lead to duplicate hash ids.

Reported by miko95 on GitHub.
msg_translator: Passing MSG_TRANS_NOVIA_FLAG means don't touch Via.

Before this, if you passed the MSG_TRANS_NOVIA_FLAG flag to
build_res_buf_from_sip_res, the msg->via1->next would get checked but
not used. Now it's not touched at all.
dialplan: fix shm leak when parsing invalid regex

Upon (re)load, if the subst or repl columns contain expressions which
fail to compile, OpenSIPS will leak shared memory.

Reported by miko95 on GitHub
Closes issue #307
Properly propagate parameters with no value
Removed INFO debug
dialog: fix primary key when updating dialogs in REALTIME db mode

When updating rows in the dialog table in REALTIME db mode, the dlg_id
update key is not properly initialized (actually contains random data).

Reported by miko95 on GitHub
Closes issue #306
drouting: fix warning: "current_partition" may be used uninitialized in this function
Merge pull request #294 from tallicamike/feature-sipmsgvalidate-for-tofrom

sipmsgops: Additional "f", "t" and "c" flags for sipmsg_validate() which check To, From and Contact header integrity
Merge pull request #305 from wdoekes/wjd-msg_trans_no_via-no_crash

msg_translator: Passing MSG_TRANS_NOVIA_FLAG means don't touch Via.
Report the cfg filename in all cfg related errors.

Fixes #299.
Fix missing "p" state to MI ds_set_state command.

Closes #312
Reported by @gergelypeli
dialplan: prevent memory corruption when DB backend fails to start

Fix a couple of incorrect free operations