Browse Source

KAZOO-1513: tweaks

3.17
karl anderson 12 years ago
parent
commit
299768d33c
2 changed files with 43 additions and 40 deletions
  1. +42
    -39
      kamailio/local.cfg
  2. +1
    -1
      kamailio/websockets-role.cfg

+ 42
- 39
kamailio/local.cfg View File

@ -6,16 +6,13 @@ debug = L_INFO
################################################################################
## ROLES
################################################################################
## NOTE: Remove all but the last '#' to
## enable the named roled
## Enabled Roles
#!trydef DISPATCHER-ROLE
#!trydef NAT-TRAVERSAL-ROLE
#!trydef REGISTRAR-ROLE
#!trydef PRESENCE-ROLE
## Disabled Roles
## Disabled Roles - remove all but the last '#' to enable
# # #!trydef TRAFFIC-FILTER-ROLE
# # #!trydef WEBSOCKETS-ROLE
# # #!trydef TLS-ROLE
@ -23,42 +20,56 @@ debug = L_INFO
################################################################################
## SERVER INFORMATION
################################################################################
## NOTE: Change this to your servers hostname
## CHANGE "kamailio.2600hz.com" TO YOUR SERVERS HOSTNAME
#!substdef "!MY_HOSTNAME!kamailio.2600hz.com!g"
## NOTE: Change this to the IP address Kamailio
## should use, usually your public IP. If
## you need to listen on addtional ports or
## IPs add them in "Additional Binding Parameters".
## CHANGE "127.0.0.1" TO YOUR SERVERS IP ADDRESS
## Usually your public IP. If you need
## to listen on addtional ports or IPs
## add them in "BINDINGS" at the bottom.
#!substdef "!MY_IP_ADDRESS!127.0.0.1!g"
## NOTE: Change this to the AMQP URL of the
## primary RabbitMQ server in the zone
## that this server will service.
## CHANGE "kazoo://guest:guest@127.0.0.1:5672" TO THE AMQP URL
## This should be the primary RabbitMQ server
## in the zone that this server will service.
#!substdef "!MY_AMQP_URL!kazoo://guest:guest@127.0.0.1:5672!g"
## NOTE: This parameter is only required if you are
## using websockets. This value must be present
## in the HTTP Origin header on a new websocket
## request or it will be rejected.
## This parameter is only required if you are using websockets
## This value must be present in the HTTP
## Origin header on a new websocket request
## or it will be rejected. If you remove
## it completely the validation will be disabled.
#!substdef "!MY_WEBSOCKET_DOMAIN!2600hz.com!g"
################################################################################
## UDP PARAMETERS
################################################################################
## NOTE: This parameter is OPTIONAL, but if your
## UDP packets are dropped due to MTU you can
## try uncomment this option. However, you
## MUST match this to your network adapter!
## If they do not match, all UDP packets over
## this limit WILL FAIL!
## This parameter is OPTIONAL
## If large UDP packets are dropped by the
## interface try uncommenting this option.
## However, you MUST match this to your
## network adapter! If they do not match,
## all UDP packets over this limit WILL FAIL!
## E.g.: Add MTU=1472 to the /etc/sysconfig/network-scripts/XXX
# udp4_raw_mtu = 1472
################################################################################
## BINDINGS
################################################################################
## NOTE: You should not have to change these definitions
## This parameter is OPTIONAL.
## It will try to locate outbound interface
## on multihomed host. By default forward
## requests use the incoming socket disregarding
## the destination location. When enabled Kamailio
## will select a socket that can reach the
## destination. This reduces performance.
mhomed=0
## YOU SHOULD NOT HAVE TO CHANGE THESE!
## By setting MY_IP_ADDRESS above these will resolve
## to the proper bindings. These are here
## for those with complex layouts who know
## what they are doing :)
#!substdef "!UDP_SIP!udp:MY_IP_ADDRESS:5060!g"
#!substdef "!TCP_SIP!tcp:MY_IP_ADDRESS:5060!g"
#!substdef "!TLS_SIP!tls:MY_IP_ADDRESS:5061!g"
@ -66,23 +77,15 @@ debug = L_INFO
#!substdef "!TCP_AGL_SIP!tcp:MY_IP_ADDRESS:7000!g"
#!substdef "!TLS_AGL_SIP!tls:MY_IP_ADDRESS:7001!g"
#!substdef "!TCP_WS!tcp:MY_IP_ADDRESS:8080!g"
#!substdef "!TLS_WS!tcp:MY_IP_ADDRESS:8081!g"
## NOTE: This parameter is OPTIONAL. It will try to
## locate outbound interface on multihomed host.
## By default forward requests use the incoming
## socket disregarding the destination location.
## When enabled Kamailio will select a socket that
## can reach the destination. This reduces performance.
mhomed=0
#!substdef "!TLS_WSS!tls:MY_IP_ADDRESS:8443!g"
## NOTE: These parameters are OPTIONAL.
## The configuration will listen on 5060 and 7000
## of MY_IP_ADDRESS (configured above). If you
## have websockets role enabled it will
## listen on 8080. If you need additional ports
## or IPs add listen parameters bellow.
## E.g.: listen=udp:4.2.2.2:5060
## YOU SHOULD NOT HAVE TO CHANGE THESE!
## This will bind the default SIP listeners
## as determined above. The tls-role and
## websocket-role will use the appropriate
## definitions if enabled. These are here
## for those with complex layouts who know
## what they are doing :)
listen=UDP_SIP
listen=TCP_SIP
listen=UDP_AGL_SIP


+ 1
- 1
kamailio/websockets-role.cfg View File

@ -2,7 +2,7 @@ tcp_accept_no_cl=yes
listen=TCP_WS
#!ifdef TLS-ROLE
listen=TLS_WS
listen=TLS_WSS
#!endif
######## Generic Hash Table container in shared memory ########


Loading…
Cancel
Save