diff --git a/src/mod/event_handlers/mod_rayo/rayo_fax_components.c b/src/mod/event_handlers/mod_rayo/rayo_fax_components.c index e787dbe9e5..2032feed55 100644 --- a/src/mod/event_handlers/mod_rayo/rayo_fax_components.c +++ b/src/mod/event_handlers/mod_rayo/rayo_fax_components.c @@ -129,7 +129,7 @@ static iks *start_sendfax_component(struct rayo_actor *call, struct rayo_message } /* does document exist? */ - if (switch_file_exists(fax_document, pool) != SWITCH_STATUS_SUCCESS) { + if (switch_file_exists(fax_document, NULL) != SWITCH_STATUS_SUCCESS) { return iks_new_error_detailed_printf(iq, STANZA_ERROR_BAD_REQUEST, "file not found: %s", fax_document); }