From 4f8e843610871275d00e3ce4cd868beaa013d201 Mon Sep 17 00:00:00 2001 From: Kapil Gupta Date: Wed, 15 Aug 2012 14:26:09 -0400 Subject: [PATCH] adding code to check return type of "ftdm_start_span" API --- libs/freetdm/mod_freetdm/mod_freetdm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/freetdm/mod_freetdm/mod_freetdm.c b/libs/freetdm/mod_freetdm/mod_freetdm.c index a746c1877f..2ee1f20824 100755 --- a/libs/freetdm/mod_freetdm/mod_freetdm.c +++ b/libs/freetdm/mod_freetdm/mod_freetdm.c @@ -3558,7 +3558,10 @@ static switch_status_t load_config(void) switch_copy_string(SPAN_CONFIG[span_id].dialplan, dialplan, sizeof(SPAN_CONFIG[span_id].dialplan)); switch_copy_string(SPAN_CONFIG[span_id].type, "Sangoma (SS7)", sizeof(SPAN_CONFIG[span_id].type)); ftdm_log(FTDM_LOG_DEBUG, "Configured ss7 FreeTDM span %d with config node %s\n", span_id, configname); - ftdm_span_start(span); + if(FTDM_SUCCESS != ftdm_span_start(span)){ + CONFIG_ERROR("Error Starting ss7 FreeTDM span %d\n", span_id); + continue; + } } }