# Patch source file

**URL:** <https://community.asterisk.org/t/patch-source-file/12172>\
**Category:** Asterisk Support\
**Created:** [February 5, 2007, 10:19am UTC](https://community.asterisk.org/t/patch-source-file/12172 "2007-02-05T10:19:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mtrentin](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@mtrentin](https://community.asterisk.org/u/mtrentin)\
**Post date:** [February 5, 2007, 10:19am UTC](https://community.asterisk.org/t/patch-source-file/12172/1 "2007-02-05T10:19:17Z")

</div>

There is a problem with call transfer (# and \*key) in 1.4.0 and there is a patch to apply at res\_features.c file.

With command :  
patch res\_features.c patch.file

I obtain :  
patching file res\_features.c  
patch: \*\*\*\* malformed patch at line 10: + config.play\_warning = 0;

The patch file is:  
— branches/1.2/res/res\_features.c 2006/11/30 18:49:59 48153  
+++ branches/1.2/res/res\_features.c 2006/11/30 19:04:11 48154  
@@ -1774,12 +1774,6 @@  
ast\_verbose(VERBOSE\_PREFIX\_3 “Channel %s connected to parked call %d\n”, chan-\>name, park);

```
     memset(&config, 0, sizeof(struct ast_bridge_config));

```

- ast\_set\_flag(&(config.features\_callee), AST\_FEATURE\_REDIRECT);
- ast\_set\_flag(&(config.features\_caller), AST\_FEATURE\_REDIRECT);
- config.timelimit = 0;
- config.play\_warning = 0;
- config.warning\_freq = 0;
- config.warning\_sound=NULL;  
res = ast\_bridge\_call(chan, peer, &config);

Do they have any idea?  
Thankyou
