How to apply this patch:HELP!

Hi, I am trying to apply following patch .
As you can see is writed so I suppose I have to copy and paste in a file “.diff” then apply it. Right? I tried but without succes.
Can you help me?

  1. ssh into your Asterisk box as root
  2. cd /usr/src/asterisk/
  3. nano transferfix.patch
  4. Copy and paste this code into the nano window:
  5. press “ctrl+x”
  6. press “y” and then enter
  7. patch --ignore-whitespace apps/app_voicemail.c < transferfix.patch (You will have to apply it to the correct app should be main/channel.c)
  8. make clean
  9. amportal stop
  10. ./configure
  11. make
  12. make install
  13. reboot

No gurentees that it will work but this is how I have applied patches in the past.


I tried but I get this error:

The text leading up to this was:

|— main/channel.c 2010-10-22 18:22:31.000000000 +0200

+++ main/channel.c 2010-10-22 21:49:44.669221930 +0200

File to patch: main/channel.c
patching file main/channel.c
Hunk #1 FAILED at 3620.
1 out of 1 hunk FAILED – saving rejects to file main/channel.c.rej

Any Idea?
Btw I used this command:

patch --ignore-whitespace main/channel.c < patch_fax.patch

Can you put ht econtent of channel.c.rej on here?


[[email protected] asterisk-]# cat /usr/src/asterisk/asterisk-

*** 3620,3626 ****
* frame. */

  • if (ast_check_hangup(chan)) {
  • ast_queue_control(chan, AST_CONTROL_HANGUP);
  • } else {
    goto done;
  • }
    — 3620,3626 ----
    * frame. */
  • // if (ast_check_hangup(chan)) {
  • // ast_queue_control(chan, AST_CONTROL_HANGUP);
  • // } else {
    goto done;
  • // }

I am attempting to apply the patch from

But am unable to find out how to actually apply the patch-

Have the Cisco 9951 phones and have video and calls working but can not seem to get the presence working-

Also seems to be a bug with these phones when a missed call happens the line appears to stay open-
Any help would be appreciated-