Hello all. Im trying to make asterisk support MFCR2 here but Im getting an error when I apply the patch:

patch < channels_Makefile.patch
patching file Makefile
Hunk #1 succeeded at 75 with fuzz 1 (offset 12 lines).
Hunk #2 succeeded at 99 (offset 17 lines).
Hunk #3 FAILED at 166.
Hunk #4 FAILED at 190.
2 out of 4 hunks FAILED -- saving rejects to file Makefile.rej


In Makefile.rej I have:
***************
*** 167,176 ****
        ./gentone busy 480 620

  ringtone.h: gentone
        ./gentone ringtone 440 480

  chan_oss.o: chan_oss.c  busy.h ringtone.h

  ifeq (${OSARCH},OpenBSD)
  chan_oss.so: chan_oss.o
        $(CC) $(SOLINK) -o $@ chan_oss.o -lossaudio
--- 166,181 ----
        ./gentone busy 480 620

  ringtone.h: gentone
        ./gentone ringtone 440 480

+ chan_unicall.o: chan_unicall.c
+       $(CC) -c $(CFLAGS) -o chan_unicall.o chan_unicall.c
+
+ chan_unicall.so: chan_unicall.o
+       $(CC) $(SOLINK) -o $@ $< -lunicall -lxml2 -lsupertone -lspandsp -ltiff $(ZAPLIB)
+
  chan_oss.o: chan_oss.c  busy.h ringtone.h

  ifeq (${OSARCH},OpenBSD)
  chan_oss.so: chan_oss.o
        $(CC) $(SOLINK) -o $@ chan_oss.o -lossaudio
***************
*** 185,195 ****

  chan_zap.o: chan_zap.c
        $(CC) -c $(CFLAGS) -o chan_zap.o chan_zap.c

  chan_zap.so: chan_zap.o
-       $(CC) $(SOLINK) -o $@ $<  $(ZAPPRI) $(ZAPR2) -ltonezone

  chan_sip.so: chan_sip.o
        $(CC) $(SOLINK) -o $@ chan_sip.o

  chan_alsa.o: $(ALSA_SRC)
--- 190,200 ----

  chan_zap.o: chan_zap.c
        $(CC) -c $(CFLAGS) -o chan_zap.o chan_zap.c

  chan_zap.so: chan_zap.o
+       $(CC) $(SOLINK) -o $@ $<  $(ZAPPRI) -ltonezone

  chan_sip.so: chan_sip.o
        $(CC) $(SOLINK) -o $@ chan_sip.o

  chan_alsa.o: $(ALSA_SRC)


Im using the follows versions:
asterisk-1.2.10
asterisk-addons-1.2.3
asterisk-sounds-1.2.1
libmfcr2-0.0.3
libpri-1.2.3
libsupertone-0.0.2
libunicall-0.0.3
spandsp-0.0.3
zaptel-1.2.7


The only problem that I see is that I just have the patch file to download for
asterisk-1.1.x (found in http://www.soft-switch.org/downloads/unicall/unicall-0.0.3pre9/asterisk-1.1.x/ )

Anybody have any ideia ?
Thanks
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to