new to the area and trying to setup Kamailio with Asterisk in a single
machine. All users will register to Kamailio's port and in case of need for
media, it will be forwarded to Asterisk, that is my intention. All of my
work is based on the following link
https://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb.
Here is what i have done:

   - Debian 8, 64 bit machine with mysql and odbc
   -







*root@kamast: ~ $ lsb_release -a No LSB modules are available. Distributor
   ID: Debian Description:    Debian GNU/Linux 8.11 (jessie) Release:
    8.11 Codename:       jessie root@kamast: ~ $ uname -a Linux kamast
   3.16.0-10-amd64 #1 SMP Debian 3.16.72-1 (2019-08-13) x86_64 GNU/Linux
   root@kamast: ~ $  *
   - Kamailio 5.2 installed from Kamailio's deb repository
   - Asterisk 13LTS installed from source
   - Used the same passwords such as kamailiorw and asterisk_password,
   since this is a test system, for proof of concept.

I did import to the mysql>asterisk database 3 users 2200, 2201 and 2202.
Then created in sip.conf the same 3 users with the same credentials. Then
on 3 PCs i used softphones (Jitsi, Zoiper) and registered each account to a
softphone. Problems:

   - Cannot see the users in the Asterisk's cli, sip show peers
   - I can see users only in Kamailio with kamctl ul show
   - A call between the extensions goes to voicemail. It never reaches the
   other destination eg 2200 calls 2201 and in Asterisk's console i am getting
   a message that 2201 is absent and it goes to voicemail. The same with any
   other extension.

Attached you can find:

   1. Kamailio.cfg
   2. Asterisk's sip.conf
   3. Asterisk's extension.conf
   4. The import that i have done to mysql for the user creation.


I would appreciate if someone could point me to the error and help me fix
it please?
    INSERT INTO sipusers (name, defaultuser, host, sippasswd, fromuser, 
fromdomain, mailbox)
      VALUES ('2200', '2200', 'dynamic', '2200', '2200', '192.168.1.220', 
'2200');
    INSERT INTO sipusers (name, defaultuser, host, sippasswd, fromuser, 
fromdomain, mailbox)
      VALUES ('2201', '2201', 'dynamic', '2201', '2201', '192.168.1.220', 
'2201');
    INSERT INTO sipusers (name, defaultuser, host, sippasswd, fromuser, 
fromdomain, mailbox)
      VALUES ('2202', '2202', 'dynamic', '2202', '2202', '192.168.1.220', 
'2202');
    INSERT INTO sipregs(name) VALUES('2200');
    INSERT INTO sipregs(name) VALUES('2201');
    INSERT INTO sipregs(name) VALUES('2202');
    INSERT INTO voicemail(context, mailbox, password) VALUES ('default', 
'2200', '1234');
    INSERT INTO voicemail(context, mailbox, password) VALUES ('default', 
'2201', '1234');
    INSERT INTO voicemail(context, mailbox, password) VALUES ('default', 
'2202', '1234');

Attachment: sip.conf
Description: Binary data

Attachment: kamailio.cfg
Description: Binary data

Attachment: extensions.conf
Description: Binary data

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to