diff --git a/channels/sig_pri.c b/channels/sig_pri.c index 8e7c73c22c13187d6115bb190de13ba744908eef..e9314033003aea4ab217bbb50fc336622b3a13fd 100644 --- a/channels/sig_pri.c +++ b/channels/sig_pri.c @@ -1477,7 +1477,7 @@ static void *pri_ss_thread(void *data) exten[len++] = res; exten[len] = '\0'; } else - goto exit; + break; } /* if no extension was received ('unspecified') on overlap call, use the 's' extension */ if (ast_strlen_zero(exten)) { @@ -1522,13 +1522,6 @@ static void *pri_ss_thread(void *data) p->call = NULL; } return NULL; - -exit: - res = sig_pri_play_tone(p, SIG_PRI_TONE_CONGESTION); - if (res < 0) - ast_log(LOG_WARNING, "Unable to play congestion tone on channel %d\n", p->channel); - ast_hangup(chan); - return NULL; } void pri_event_alarm(struct sig_pri_pri *pri, int index, int before_start_pri)