diff --git a/src/mod/endpoints/mod_portaudio/mod_portaudio.c b/src/mod/endpoints/mod_portaudio/mod_portaudio.c index 59823afb18..0b6660163b 100644 --- a/src/mod/endpoints/mod_portaudio/mod_portaudio.c +++ b/src/mod/endpoints/mod_portaudio/mod_portaudio.c @@ -964,7 +964,7 @@ static switch_status_t answer_call(char *callid, switch_core_session_t *session, return SWITCH_STATUS_FALSE; } - if ((tech_pvt = switch_core_hash_find(globals.call_hash, callid)) != 0) { + if (callid && (tech_pvt = switch_core_hash_find(globals.call_hash, callid)) != 0) { channel = switch_core_session_get_channel(tech_pvt->session); assert(channel != NULL); switch_set_flag_locked(tech_pvt, TFLAG_ANSWER);