mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	Fix a bug uncovered by the test suite where the RTP payload number was not getting set.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@370845 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -590,10 +590,12 @@ int ast_rtp_codecs_payloads_set_rtpmap_type_rate(struct ast_rtp_codecs *codecs, | ||||
| 			if (!(type = ao2_alloc(sizeof(*type), NULL))) { | ||||
| 				continue; | ||||
| 			} | ||||
| 			type->rtp_code = pt; | ||||
| 			ao2_link_flags(codecs->payloads, type, OBJ_NOLOCK); | ||||
| 		} | ||||
|  | ||||
| 		*type = t->payload_type; | ||||
| 		type->rtp_code = pt; | ||||
|  | ||||
| 		if ((t->payload_type.format.id == AST_FORMAT_G726) && t->payload_type.asterisk_format && (options & AST_RTP_OPT_G726_NONSTANDARD)) { | ||||
| 			ast_format_set(&type->format, AST_FORMAT_G726_AAL2, 0); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user