Update instructions.txt

Latest version
This commit is contained in:
2024-10-18 08:31:23 +02:00
parent b2271f6323
commit b0e2998bb1

View File

@@ -1,31 +1,56 @@
1. Install kamailio 1. Install all the software
- configure kamailio.cfg apt-get install $(cat installed_packages.txt)
# Module parameters 2. Configure database
db_url for dispatcher 2.1 mysql server config:
ds_ping_from for dispatcher create database kamailio;
reg_contact_addr for uac create USER 'kamy'@'%' IDENTIFIED BY 'password';
reg_db_url for uac GRANT ALL PRIVILEGES ON kamailio.* TO 'kamy'@'%';
flush privileges;
exit;
2.2 Configure and import database:
update sql database file with text editor: kamailio.sql
lines @481
lines @1831
mysql -ppassword kamailio < kamailio.sql
# Variables in request route section 3. Copy and configure kamailio.cfg
$avp(customerpbxip)="10.0.5.4"; 3.1 Module parameters
$avp(sip1)="10.0.5.7"; Lines 32 and 39
$avp(sip2)="10.0.5.5"; db_url for dispatcher
ds_ping_from for dispatcher
Lines 44 and 45
reg_contact_addr for uac
reg_db_url for uac
Line 61
db_url for acc module
#TRUNKAUTH variables
$avp(auser) = "kam";
$avp(apass) = "kam";
- configure kamctlrc file for db access 3.2 Variables in request route section
Lines 84-86
$avp(customerpbxip)="10.0.5.4";
$avp(sip1)="10.0.5.7";
$avp(sip2)="10.0.5.5";
2. Install rtpengine 3.3 TRUNKAUTH variables
Lines 170 and 171
$avp(auser) = "kam";
$avp(apass) = "kam";
4. Configure kamtcl -> edit kamctlrc file
uncomment lines 18,21,24,27,33,36
configure lines 33 and 36
5. Configure rtpengine
- copy config file from this repository - copy config file from this repository
3. Install mysql server (or use remote one)
- load database dump from this repository, example data is allready inside table uacreg 6. Configure syslog to log call CDRS into separate file
- configure outbound destination server parameters in uac_reg table using the examples inside - /etc/syslog.conf /add these lines at the end
- configure dispatcher targets for outbound call routing in dispatcher table local2.* -/var/log/cdr.log
4. Configure syslog to log call CDRS into separate file local0.* -/var/log/kamailio.log
- /etc/syslog.conf 7. Reboot server all should be working
local2.* -/var/log/cdrs.log open sngrep in one window and in another:
systemctl stop kamailio
systemctl start kamailio
Register messages should be visible.
Example data: Example data:
10.0.5.4 ip of your main SIP server 10.0.5.4 ip of your main SIP server
@@ -41,4 +66,3 @@ kamcmd dispatcher.list