mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	Merged revisions 145606 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r145606 | mmichelson | 2008-10-01 17:23:50 -0500 (Wed, 01 Oct 2008) | 11 lines Okay, this should really do it now. While I did manage to fix blind transfers with my last commit here, I also caused an unwanted side-effect. That is, only the first priority of the 'h' extension would be executed when a blind transfer occurred instead of all priorities. Essentially, my last commit corrected the return value of ast_bridge_call. However, the implementation still was not 100% correct. Now it is. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@145607 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -2193,14 +2193,15 @@ int ast_bridge_call(struct ast_channel *chan,struct ast_channel *peer,struct ast | ||||
| 		ast_copy_string(chan->exten, "h", sizeof(chan->exten)); | ||||
| 		chan->priority = 1; | ||||
| 		ast_channel_unlock(chan); | ||||
| 		while ((res = ast_spawn_extension(chan, chan->context, chan->exten, chan->priority, chan->cid.cid_num, &found, 1))) { | ||||
| 		while ((res = ast_spawn_extension(chan, chan->context, chan->exten, chan->priority, chan->cid.cid_num, &found, 1)) == 0) { | ||||
| 			chan->priority++; | ||||
| 		} | ||||
| 		if (found && res)  | ||||
| 		{ | ||||
| 		if (found && res) { | ||||
| 			/* Something bad happened, or a hangup has been requested. */ | ||||
| 			ast_debug(1, "Spawn extension (%s,%s,%d) exited non-zero on '%s'\n", chan->context, chan->exten, chan->priority, chan->name); | ||||
| 			ast_verb(2, "Spawn extension (%s, %s, %d) exited non-zero on '%s'\n", chan->context, chan->exten, chan->priority, chan->name); | ||||
| 		} else if (!found && res) { | ||||
| 			res = 0; | ||||
| 		} | ||||
| 		/* swap it back */ | ||||
| 		ast_channel_lock(chan); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user