Hello,
On 6/21/11 11:03 AM, vaad.fabi@gmail.com wrote:
Hello all,
I want to use realtime architecture kamailio 3.1 + asterisk 1.6.2 described at http://kb.asipto.com/asterisk:realtime:kamailio-3.1.x-asterisk-1.6.2-astdb, but use it with another softswitch (it also use mysql db for configuration). If it possible please answer for several questions:
- What is "#!define WITH_ASTERISK" option doing ? Does it only use for:
or there are some else jobs ?
- load uac module
- read login\passw table info
- some routing cases
Maybe there is some description for "#!define WITH_ASTERISK" ?
#!define XYZ - is a config preprocessor directive that can be used to set a value for a token or enable/disable parts of configuration file.
In this particular case if #!define WITH_ASTERISK is not in the config, all the parts between:
#!ifdef WITH_ASTERISK ... #!endif
will be ignored by kamailio.
- What else fields of asterisk realtime table (except
username\sippasswd) kamailio uses for integration ?
This two are enough for authentication.
- From integration manual: " CREATE TABLE version ( table_name VARCHAR(32) NOT NULL, table_version INT UNSIGNED DEFAULT 0 NOT NULL ); INSERT INTO version (table_name, table_version) VALUES
('sipusers','6'); " For what purposes this table used ? How to change it for using with another softswitch ?
This table is required by kamailio to check the version of tables used internally - default one for this case would be subscriber table, but since it connects to asterisk database and uses instead the sipusers table, it has to be able to see that the version for sipusers table structure is 6.
Cheers, Daniel