Fix: sdp_free() bug introduced in commit bde8c0a045

Credits to csollet for reporting.
pike: correct spelling
- 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
- 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 :) )
- complete backport from 1.8 of pull request #15
- complete backport from 1.8 of pull request #15
- complete port of pull request #34
Fixed double free issue in pua module

Also fix a couple of related memory leaks
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
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
- 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
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
Added new dns_try_naptr option.

The rationale behind this is that many stacks do not implement NAPTR
correctly and rely only on DNS SRV. With misconfigured DNS servers, it
can lead to useless lookups generating potentially long delays.

This can now be disabled if not needed.
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)