Installing patch on Asterisk 1.8.4.2

Hi all, I am pretty new on this kind of stuff and I’ll appreciate if someone can help me.
I need to install the following patch : issues.asterisk.org/view.php?id=18762 but I don’t really know how to start with this .diff file.
Can you explain me steps to install a patch on Asterisk? And after installed patch, what Have I have to do? Recompile Asterisk? How can I do that? There are some manuals or Wiki?
Btw , I am running asterisk on FreePBX.
Best regards.

cd asterisk-source-directory
patch -p0 < patch-file
make
make install

If you didn’t originally install from source, you will need to fetch the source and will need to do the full:

./configure
make menuconfig
customise as necessary
make
make install

procedure.

It’s a FreePBX distribution. What do you suggest me?
Thanks in advantage

Hi, I followed follow steps, tell me if something is wrong:
1- downloaded asterisk-1.8.4.3.tar.gz
2- unpacked on /usr/src/asterisk/asterisk-1.8.4.3
3- applied wget ‘https://issues.asterisk.org/file_download.php?file_id=28523&type=bug’ -O - | patch -p0
4- ./configure
5- make
6- make install
7 ( everything without errors!!! )
8- rebooted entire system but I get same issue of preview state.

What’s wrong? How can I be sure that patch is applied?
Thnaks in advance.

Spady,

I had a similar experience with a different patch. I ended up rebuilding the whole server and installing 1.6 where I was to believe the bug did not exist. What was the output when you applied the patch? I see that the patch you link to is for the SVN version, and someone would have to chime in here because I do not know, but when I tried to apply a patch for SVN version to source from a tarball, it failed.

I’m still new, but thought it may help in some way to share my experience.

Hi mpiontek
The output was that patch is installed succesfully. No error report. So i suppose I did it in a right way. I don’t nothing about SVN version. My asterisk box is coming from a FreePBX iso. Downloaded and then istalled. Nothing more. Ok, I always get it updated by using Admin tools provided by FreePBX Portal.
I also did a " yum upgrade asterisk*" and now I have installed version 1.8.4.3.
I patched also this version but issue is still present.
How Can I be sure that correct patch is installed?
Someone can Helpme?
Thanks

Nobody has idea?

You seemed to change topic when you asked about the patch. You seem now to be looking for answers to the problem that you thought the patch would fix. Without knowing the original problem, it is difficult to comment.

However, the issue you mentioned refers to the patch adding an option or extending the possible values, which implies that there has to be a configuration change before the patch does anything useful.

I know the original problem: Asterisk respond with bad event to a NOTIFY message received by Exchange UM. Patch I found resolve this issue.
And Yes, if I am writing on Asterisk forum, I am searching for an answer!

Ok, installed version 1.8.4.4; this is core show version :

Asterisk 1.8.4.4 built by root @ freepbx on a i686 running Linux on 2011-06-28 22:14:49 UTC

But i always have same issue:

<— SIP read from TCP:10.9.101.161:35903 —>
NOTIFY sip:3950@172.16.52.123:5060;user=phone SIP/2.0
FROM: sip:3950@172.16.52.123:5060;user=phone;epid=228FED427B;tag=9728518add
TO: sip:3950@172.16.52.123:5060;user=phone
CSEQ: 1 NOTIFY
CALL-ID: 51569d110a924d4b9cd340154a37ef26
MAX-FORWARDS: 70
VIA: SIP/2.0/TCP 10.9.101.161:35903;branch=z9hG4bK246374d1
CONTACT: sip:3950@172.16.52.123:5060;user=phone
CONTENT-LENGTH: 101
EVENT: message-summary
SUBSCRIPTION-STATE: terminated
USER-AGENT: RTCC/3.5.0.0 MSExchangeUM/14.01.0323.000
CONTENT-TYPE: application/simple-message-summary

Messages-Waiting: yes
Message-Account: sip:3950@172.16.52.123:5060;user=phone
Voice-Message: 15/1
<------------->
— (13 headers 3 lines) —

<— Transmitting (no NAT) to 10.9.101.161:35903 —>
SIP/2.0 489 Bad event
Via: SIP/2.0/TCP 10.9.101.161:35903;branch=z9hG4bK246374d1;received=10.9.101.161
From: sip:3950@172.16.52.123:5060;user=phone;epid=228FED427B;tag=9728518add
To: sip:3950@172.16.52.123:5060;user=phone;tag=as0ae1b395
Call-ID: 51569d110a924d4b9cd340154a37ef26
CSeq: 1 NOTIFY
Server: FPBX-2.9.0(1.8.4.3)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0

Of courese, before installing new version I have patched it!!!
Pls help :frowning:

Patch is working!!! I was missing “unsolicited_mailbox” param. on Exchange Trunk group config. Now I cannot understand why all MWI are going to

Event: MWI
Mailbox: @default
Context: SIP_Remote
NewMessages: 18
OldMessages: 1
and not to set 3950.

Trunk config is:

host=10.9.101.161
type=friend
insecure=very
transport=tcp
port=5065
context=from-internal
unsolicited_mailbox=@default

Any idea???