{
int x = 0;
+ if (!key) return x;
+
switch_mutex_lock(globals.caller_orig_mutex);
x = !!switch_core_hash_find(globals.caller_orig_hash, key);
switch_mutex_unlock(globals.caller_orig_mutex);
static void add_caller_outbound_call(const char *key, switch_call_cause_t *cancel_cause)
{
+ if (!key) return;
+
switch_mutex_lock(globals.caller_orig_mutex);
switch_core_hash_insert(globals.caller_orig_hash, key, cancel_cause);
switch_mutex_unlock(globals.caller_orig_mutex);
static void del_caller_outbound_call(const char *key)
{
+ if (!key) return;
+
switch_mutex_lock(globals.caller_orig_mutex);
switch_core_hash_delete(globals.caller_orig_hash, key);
switch_mutex_unlock(globals.caller_orig_mutex);
{
switch_call_cause_t *cancel_cause = NULL;
+ if (!key) return;
+
switch_mutex_lock(globals.caller_orig_mutex);
if ((cancel_cause = (switch_call_cause_t *) switch_core_hash_find(globals.caller_orig_hash, key))) {
*cancel_cause = cause;
{
int x = 0;
+ if (!key) return x;
+
switch_mutex_lock(globals.bridge_mutex);
x = !!switch_core_hash_find(globals.bridge_hash, key);
switch_mutex_unlock(globals.bridge_mutex);
static void add_bridge_call(const char *key)
{
+ if (!key) return;
+
switch_mutex_lock(globals.bridge_mutex);
switch_core_hash_insert(globals.bridge_hash, key, (void *)&marker);
switch_mutex_unlock(globals.bridge_mutex);
{
int x = 0;
+ if (!key) return x;
+
switch_mutex_lock(globals.consumer_orig_mutex);
x = !!switch_core_hash_find(globals.consumer_orig_hash, key);
switch_mutex_unlock(globals.consumer_orig_mutex);
static void add_consumer_outbound_call(const char *key, switch_call_cause_t *cancel_cause)
{
+ if (!key) return;
+
switch_mutex_lock(globals.consumer_orig_mutex);
switch_core_hash_insert(globals.consumer_orig_hash, key, cancel_cause);
switch_mutex_unlock(globals.consumer_orig_mutex);
static void del_consumer_outbound_call(const char *key)
{
+ if (!key) return;
+
switch_mutex_lock(globals.consumer_orig_mutex);
switch_core_hash_delete(globals.consumer_orig_hash, key);
switch_mutex_unlock(globals.consumer_orig_mutex);
{
switch_call_cause_t *cancel_cause = NULL;
+ if (!key) return;
+
switch_mutex_lock(globals.consumer_orig_mutex);
if ((cancel_cause = (switch_call_cause_t *) switch_core_hash_find(globals.consumer_orig_hash, key))) {
*cancel_cause = cause;
priority = MAX_PRI - 1;
}
+ if (!node_name) return 0;
+
switch_mutex_lock(globals.mutex);
if (!(node = switch_core_hash_find(globals.fifo_hash, node_name))) {
char *sql, *name_dup, *p;
fifo_node_t *node = NULL;
+ if (!fifo_name) return;
+
if (switch_stristr("fifo_outbound_uuid=", originate_string)) {
extract_fifo_outbound_uuid(originate_string, digest, sizeof(digest));
} else {
callback_t cbt = { 0 };
fifo_node_t *node = NULL;
+ if (!fifo_name) return;
+
+
if (switch_stristr("fifo_outbound_uuid=", originate_string)) {
extract_fifo_outbound_uuid(originate_string, digest, sizeof(digest));
} else {