- 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)
- 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.
- fixed CANCEL matching in B2B
Fix: allow rest_client functions in onreply_route

Credits to Jayesh Nambiar for reporting
- new functions added to help a module to check if its functions are used from the script (we cannot rely on the fixup functions as we have functions without parameters or need for fixup). Such function is needed for fixing dependencies between modules (to follow up)
- UAC module does not load (no dependency) on UAC_AUTH if the uac_auth() function is not used.
- UAC module does not load RR and DIALOG (with further dependencies on the params of those modules) if no FROM/TO replace ops are done.
Fix evi crash when defining more than 10 events
Fix PUA module so that it sends a final PUBLISH on expiration.

A final PUBLISH with expires=0 is now generated when a publication has
expired. This will trigger the transmission of a final state NOTIFY.
- fixed updating the index of the last DEL operation - this is essential for deciding which lumps must be skipped (as overlapping with delete parts of the message)
  Credits go to Nick Altmann for reporting and helping with troubleshooting.
  Closes issue #79
Merge pull request #73 from wdoekes/wjd-pua_min_expires_doc

pua.c sets int min_expires= 300, not 0 as documentation states.
Merge pull request #69 from dsandras/ds-try-naptr2

Added new dns_try_naptr option.
- fixed overflow in parsing the content len value
  Reported by franklyfox on GITHUB
  Closing issue #78
- fixed double free when building insert fails (in buffered insert mode)
  Reported by Brett Nemeroff