Patching 1.2.7.1 -> 1.2.9.1

hello :smile:

playin around with local installation before doing it on live system

this is my console output

patch -p0 < /home/asterisk-1.2.9.1-patch
patching file channels/chan_iax2.c
Hunk #1 FAILED at 6327.
Hunk #2 FAILED at 6465.
2 out of 2 hunks FAILED – saving rejects to file channels/chan_iax2.c.rej
patching file ChangeLog
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED – saving rejects to file ChangeLog.rej
patching file .version
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED – saving rejects to file .version.rej
patching file callerid.c

is there anything wrong ?
after patching i have to recompile again …

we want to patch our live system but i dont know if its good just to
patch, recompile and stuff like that. i think it would overwrite all config files, is this correct ???

asterisk really rules …

if You execute make samples
after making asterisk
then all configs will be overwritten
if not they, will stay where they are

-FD

thanks for fast reply

do i have to do “make samples” ???

and btw … i made a mistake. applied the wrong patch

had to apply patch 1.2.7.1, not 1.2.9.1

can someone tell me how to UPGRADE from 1.2.7.1 to 1.2.9.1 without any trouble ? hehe

mic

If You want to lose Your current configs then make samples

-FD

[quote=“mic35”]thanks for fast reply

can someone tell me how to UPGRADE from 1.2.7.1 to 1.2.9.1 without any trouble ? hehe

mic[/quote]

I was able to upgrade from 1.2.7.1 to 1.2.9.1 without any trouble. I stopped the running 1.2.7.1 service, extracted the source for 1.2.9.1, compiled with make, then make install. Then just re-loaded asterisk and came up no prob.

Like fdragowski said, you definetly do not want to run make samples afterward. To be on the safe side, before you upgrade, if you have your config files in /etc/asterisk, then I’d copy the files to another directory just in case…

i.e.
mkdir /etc/asterisk/backup
cd /etc/asterisk
cp . backup

Then you’ll have your orig config files in a directory and if you mess one up, can just copy your old file back to the /etc/asterisk folder. Obviously your options how you want to do that part are endless, but just a suggestion.