mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 18:55:19 +00:00 
			
		
		
		
	format_gsm.c: Added mime type
Sometimes it's impossible to get a file extension from URL (eg. http://example.com/gsm/your) so we have to rely on content-type header. Currenly, asterisk does not support content-type for gsm format(unlike wav). Added audio/gsm according to https://www.rfc-editor.org/rfc/rfc4856.html
This commit is contained in:
		
				
					committed by
					
						![asterisk-org-access-app[bot]](/avatar/58a64b62d62d5b23df7bc832f016f9db?size=40) asterisk-org-access-app[bot]
						asterisk-org-access-app[bot]
					
				
			
			
				
	
			
			
			
						parent
						
							8ec097a281
						
					
				
				
					commit
					634b57b8e6
				
			| @@ -174,6 +174,7 @@ static off_t gsm_tell(struct ast_filestream *fs) | ||||
| static struct ast_format_def gsm_f = { | ||||
| 	.name = "gsm", | ||||
| 	.exts = "gsm", | ||||
| 	.mime_types = "audio/gsm", | ||||
| 	.write = gsm_write, | ||||
| 	.seek =	gsm_seek, | ||||
| 	.trunc = gsm_trunc, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user