@@ -306,7 +306,7 @@ static int app_exec(struct ast_channel *chan, const char *data)
306
306
#if (defined _AST_VER_10 || defined _AST_VER_11 || defined _AST_VER_12 )
307
307
struct ast_format old_writeformat ;
308
308
#elif (defined _AST_VER_13 )
309
- RAII_VAR (struct ast_format * , old_writeformat , NULL , ao2_cleanup );
309
+ RAII_VAR (struct ast_format * , old_writeformat , NULL , ao2_cleanup );
310
310
#else
311
311
int old_writeformat = 0 ;
312
312
#endif
@@ -396,7 +396,7 @@ static int app_exec(struct ast_channel *chan, const char *data)
396
396
/*
397
397
* This registers a chan with swift, otherwise through repeated DTMF+synth requests
398
398
* a single call could consume all available concurrent synthesis ports.
399
- */
399
+ */
400
400
swift_register_ast_chan (port , chan );
401
401
}
402
402
#endif
@@ -450,7 +450,7 @@ static int app_exec(struct ast_channel *chan, const char *data)
450
450
451
451
if (ast_set_write_format_by_id (chan , AST_FORMAT_ULAW ) < 0 ) {
452
452
#elif (defined _AST_VER_13)
453
- old_writeformat = ao2_bump (ast_channel_writeformat (chan ));
453
+ old_writeformat = ao2_bump (ast_channel_writeformat (chan ));
454
454
455
455
if (ast_set_write_format (chan , ast_format_ulaw ) < 0 ) {
456
456
#endif
@@ -500,7 +500,7 @@ static int app_exec(struct ast_channel *chan, const char *data)
500
500
#elif (defined _AST_VER_10 || defined _AST_VER_11 || defined _AST_VER_12 )
501
501
ast_format_set (& myf .f .subclass .format , AST_FORMAT_ULAW , 0 );
502
502
#elif (defined _AST_VER_13 )
503
- myf .f .subclass .format = ast_format_ulaw ;
503
+ myf .f .subclass .format = ast_format_ulaw ;
504
504
#endif
505
505
myf .f .datalen = len ;
506
506
myf .f .samples = len ;
@@ -659,7 +659,7 @@ static int app_exec(struct ast_channel *chan, const char *data)
659
659
if (!res ) {
660
660
ast_set_write_format (chan , old_writeformat );
661
661
}
662
- ao2_cleanup (old_writeformat );
662
+ ao2_cleanup (old_writeformat );
663
663
#endif
664
664
ast_module_user_remove (u );
665
665
return res ;
0 commit comments