[Asterisk-Users] Latest CVS causes compile time error

James Golovich james at wwnet.net
Tue Mar 25 11:37:50 MST 2003


Bad form to follow up ones on post I know, but it looks like an #ifdef
ZAPATA_PRI was left out of chan_zap.c so if you don't have libpri
installed.

An untested fix is to change (in can_zap.c about like 677 in function
zt_digit):

                if (p->sig == SIG_PRI && ast->_state == AST_STATE_DIALING)
{
                        pri_information(p->pri->pri,p->call,digit);
                } else {

to:

                if (p->sig == SIG_PRI && ast->_state == AST_STATE_DIALING)
{
#ifdef ZAPATA_PRI
                        pri_information(p->pri->pri,p->call,digit);
#endif
                } else {


James

On Tue, 25 Mar 2003, James Golovich wrote:

> There was a change to libpri yesterday.  You need to updated your libpri
> and recompile
> 
> James
> 
> 
> On Tue, 25 Mar 2003, Lenny Tropiano / asterisk.org Mailing list wrote:
> 
> > gcc -shared -Xlinker -x -o chan_phone.so chan_phone.o
> > gcc -c -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g  -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE  -O6 -march=i586  -DASTERISK_VERSION=\"CVS-03/25/03-10:49:30\" -DINSTALL_PREFIX=\"\" -DASTETCDIR=\"/etc/asterisk\" -DASTLIBDIR=\"/usr/lib/asterisk\" -DASTVARLIBDIR=\"/var/lib/asterisk\" -DASTVARRUNDIR=\"/var/run\" -DASTSPOOLDIR=\"/var/spool/asterisk\" -DASTLOGDIR=\"/var/log/asterisk\" -DASTCONFPATH=\"/etc/asterisk/asterisk.conf\" -DASTMODDIR=\"/usr/lib/asterisk/modules\" -DASTAGIDIR=\"/var/lib/asterisk/agi-bin\"    -Wno-missing-prototypes -Wno-missing-declarations     -DIAX_TRUNKING -DCRYPTO  -o chan_zap.o chan_zap.c
> > chan_zap.c: In function `zt_digit':
> > chan_zap.c:677: warning: implicit declaration of function `pri_information'
> > chan_zap.c:677: structure has no member named `pri'
> > chan_zap.c:677: structure has no member named `call'
> > chan_zap.c: In function `zt_call':
> > chan_zap.c:1144: warning: unused variable `s'
> > make[1]: *** [chan_zap.o] Error 1
> > 
> > Yes, I have the latest "zaptel" too.  Any ideas?
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> 




More information about the asterisk-users mailing list