All working, first draft of instructions
This commit is contained in:
40
instructions.txt
Normal file
40
instructions.txt
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
1. Install kamailio
|
||||||
|
configure kamailio.cfg
|
||||||
|
# Module parameters
|
||||||
|
db_url for dispatcher
|
||||||
|
ds_ping_from for dispatcher
|
||||||
|
reg_contact_addr for uac
|
||||||
|
reg_db_url for uac
|
||||||
|
|
||||||
|
# Variables in request route section
|
||||||
|
$avp(customerpbxip)="10.0.5.4";
|
||||||
|
$avp(sip1)="10.0.5.7";
|
||||||
|
$avp(sip2)="10.0.5.5";
|
||||||
|
|
||||||
|
#TRUNKAUTH variables
|
||||||
|
$avp(auser) = "kam";
|
||||||
|
$avp(apass) = "kam";
|
||||||
|
2. Install rtpengine
|
||||||
|
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
|
||||||
|
- configure outbound destination server parameters in uac_reg table using the examples inside
|
||||||
|
4. Configure syslog to log call CDRS into separate file
|
||||||
|
/etc/syslog.conf
|
||||||
|
local2.* -/var/log/cdrs.log
|
||||||
|
|
||||||
|
Example data:
|
||||||
|
10.0.5.4 ip of your main SIP server
|
||||||
|
10.0.5.6 ip of kamailio voip proxy
|
||||||
|
10.0.5.5 ip of secondary SIP server from your provider
|
||||||
|
10.0.5.7 ip of primary SIP server form your provider
|
||||||
|
registration user/pass is kam/kam
|
||||||
|
|
||||||
|
|
||||||
|
Check dispatcher status for routing:
|
||||||
|
kamcmd dispatcher.list
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -20,15 +20,10 @@ loadmodule "acc.so"
|
|||||||
loadmodule "dialog.so"
|
loadmodule "dialog.so"
|
||||||
loadmodule "db_flatstore.so"
|
loadmodule "db_flatstore.so"
|
||||||
|
|
||||||
# Lines to configure:
|
|
||||||
# uac reg_contact_addr
|
|
||||||
# 3 avps
|
|
||||||
|
|
||||||
# Global parameters
|
# Global parameters
|
||||||
cfgengine "native"
|
cfgengine "native"
|
||||||
fork=yes
|
fork=yes
|
||||||
children=4
|
children=4
|
||||||
debug=3
|
|
||||||
log_facility=LOG_LOCAL0
|
log_facility=LOG_LOCAL0
|
||||||
log_prefix="{$mt $hdr(CSeq) $ci} "
|
log_prefix="{$mt $hdr(CSeq) $ci} "
|
||||||
# RTPProxy settings
|
# RTPProxy settings
|
||||||
|
|||||||
Reference in New Issue
Block a user