- BYE requests received in confirmed state should terminate the dialog only if they match the TO-tag from 200 OK INVITE.
  This affects parallel forking scenarios where rejected branches are terminated via BYE by caller.
  Thanks for reporting and testing to Marco Hierl.
Fix: also run child_init for bin listeners

- bin listeners are now identified by the PROC_BIN rank
- this way, only the UDP listeners receive positive ranks
(cherry picked from commit 389de529cc7865a475823365cdba90f1a920c1a5)
- proper backport of all changes from 1.8 branch
Fixed bug introduced by previous commit :
	- downstream BYEs should go to 200OK leg in order to trigger dialog termination
	- upstream BYEs have no such limitation ( there's only one caller leg :) )
(cherry picked from commit 18257f33e71061828493f4232b9dbd8dd7fa6729)
- removed unused variable
- complete backport from 1.8 of pull request #15
- complete backport from 1.8 of pull request #15
- complete port of pull request #34
Merge pull request #58 from saghul/pua_double_free

Fixed double free issue in pua module
Fix replicated dialog profile management in distributed systems

- replication-receiving instances must not do any profile-related
  DB queries
(cherry picked from commit 20c92450fac2fd45506f759f7b19473a3dc657f9)
Merge pull request #68 from wdoekes/wjd-fix_nathelper_memleak

Fix memleak in nathelper natping when "failed to fetch contacts".
Fix compilation issue introduced in commit a9fcd84c
(cherry picked from commit 6f8244921231ed837f1d54204cf6b616c33cabc4)
- fixed NULL sockets in external scenarios (this leads to crashing when building the contact hdr)
  Reported by dexteruk on IRC .
Fix replication of dialog delete events

- instead of sending "deleted" packets based on hash delete operations,
they are now sent when a dialog changes state to "DLG_STATE_DELETED"
- this prevents the receiving instance from replicating the event again
(cherry picked from commit 5a63dcdf87c8d69c3dc9e5d6330f3d58953c28b5)
Fix several usrloc named flag issues

- fix get_all_db_ucontacts() lookup logic to work with named flags
- fix "Cflags" row of MI *ul_dump* command
- fix DB contact update function to properly store the flags
(cherry picked from commit b33d4b3f019c157a5e63b21a846ad9f891da559e)
Merge pull request #62 from dsandras/ds-dialoginfo-notifications-fixes

Fixed RFC 4235 notifications compliance.
 - fixed incomplete function call (resulted from the merged commit 09a291e)
- fixed how lumps can overlap on the edge - an "add" just next to a "delete"
  Reported by Saul Ibarra Corretge
  Closes issue #59
- when starting the FR timer, it should not override any previous setting of a FR or FR_INV timers.
  Solves Issue #25 (reported and troubleshooted by Mayama Takeshi) when a very fast 100 reply may stop retransmissions, but brake the updating of fr timer from FR to FR_INV state.
-  Gracefully detect if the uac_auth modules is available for usage in b2b_entities modules - do not through an error message but rather an info one, as find the uac_auth module is optional.