core: fix condition on script callback number done inside EXTRA_DEBUG

- reported by Seudin Kasumovic, FS#388
db_cassandra: clone key in a zero-termniated local buffer

- rework from a patch by Jay Binks
modules/lcr: added capability to inactive a faulty gateway and re-activate
  it automatically by successful response to OPTIONS ping
modules/sctp: reverted accidental commit on sctp module while committing
  lcr changes
modules/ims_registrar_pcscf: Add domain unlock to prevent deadlock when processing notifies
htable: fix crash if key_value is not string
modules/ims_usrloc_pcscf: added new hash storage based on IP:PORT. backwards compatible with original scheme using new modparam
	- new modparam is hashing_type - see module documentation
modules/ims_qos: use asserted_identity for subscription-id and allow e164 as subscription type
	use p_asserted_identity as default subscription-id for AAR requests
	allow E164 to be used as subscription type for AAR requests
modules/ims_charging: allow E164 to be used as subscription-type in CCR requests
lib/ims: added function to get Called-Party_ID AVP from message
modules/ims_registrar_pcscf: Added new exported function pcscf_assert_called_identity
	pcscf_assert_called_identity function used to assert the identity for SIP responses
	Function retrieves Called-Party-ID AVP from SIP request and adds to SIP response as P-Asserted-Identity as per TS 24.229 section 5.2.6.4.4
examples/config: added p-asserted-identity logic on P-CSCF and add Called-Party_ID AVP on S-CSCF
modules/lcr: fixed name of ping_inactivate_threshold param in README
Merge branch 'master' of ssh://git.sip-router.org/sip-router
modules/ims_charging: change to use asserted_identities for subscription id if present
	Change to use asserted-identity header and called-party-id header as subscription id when present, otherwise use from_uri and to_uri as before
	Change to use asserted-identity for subscription id when direction is orig and called-asserted-identity when direction is term
pkg/kamailio/deb: clean lintian warnings
fix typos detected by lintian tool from built binaries
lib/ims: fixed pkg_mem leak when getting service route
htable: relax table definition for htable and handle/accept more db types
htable: adding flags and expires fields to htable.get RPC command