Index: channels/chan_dahdi.c =================================================================== --- channels/chan_dahdi.c (revision 338188) +++ channels/chan_dahdi.c (working copy) @@ -12117,7 +12117,11 @@ struct dahdi_bufferinfo bi; int res; + + #if defined(HAVE_SS7) || defined(HAVE_PRI) int span = 0; + #endif + int here = 0;/*!< TRUE if the channel interface already exists. */ int x; struct analog_pvt *analog_p = NULL; @@ -12210,7 +12214,9 @@ tmp->law_default = p.curlaw; tmp->law = p.curlaw; tmp->span = p.spanno; + #if defined(HAVE_SS7) || defined(HAVE_PRI) span = p.spanno - 1; + #endif } else { chan_sig = 0; } @@ -13469,7 +13475,10 @@ struct dahdi_pvt *exitpvt; int channelmatched = 0; int groupmatched = 0; + + #if (defined(HAVE_SS7) || defined(HAVE_PRI)) int transcapdigital = 0; + #endif struct dahdi_starting_point start; ast_mutex_lock(&iflock); @@ -13526,7 +13535,9 @@ break; case 'd': /* If this is an ISDN call, make it digital */ + #if (defined(HAVE_SS7) || defined(HAVE_PRI)) transcapdigital = AST_TRANS_CAP_DIGITAL; + #endif break; default: ast_log(LOG_WARNING, "Unknown option '%c' in '%s'\n", start.opt, (char *)data);