|
View:
New views
14 Messages
—
Rating Filter:
Alert me
|
|
|
routing question-----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! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkrx/CMACgkQQr/gMVyFYySWQgCeJoW2VLWRI85bHdC9ThwnEwLc pWQAoJZVtBEzdRI8+3xBoLnlWJxNXbj/ =Wwjk -----END PGP SIGNATURE----- _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@... http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users |
|
|
Re: routing questionEl Miércoles, 4 de Noviembre de 2009, Andrew Gallo escribió:
> In file included from hash.c:26: > lcr_mod.h:34:18: error: pcre.h: No such file or directory You must install pcre development library. -- Iñaki Baz Castillo <ibc@...> _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@... http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users |
|
|
Re: routing question4 nov 2009 kl. 23.11 skrev Andrew Gallo: > -----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). If you want just to distribute the calls between the servers and have all the Asterisk severs do the same task, then dispatcher is the module you need. If each server has a different task, then you either hard code the dialplan into the configuration file or use one of the dialplan/routing modules. There are several with different flavours, and some of them are designed for a very specific task. If you have a very simple routing plan, you can just store variables (AVP's in Kamailian) in a database table and read them in or use the sql module. Regards /O _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@... http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users |
|
|
Re: routing questionHello,
On 04.11.2009 23:11 Uhr, Andrew Gallo wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > [...] > 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 > and kamctl not updated... Cheers, Daniel -- Daniel-Constantin Mierla * http://www.asipto.com/ _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@... http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users |
|
|
Re: routing questionDaniel-Constantin Mierla writes:
> ping column is no longer in the gw table, probably was removed since 1.5 > and kamctl not updated... as i mentioned earlier, i don't consider ctl a viable option in configuring lcr module. there is simple too many fields in the tables. -- juha _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@... http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users |
|
|
Re: routing questionOn 05.11.2009 11:31 Uhr, Juha Heinanen wrote: > Daniel-Constantin Mierla writes: > > > ping column is no longer in the gw table, probably was removed since 1.5 > > and kamctl not updated... > > as i mentioned earlier, i don't consider ctl a viable option in > configuring lcr module. there is simple too many fields in the tables. > > understand, no problem with that. Is there a place on wiki where you listed the changes in 3.0 since 1.5? There are some, but couldn't find about lcr: http://sip-router.org/wiki/migration/kamailio-tips And more K 3.0 specific: http://www.kamailio.org/dokuwiki/doku.php/install:1.5.x-to-3.0.0 AFAIK, there were updates to table structure in lcr, permissions and maybe carrierroute. We have to collect them to help people migrate to Kamailio 3.0 and sip router. Thanks, Daniel -- Daniel-Constantin Mierla * http://www.asipto.com/ _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@... http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users |
|
|
Re: routing questionDaniel-Constantin Mierla writes:
> Is there a place on wiki where you listed the changes in 3.0 since > 1.5? see http://sip-router.org/wiki/features/new-in-devel -- juha _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@... http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users |
|
|
Re: routing question-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 Daniel-Constantin Mierla wrote: > Hello, > > On 04.11.2009 23:11 Uhr, Andrew Gallo wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> [...] >> 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 >> > ping column is no longer in the gw table, probably was removed since 1.5 > and kamctl not updated... > > Cheers, > Daniel > Thank you folks for the great information. I'll continue to play around and learn :) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkrys7gACgkQQr/gMVyFYyR1hQCfSyfoq5VkdBnEFW4Upc2dAV8+ AhUAn0UB02yLxobBmCDOZdgA8IBX4AT1 =PgU2 -----END PGP SIGNATURE----- _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@... http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users |
|
|
Re: routing question> AFAIK, there were updates to table structure in lcr, permissions and > maybe carrierroute. We have to collect them to help people migrate to > Kamailio 3.0 and sip router. _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@... http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users |
|
|
Re: routing questionDaniel-Constantin Mierla writes:
> I know that page, but doesn't mention anything about removal/addition of > new columns in db structure -- this is what I was looking for. i just added there info also about db changes. -- juha _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@... http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users |
|
|
Re: routing questionOn 05.11.2009 12:05 Uhr, Juha Heinanen wrote: > Daniel-Constantin Mierla writes: > > > Is there a place on wiki where you listed the changes in 3.0 since > > 1.5? > > see http://sip-router.org/wiki/features/new-in-devel > > I know that page, but doesn't mention anything about removal/addition of new columns in db structure -- this is what I was looking for. Daniel -- Daniel-Constantin Mierla * http://www.asipto.com/ _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@... http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users |
|
|
Re: routing questionOn 05.11.2009 12:24 Uhr, Henning Westerholt wrote: > On Donnerstag, 5. November 2009, Daniel-Constantin Mierla wrote: > > AFAIK, there were updates to table structure in lcr, permissions and > > maybe carrierroute. We have to collect them to help people migrate to > > Kamailio 3.0 and sip router. > > > Hi Daniel, > > > the cr database scheme was not changed from 1.5 to 3.0. > > some work on the module and I couldn't be sure what was touched ... Cheers, Daniel -- Daniel-Constantin Mierla * http://www.asipto.com/ _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@... http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users |
|
|
Re: routing questionOn 05.11.2009 12:34 Uhr, Juha Heinanen wrote: > Daniel-Constantin Mierla writes: > > > I know that page, but doesn't mention anything about removal/addition of > > new columns in db structure -- this is what I was looking for. > > i just added there info also about db changes. > > thanks! Did you do some updates to db structure of permissions module? Cheers, Daniel -- Daniel-Constantin Mierla * http://www.asipto.com/ _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@... http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users |
|
|
Re: routing questionDaniel-Constantin Mierla writes:
> thanks! Did you do some updates to db structure of permissions > module? forgot that one. it is now added. -- juha _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@... http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users |
| Free embeddable forum powered by Nabble | Forum Help |