[SR-Users] Kamalio & Asterisk integration erroneous behavior, setup issue

Aristeidis Tsitras tsitras at gmail.com
Fri Aug 30 09:53:21 CEST 2019


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 at 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 at 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 at 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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190830/ec134d9a/attachment.html>
-------------- next part --------------
    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');
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sip.conf
Type: application/octet-stream
Size: 1090 bytes
Desc: not available
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190830/ec134d9a/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kamailio.cfg
Type: application/octet-stream
Size: 26371 bytes
Desc: not available
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190830/ec134d9a/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: extensions.conf
Type: application/octet-stream
Size: 1720 bytes
Desc: not available
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190830/ec134d9a/attachment-0002.obj>


More information about the sr-users mailing list