Asterisk 1.6.2.18 error on make

Hi,
I’m quite new at asterisk so please bare with me.

I have a fedora 14 system and I’m trying to compile Asterisk.

I have downlaoded the following:
asterisk 1.6.2.18
dahdi-linux-complete-2.4.1.2+2.4.1
libss7-1.0.2
asterisk-addons-1.6.2.18

I have configure, build and make without problems the dahdi service/modules, also I compile and installed libss7
Now I’m trying to compile asterisk but I keep getting this error:


   [LD] chan_local.o -> chan_local.so
   [CC] chan_dahdi.c -> chan_dahdi.o
chan_dahdi.c:965:24: error: field ‘call_level’ has incomplete type
chan_dahdi.c: In function ‘dahdi_call’:
chan_dahdi.c:3609:19: error: ‘DAHDI_CALL_LEVEL_SETUP’ undeclared (first use in this function)
chan_dahdi.c:3609:19: note: each undeclared identifier is reported only once for each function it appears in
chan_dahdi.c: In function ‘dahdi_hangup’:
chan_dahdi.c:4604:19: error: ‘DAHDI_CALL_LEVEL_IDLE’ undeclared (first use in this function)
chan_dahdi.c: In function ‘dahdi_answer’:
chan_dahdi.c:4923:24: error: ‘DAHDI_CALL_LEVEL_CONNECT’ undeclared (first use in this function)
chan_dahdi.c: In function ‘dahdi_indicate’:
chan_dahdi.c:7584:24: error: ‘DAHDI_CALL_LEVEL_ALERTING’ undeclared (first use in this function)
chan_dahdi.c:7632:25: error: ‘DAHDI_CALL_LEVEL_PROCEEDING’ undeclared (first use in this function)
chan_dahdi.c: In function ‘ss7_start_call’:
chan_dahdi.c:11703:19: error: ‘DAHDI_CALL_LEVEL_PROCEEDING’ undeclared (first use in this function)
chan_dahdi.c:11706:19: error: ‘DAHDI_CALL_LEVEL_SETUP’ undeclared (first use in this function)
chan_dahdi.c:11715:19: error: ‘DAHDI_CALL_LEVEL_IDLE’ undeclared (first use in this function)
chan_dahdi.c: In function ‘ss7_linkset’:
chan_dahdi.c:11970:26: error: ‘DAHDI_CALL_LEVEL_ALERTING’ undeclared (first use in this function)
chan_dahdi.c:12212:26: error: ‘DAHDI_CALL_LEVEL_PROCEEDING’ undeclared (first use in this function)
chan_dahdi.c:12324:26: error: ‘DAHDI_CALL_LEVEL_CONNECT’ undeclared (first use in this function)
make[1]: *** [chan_dahdi.o] Error 1
make: *** [channels] Error 2

I’ve googled quite a bit but I have not been able to find any clue about the problem

Any help will more than appreciate.

Cheers

Why are you trying to compile a version that hasn’t been supported since April 21st? I assume this is a new isntall.

Indeed is a new install. My bad then, I assumed that since is the version featured on the download page of asterisk.org for the 1.6 branch it was the current.

I’ll try to get whatever is available in svn then. Never the less, anyone with any clue?
I don’t like to have unsolved puzzles when I can help it.

Thank you.

Interesting. The change log indicates that 1.6.2.18 was dubbed an official release April 25, 2011 so the problem must be elsewhere.

Digging into the code a bit it looks like the various DAHDI_CALL_LEVEL_ defines occur in a block of code that requires libpri. That is, the block starts with “#ifdef HAVE_PRI”.

I installed libpri-dev and the problem went away.

-TGrip

Wow, thanks so much I’ll give it a try.

In the mean time I’ve got 1.8 running, never the less I don’t like leave things hanging.

I’ll let you know.

Thanks again.