mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	Provide dialtone when doing overlap dial (bug #1832)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3199 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -4408,6 +4408,10 @@ static void *ss_thread(void *data) | ||||
| 		len = strlen(exten); | ||||
| 		res = 0; | ||||
| 		while((len < AST_MAX_EXTENSION-1) && ast_matchmore_extension(chan, chan->context, exten, 1, p->callerid)) { | ||||
| 			if (len && !ast_ignore_pattern(chan->context, exten)) | ||||
| 				tone_zone_play_tone(p->subs[index].zfd, -1); | ||||
| 			else | ||||
| 				tone_zone_play_tone(p->subs[index].zfd, ZT_TONE_DIALTONE); | ||||
| 			if (ast_exists_extension(chan, chan->context, exten, 1, p->callerid)) | ||||
| 				timeout = matchdigittimeout; | ||||
| 			else | ||||
| @@ -4422,6 +4426,7 @@ static void *ss_thread(void *data) | ||||
| 			} else | ||||
| 				break; | ||||
| 		} | ||||
| 		tone_zone_play_tone(p->subs[index].zfd, -1); | ||||
| 		if (ast_exists_extension(chan, chan->context, exten, 1, p->callerid)) { | ||||
| 			/* Start the real PBX */ | ||||
| 			strncpy(chan->exten, exten, sizeof(chan->exten)); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user