-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Greetings:
Hope you don't mind a question from someone just getting his feet wet :)
First off, if I want Kamailio to act as a SIP router among, say, a group of Asterisk PBXs (meaning, Kamailio will have no user registrations, but just pass SIP messages to and from the Asterisks), would I do this in the least cost routing table or in carrier routes table, or via another method? (assume for the moment that all the PBXs are under my control, these aren't connections outside my organization, no connections to the PSTN).
I figured it would be with lcr, so I tried compiling 3.0.0RC1 with that module removed from the exclude list. I received the following error on 'make install'
make[1]: Entering directory `/usr/local/src/kamailio-3.0.0/kamailio/modules/lcr' make[1]: Leaving directory `/usr/local/src/kamailio-3.0.0/kamailio/modules/lcr' config.mak included make[1]: Entering directory `/usr/local/src/kamailio-3.0.0/kamailio/modules/lcr' gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -m32 - -minline-all-stringops -falign-loops -ftree-vectorize - -fno-strict-overflow -mtune=athlon64 -Wall -DNAME='"kamailio"' - -DVERSION='"3.0.0-rc1"' -DARCH='"i386"' -DOS='linux_' - -DOS_QUOTED='"linux"' -DCOMPILER='"gcc 4.3.2"' -D__CPU_i386 -D__OS_linux - -DSER_VER=3000000 -DCFG_DIR='"/usr/local/etc/kamailio/"' -DPKG_MALLOC - -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP - -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER - -DUSE_DST_BLACKLIST -DUSE_NAPTR -DDBG_QM_MALLOC -DUSE_TLS -DTLS_HOOKS - -DSTATISTICS -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 - -DCC_GCC_LIKE_ASM -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN - -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL - -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DHAVE_EPOLL - -DHAVE_SIGIO_RT -DSIGINFO64_WORKARROUND -DUSE_FUTEX -DHAVE_SELECT - -I/usr/local/include -I/usr/local/include -I/opt/include - -I/usr/sfw/include -DOPENSER_MOD_INTERFACE -DMOD_NAME='"lcr"' -c hash.c - -o hash.o In file included from hash.c:26: lcr_mod.h:34:18: error: pcre.h: No such file or directory In file included from hash.c:26: lcr_mod.h:51: error: expected specifier-qualifier-list before âpcreâ hash.c:34: error: expected declaration specifiers or â...â before âpcreâ hash.c: In function âlcr_hash_table_insertâ: hash.c:56: error: âstruct lcr_infoâ has no member named âfrom_uri_reâ hash.c:56: error: âfrom_uri_reâ undeclared (first use in this function) hash.c:56: error: (Each undeclared identifier is reported only once hash.c:56: error: for each function it appears in.) hash.c:58: error: âstruct lcr_infoâ has no member named âgrp_idâ hash.c:59: error: âstruct lcr_infoâ has no member named âfirst_gwâ hash.c:60: error: âstruct lcr_infoâ has no member named âpriorityâ hash.c:66: error: âstruct lcr_infoâ has no member named ânextâ hash.c: In function âlcr_hash_table_contents_freeâ: hash.c:106: error: âstruct lcr_infoâ has no member named âgrp_idâ hash.c:106: error: âstruct lcr_infoâ has no member named âgrp_idâ hash.c:106: error: âstruct lcr_infoâ has no member named âgrp_idâ hash.c:106: error: âstruct lcr_infoâ has no member named âgrp_idâ hash.c:106: error: âstruct lcr_infoâ has no member named âgrp_idâ hash.c:107: error: âstruct lcr_infoâ has no member named âfrom_uri_reâ hash.c:108: error: âstruct lcr_infoâ has no member named âfrom_uri_reâ hash.c:110: error: âstruct lcr_infoâ has no member named ânextâ make[1]: *** [hash.o] Error 1 make[1]: Leaving directory `/usr/local/src/kamailio-3.0.0/kamailio/modules/lcr' make: *** [install-modules] Error 1
If I leave lcr in the exclude list, I can make/make install, but if I try to add an entry into the lcr table, I get this error:
# kamctl lcr addgw labCM 172.16.59.6 5060 1 2 1 ERROR 1054 (42S22) at line 1: Unknown column 'ping' in 'field list' ERROR: lcr - SQL Error
System info: Kamailio 3.0.0 RC1 from GIT debian 5.0.3 (2.6.26-2-686) gcc -v Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.2-1.1' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs - --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr - --enable-shared --with-system-zlib --libexecdir=/usr/lib - --without-included-gettext --enable-threads=posix --enable-nls - --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 - --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc - --enable-mpfr --enable-targets=all --enable-cld - --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu - --target=i486-linux-gnu Thread model: posix gcc version 4.3.2 (Debian 4.3.2-1.1)
Thank you!