Re: [asterisk-users] libpri error
On Mon, Jul 30, 2012 at 10:50:20AM +, Kamlesh Kumar wrote: when I issue 'make' command, below output comes. [root@localhost libpri-1.4.11.3]# make gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT copy_string.o -MF .copy_string.o.d -MP -c -o copy_string.o copy_string.c [snip] Looks OK. Make is quite noisy when it encounters an error: $ echo something invalid q921.c $ LANG=C make gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT copy_string.o -MF .copy_string.o.d -MP -c -o copy_string.o copy_string.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT pri.o -MF .pri.o.d -MP -c -o pri.o pri.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT q921.o -MF .q921.o.d -MP -c -o q921.o q921.c q921.c:3113:1: error: unknown type name 'something' q921.c:3113:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input make: *** [q921.o] Error 1 $ echo $? 2 Had I not sabotaged the code: $ make gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT copy_string.o -MF .copy_string.o.d -MP -c -o copy_string.o copy_string.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT pri.o -MF .pri.o.d -MP -c -o pri.o pri.c [snip] gcc -shared -Wl,-hlibpri.so.1.4 -o libpri.so.1.4 copy_string.lo pri.lo q921.lo prisched.lo q931.lo pri_aoc.lo pri_cc.lo pri_facility.lo asn1_primitive.lo rose.lo rose_address.lo rose_etsi_aoc.lo rose_etsi_cc.lo rose_etsi_diversion.lo rose_etsi_ect.lo rose_etsi_mwi.lo rose_other.lo rose_q931.lo rose_qsig_aoc.lo rose_qsig_cc.lo rose_qsig_ct.lo rose_qsig_diversion.lo rose_qsig_mwi.lo rose_qsig_name.lo version.lo /sbin/ldconfig -n . ln -sf libpri.so.1.4 libpri.so $ echo $? 0 '$?' (the value of the shell variable named '?') holds the return status of the last command. If it's not 0, it means that this command returned an error. -- Tzafrir Cohen icq#16849755 jabber:tzafrir.co...@xorcom.com +972-50-7952406 mailto:tzafrir.co...@xorcom.com http://www.xorcom.com iax:gu...@local.xorcom.com/tzafrir -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] libpri error
On Monday 30 July 2012, Kamlesh Kumar wrote: Hello, Trying to install libpri version 1.4.11.3 on Centos 5.5. but getting below errors. Please suggest the resolution. That output doesn't look like error messages, but normal compilation output. If there is an actual error stopping it, we need to see the last few lines with the actual error message. Important side question: Have you ever successfully compiled libpri on this machine before? -- AJS Answers come *after* questions. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] libpri error
No, I'm trying first time. thanks,Kamlesh From: asterisk_l...@earthshod.co.uk To: asterisk-users@lists.digium.com Date: Mon, 30 Jul 2012 11:22:54 +0100 Subject: Re: [asterisk-users] libpri error On Monday 30 July 2012, Kamlesh Kumar wrote: Hello, Trying to install libpri version 1.4.11.3 on Centos 5.5. but getting below errors. Please suggest the resolution. That output doesn't look like error messages, but normal compilation output. If there is an actual error stopping it, we need to see the last few lines with the actual error message. Important side question: Have you ever successfully compiled libpri on this machine before? -- AJS Answers come *after* questions. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] libpri error
(Do not write anything before the original message. The proper place for a reply is *after* the thing you are replying to.) On Monday 30 July 2012, Kamlesh Kumar wrote: From: asterisk_l...@earthshod.co.uk To: asterisk-users@lists.digium.com Date: Mon, 30 Jul 2012 11:22:54 +0100 Subject: Re: [asterisk-users] libpri error On Monday 30 July 2012, Kamlesh Kumar wrote: Hello, Trying to install libpri version 1.4.11.3 on Centos 5.5. but getting below errors. Please suggest the resolution. That output doesn't look like error messages, but normal compilation output. If there is an actual error stopping it, we need to see the last few lines with the actual error message. Important side question: Have you ever successfully compiled libpri on this machine before? No, I'm trying first time. thanks,Kamlesh OK, then. What are the *last* few lines you get before it stops? (All the stuff you reproduced before was just normal compiler output. If there was an error at all, it would have been just before compilation failed.) -- AJS Price Engines Ltd. DDI: 01283 707058. -- AJS Answers come *after* questions. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] libpri error
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_etsi_diversion.lo -MF .rose_etsi_diversion.lo.d -MP -c -o rose_etsi_diversion.lo rose_etsi_diversion.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_etsi_ect.lo -MF .rose_etsi_ect.lo.d -MP -c -o rose_etsi_ect.lo rose_etsi_ect.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_other.lo -MF .rose_other.lo.d -MP -c -o rose_other.lo rose_other.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_q931.lo -MF .rose_q931.lo.d -MP -c -o rose_q931.lo rose_q931.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_qsig_aoc.lo -MF .rose_qsig_aoc.lo.d -MP -c -o rose_qsig_aoc.lo rose_qsig_aoc.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_qsig_ct.lo -MF .rose_qsig_ct.lo.d -MP -c -o rose_qsig_ct.lo rose_qsig_ct.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_qsig_diversion.lo -MF .rose_qsig_diversion.lo.d -MP -c -o rose_qsig_diversion.lo rose_qsig_diversion.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_qsig_mwi.lo -MF .rose_qsig_mwi.lo.d -MP -c -o rose_qsig_mwi.lo rose_qsig_mwi.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_qsig_name.lo -MF .rose_qsig_name.lo.d -MP -c -o rose_qsig_name.lo rose_qsig_name.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT version.lo -MF .version.lo.d -MP -c -o version.lo version.c gcc -shared -Wl,-hlibpri.so.1.4 -o libpri.so.1.4 copy_string.lo pri.lo q921.lo prisched.lo q931.lo pri_facility.lo asn1_primitive.lo rose.lo rose_address.lo rose_etsi_aoc.lo rose_etsi_diversion.lo rose_etsi_ect.lo rose_other.lo rose_q931.lo rose_qsig_aoc.lo rose_qsig_ct.lo rose_qsig_diversion.lo rose_qsig_mwi.lo rose_qsig_name.lo version.lo /sbin/ldconfig -n . ln -sf libpri.so.1.4 libpri.so[root@localhost libpri-1.4.11.3]# thanks,Kamlesh To: asterisk-users@lists.digium.com From: asterisk_l...@earthshod.co.uk Date: Mon, 30 Jul 2012 11:49:30 +0100 Subject: Re: [asterisk-users] libpri error (Do not write anything before the original message. The proper place for a reply is *after* the thing you are replying to.) On Monday 30 July 2012, Kamlesh Kumar wrote: From: asterisk_l...@earthshod.co.uk To: asterisk-users@lists.digium.com Date: Mon, 30 Jul 2012 11:22:54 +0100 Subject: Re: [asterisk-users] libpri error On Monday 30 July 2012, Kamlesh Kumar wrote: Hello, Trying to install libpri version 1.4.11.3 on Centos 5.5. but getting below errors. Please suggest the resolution. That output doesn't look like error messages, but normal compilation output. If there is an actual error stopping it, we need to see the last few lines with the actual error message. Important side question: Have you ever successfully compiled libpri on this machine before? No, I'm trying first time. thanks,Kamlesh OK, then. What are the *last* few lines you get before it stops? (All the stuff you reproduced before was just normal compiler output. If there was an error at all, it would have been just before compilation failed.) -- AJS Price Engines Ltd. DDI: 01283 707058. -- AJS Answers come *after* questions. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] libpri error
(Do not write anything before the original message! The proper place for a reply is *after* the thing you are replying to.) On Monday 30 July 2012, Kamlesh Kumar wrote: when I issue 'make' command, below output comes. [root@localhost libpri-1.4.11.3]# make gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT copy_string.o -MF .copy_string.o.d -MP -c -o copy_string.o copy_string.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT pri.o -MF .pri.o.d -MP -c -o pri.o pri.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT q921.o -MF .q921.o.d -MP -c -o q921.o q921.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT prisched.o -MF .prisched.o.d -MP -c -o prisched.o prisched.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT q931.o -MF .q931.o.d -MP -c -o q931.o q931.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT pri_facility.o -MF .pri_facility.o.d -MP -c -o pri_facility.o pri_facility.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT asn1_primitive.o -MF .asn1_primitive.o.d -MP -c -o asn1_primitive.o asn1_primitive.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose.o -MF .rose.o.d -MP -c -o rose.o rose.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_address.o -MF .rose_address.o.d -MP -c -o rose_address.o rose_address.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_etsi_aoc.o -MF .rose_etsi_aoc.o.d -MP -c -o rose_etsi_aoc.o rose_etsi_aoc.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_etsi_diversion.o -MF .rose_etsi_diversion.o.d -MP -c -o rose_etsi_diversion.o rose_etsi_diversion.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_etsi_ect.o -MF .rose_etsi_ect.o.d -MP -c -o rose_etsi_ect.o rose_etsi_ect.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_other.o -MF .rose_other.o.d -MP -c -o rose_other.o rose_other.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_q931.o -MF .rose_q931.o.d -MP -c -o rose_q931.o rose_q931.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_qsig_aoc.o -MF .rose_qsig_aoc.o.d -MP -c -o rose_qsig_aoc.o rose_qsig_aoc.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_qsig_ct.o -MF .rose_qsig_ct.o.d -MP -c -o rose_qsig_ct.o rose_qsig_ct.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_qsig_diversion.o -MF .rose_qsig_diversion.o.d -MP -c -o rose_qsig_diversion.o rose_qsig_diversion.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_qsig_mwi.o -MF .rose_qsig_mwi.o.d -MP -c -o rose_qsig_mwi.o rose_qsig_mwi.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_qsig_name.o -MF .rose_qsig_name.o.d -MP -c -o rose_qsig_name.o rose_qsig_name.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT version.o -MF .version.o.d -MP -c -o version.o version.c ar rcs libpri.a copy_string.o pri.o q921.o prisched.o q931.o pri_facility.o asn1_primitive.o rose.o rose_address.o rose_etsi_aoc.o rose_etsi_diversion.o rose_etsi_ect.o rose_other.o rose_q931.o rose_qsig_aoc.o rose_qsig_ct.o rose_qsig_diversion.o rose_qsig_mwi.o rose_qsig_name.o version.o ranlib libpri.a gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT copy_string.lo -MF .copy_string.lo.d -MP -c -o copy_string.lo copy_string.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT pri.lo -MF .pri.lo.d -MP -c -o pri.lo pri.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT q921.lo -MF .q921.lo.d -MP -c -o q921.lo q921.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT prisched.lo -MF .prisched.lo.d -MP -c -o prisched.lo prisched.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT q931.lo -MF .q931.lo.d -MP -c -o q931.lo q931.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT pri_facility.lo -MF .pri_facility.lo.d -MP -c -o pri_facility.lo pri_facility.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT asn1_primitive.lo -MF .asn1_primitive.lo.d -MP -c -o asn1_primitive.lo asn1_primitive.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose.lo -MF .rose.lo.d -MP -c -o rose.lo rose.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_address.lo -MF .rose_address.lo.d -MP -c -o
Re: [asterisk-users] libpri error
make install gives below output, is it also ok? [root@localhost libpri-1.4.11.3]# make install mkdir -p /usr/lib mkdir -p /usr/include install -m 644 libpri.h /usr/include install -m 755 libpri.so.1.4 /usr/lib #if [ -x /usr/sbin/sestatus ] ( /usr/sbin/sestatus | grep SELinux status: | grep -q enabled); then /sbin/restorecon -v /usr/lib/libpri.so.1.4; fi ( cd /usr/lib ; ln -sf libpri.so.1.4 libpri.so) install -m 644 libpri.a /usr/lib if test $(id -u) = 0; then /sbin/ldconfig -n /usr/lib; fi [root@localhost libpri-1.4.11.3]# thanks,Kamlesh From: asterisk_l...@earthshod.co.uk To: asterisk-users@lists.digium.com Date: Mon, 30 Jul 2012 11:58:44 +0100 Subject: Re: [asterisk-users] libpri error (Do not write anything before the original message! The proper place for a reply is *after* the thing you are replying to.) On Monday 30 July 2012, Kamlesh Kumar wrote: when I issue 'make' command, below output comes. [root@localhost libpri-1.4.11.3]# make gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT copy_string.o -MF .copy_string.o.d -MP -c -o copy_string.o copy_string.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT pri.o -MF .pri.o.d -MP -c -o pri.o pri.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT q921.o -MF .q921.o.d -MP -c -o q921.o q921.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT prisched.o -MF .prisched.o.d -MP -c -o prisched.o prisched.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT q931.o -MF .q931.o.d -MP -c -o q931.o q931.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT pri_facility.o -MF .pri_facility.o.d -MP -c -o pri_facility.o pri_facility.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT asn1_primitive.o -MF .asn1_primitive.o.d -MP -c -o asn1_primitive.o asn1_primitive.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose.o -MF .rose.o.d -MP -c -o rose.o rose.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_address.o -MF .rose_address.o.d -MP -c -o rose_address.o rose_address.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_etsi_aoc.o -MF .rose_etsi_aoc.o.d -MP -c -o rose_etsi_aoc.o rose_etsi_aoc.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_etsi_diversion.o -MF .rose_etsi_diversion.o.d -MP -c -o rose_etsi_diversion.o rose_etsi_diversion.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_etsi_ect.o -MF .rose_etsi_ect.o.d -MP -c -o rose_etsi_ect.o rose_etsi_ect.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_other.o -MF .rose_other.o.d -MP -c -o rose_other.o rose_other.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_q931.o -MF .rose_q931.o.d -MP -c -o rose_q931.o rose_q931.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_qsig_aoc.o -MF .rose_qsig_aoc.o.d -MP -c -o rose_qsig_aoc.o rose_qsig_aoc.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_qsig_ct.o -MF .rose_qsig_ct.o.d -MP -c -o rose_qsig_ct.o rose_qsig_ct.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_qsig_diversion.o -MF .rose_qsig_diversion.o.d -MP -c -o rose_qsig_diversion.o rose_qsig_diversion.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_qsig_mwi.o -MF .rose_qsig_mwi.o.d -MP -c -o rose_qsig_mwi.o rose_qsig_mwi.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_qsig_name.o -MF .rose_qsig_name.o.d -MP -c -o rose_qsig_name.o rose_qsig_name.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT version.o -MF .version.o.d -MP -c -o version.o version.c ar rcs libpri.a copy_string.o pri.o q921.o prisched.o q931.o pri_facility.o asn1_primitive.o rose.o rose_address.o rose_etsi_aoc.o rose_etsi_diversion.o rose_etsi_ect.o rose_other.o rose_q931.o rose_qsig_aoc.o rose_qsig_ct.o rose_qsig_diversion.o rose_qsig_mwi.o rose_qsig_name.o version.o ranlib libpri.a gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT copy_string.lo -MF .copy_string.lo.d -MP -c -o copy_string.lo copy_string.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT pri.lo -MF .pri.lo.d -MP -c -o pri.lo pri.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT q921.lo -MF .q921.lo.d -MP -c -o q921.lo q921.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT prisched.lo -MF .prisched.lo.d
Re: [asterisk-users] libpri error??
Try adding resetinterval = never here. The default is to reset any idle channels every 3600 seconds. Unfortunately, if a channel is being reset just as an incoming call arrives, there is a chance that the channel will get stuck in a resetting state and block any further use of that channel. Thanks, I'll give this a shot. This has been working very well for us so far. At least on the TELCO trunk. Today we have a new problem. The Iwatsu legacy phone system connected on span 2 and 3 is now unable to grab an outbound channel on span 3. Inbound calls are OK. Iwatsu is configured to dial descending, Asterisk dials ascending. [Mar 30 11:26:14] DEBUG[7643] chan_dahdi.c: Span 3: SETUP requested unavailable channel 0/23. Attempting to renegotiate. This channel, DAHDI/71-1, is not shown as in use. Here is the call debug log: == [Mar 30 11:26:14] VERBOSE[7643] logger.c: Protocol Discriminator: Q.931 (8) len=32 [Mar 30 11:26:14] VERBOSE[7643] logger.c: TEI=0 Call Ref: len= 2 (reference 1/0x1) (Sent from originator) [Mar 30 11:26:14] VERBOSE[7643] logger.c: Message Type: SETUP (5) [Mar 30 11:26:14] VERBOSE[7643] logger.c: [04 03 90 90 a2] [Mar 30 11:26:14] VERBOSE[7643] logger.c: Bearer Capability (len= 5) [ Ext: 1 Coding-Std: 0 Info transfer capability: 3.1kHz audio (16) [Mar 30 11:26:14] VERBOSE[7643] logger.c: Ext: 1 Trans mode/rate: 64kbps, circuit-mode (16) [Mar 30 11:26:14] VERBOSE[7643] logger.c: User information layer 1: u-Law (34) [Mar 30 11:26:14] VERBOSE[7643] logger.c: [18 03 a9 83 97] [Mar 30 11:26:14] VERBOSE[7643] logger.c: Channel ID (len= 5) [ Ext: 1 IntID: Implicit Other(PRI) Spare: 0 Exclusive Dchan: 0 [Mar 30 11:26:14] VERBOSE[7643] logger.c:ChanSel: As indicated in following octets [Mar 30 11:26:14] VERBOSE[7643] logger.c:Ext: 1 Coding: 0 Number Specified Channel Type: 3 [Mar 30 11:26:14] VERBOSE[7643] logger.c:Ext: 1 Channel: 23 Type: NET] [Mar 30 11:26:14] VERBOSE[7643] logger.c: [6c 05 00 80 33 39 39] [Mar 30 11:26:14] VERBOSE[7643] logger.c: Calling Party Number (len= 7) [ Ext: 0 TON: Unknown Number Type (0) NPI: Unknown Number Plan (0) [Mar 30 11:26:14] VERBOSE[7643] logger.c: Presentation: Presentation permitted, user number not screened (0) 'XXX' ] [Mar 30 11:26:14] VERBOSE[7643] logger.c: [70 08 80 35 37 36 36 38 34 39] [Mar 30 11:26:14] VERBOSE[7643] logger.c: Called Party Number (len=10) [ Ext: 1 TON: Unknown Number Type (0) NPI: Unknown Number Plan (0) 'XXX6849' ] [Mar 30 11:26:14] VERBOSE[7643] logger.c: -- Making new call for cref 1 [Mar 30 11:26:14] VERBOSE[7643] logger.c: Received message for call 0x8c925a8 on link 0xb7dcf194 TEI/SAPI 0/0 [Mar 30 11:26:14] VERBOSE[7643] logger.c: -- Processing Q.931 Call Setup [Mar 30 11:26:14] VERBOSE[7643] logger.c: -- Processing IE 4 (cs0, Bearer Capability) [Mar 30 11:26:14] VERBOSE[7643] logger.c: -- Processing IE 24 (cs0, Channel ID) [Mar 30 11:26:14] VERBOSE[7643] logger.c: -- Processing IE 108 (cs0, Calling Party Number) [Mar 30 11:26:14] VERBOSE[7643] logger.c: -- Processing IE 112 (cs0, Called Party Number) [Mar 30 11:26:14] VERBOSE[7643] logger.c: q931.c:8515 post_handle_q931_message: Call 1 enters state 6 (Call Present). Hold state: Idle [Mar 30 11:26:14] DEBUG[7643] chan_dahdi.c: Span 3: SETUP requested unavailable channel 0/23. Attempting to renegotiate. [Mar 30 11:26:14] VERBOSE[7643] logger.c: q931.c:7004 q931_hangup: Hangup other cref:1 [Mar 30 11:26:14] VERBOSE[7643] logger.c: q931.c:6761 __q931_hangup: ourstate Call Present, peerstate Call Initiated, hold-state Idle [Mar 30 11:26:14] VERBOSE[7643] logger.c: q931.c:6252 q931_release_complete: Call 1 enters state 0 (Null). Hold state: Idle [Mar 30 11:26:14] VERBOSE[7643] logger.c: [Mar 30 11:26:14] VERBOSE[7643] logger.c: DL-DATA request [Mar 30 11:26:14] VERBOSE[7643] logger.c: Protocol Discriminator: Q.931 (8) len=9 [Mar 30 11:26:14] VERBOSE[7643] logger.c: TEI=0 Call Ref: len= 2 (reference 1/0x1) (Sent to originator) [Mar 30 11:26:14] VERBOSE[7643] logger.c: Message Type: RELEASE COMPLETE (90) [Mar 30 11:26:14] VERBOSE[7643] logger.c: TEI=0 Transmitting N(S)=89, window is open V(A)=89 K=7 [Mar 30 11:26:14] VERBOSE[7643] logger.c: [Mar 30 11:26:14] VERBOSE[7643] logger.c: Protocol Discriminator: Q.931 (8) len=9 [Mar 30 11:26:14] VERBOSE[7643] logger.c: TEI=0 Call Ref: len= 2 (reference 1/0x1) (Sent to originator) [Mar 30 11:26:14] VERBOSE[7643] logger.c: Message Type: RELEASE COMPLETE (90) [Mar 30 11:26:14] VERBOSE[7643] logger.c: [08 02 81 ac] [Mar 30 11:26:14] VERBOSE[7643] logger.c: Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Private network serving the local user (1) [Mar 30 11:26:14] VERBOSE[7643] logger.c: Ext: 1
Re: [asterisk-users] libpri error??
snip /etc/asterisk/chan_dahdi.conf == ;autogenerated by /usr/sbin/wancfg_dahdi do not hand edit ;autogenrated on 2012-02-29 ;Dahdi Channels Configurations ;For detailed Dahdi options, view /etc/asterisk/chan_dahdi.conf.bak [trunkgroups] [channels] context=default usecallerid=yes hidecallerid=no callwaiting=yes usecallingpres=yes callwaitingcallerid=yes threewaycalling=yes transfer=yes canpark=yes cancallforward=yes callreturn=yes echocancel=yes echocancelwhenbridged=yes relaxdtmf=yes rxgain=0.0 txgain=0.0 group=1 callgroup=1 pickupgroup=1 immediate=no Try adding resetinterval = never here. The default is to reset any idle channels every 3600 seconds. Unfortunately, if a channel is being reset just as an incoming call arrives, there is a chance that the channel will get stuck in a resetting state and block any further use of that channel. A quick look at your traces indicates that your channels are already in use so an incoming call is cleared with a cause 44. This can happen if there is a call collision or the channel is stuck. I would recommend that you minimize call collisions by making outbound calls pick channels from the opposite end of the channel range as the network. This is usually by using uppercase G in the Dial(DAHDI/G1/number) to the first available channel from the upper end of the channel range. Richard ; Required for Embarq / CenturyTel pridialplan=unknown prilocaldialplan=local priindication=outofband priexclusive=no ;Sangoma A104 port 1 [slot:4 bus:9 span:1] wanpipe1 switchtype=national context=from-pstn group=0 echocancel=yes signalling=pri_cpe channel =1-23 ;Sangoma A104 port 2 [slot:4 bus:9 span:2] wanpipe2 switchtype=national context=from-internal group=1 echocancel=yes signalling=pri_net channel =25-47 ;Sangoma A104 port 3 [slot:4 bus:9 span:3] wanpipe3 switchtype=national context=from-internal group=2 echocancel=yes signalling=pri_net channel =49-71 ;Sangoma A104 port 4 [slot:4 bus:9 span:4] wanpipe4 switchtype=national context=from-internal group=3 echocancel=yes signalling=pri_net channel =73-95 == snip Installed Software == asterisk-1.4.43-1.C4.SC asterisk-addons-1.4.13-1.C4.LSE asterisk-core-sounds-en-wav-1.4.21-1.C4.SC asterisk-devel-1.4.43-1.C4.SC asterisk-extra-sounds-en-gsm-1.4.11-2.C4.LSE asterisk-libpri-2283-1svn.C4.SC asterisk-perl-1.01-1.C4.LSE dahdi-linux-2.6.0-2.6.9_103.plus.c4.LSE.1smp_3.C4.SC dahdi-tools-2.6.0-2.C4.SC iaxmodem-static-1.2.0-1.C4.SC kernel-smp-2.6.9-103.plus.c4.LSE.1 kernel-utils-2.4-23.el4 wanpipe-3.5.25-1.SC wanpipe-modules-3.5.25-kernel.2.6.9.103.plus.c4.LSE.1smp.dahdi.2.6.0_1.SC == -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] libpri error??
Try adding resetinterval = never here. The default is to reset any idle channels every 3600 seconds. Unfortunately, if a channel is being reset just as an incoming call arrives, there is a chance that the channel will get stuck in a resetting state and block any further use of that channel. Thanks, I'll give this a shot. A quick look at your traces indicates that your channels are already in use so an incoming call is cleared with a cause 44. This can happen if there is a call collision or the channel is stuck. I would recommend that you minimize call collisions by making outbound calls pick channels from the opposite end of the channel range as the network. This is usually by using uppercase G in the Dial(DAHDI/G1/number) to the first available channel from the upper end of the channel range. Our Telco PRI is set inbound and asterisk set descending so we should be good there. I'll double check the Iwatsu PRI's. Thank you, -- Andrew McRory Sayso Communications, Inc. 2850 Industrial Plaza Tallahassee, Florida 32301 Office) 850-224-5737 Mobile) 850-778-3206 -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users