Skip to content

Commit

Permalink
dev dispatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinnguyenai committed Sep 6, 2021
1 parent 6924798 commit 5f3a370
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
21 changes: 17 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,24 @@ version: '2.3'

services:
asterisk:
image: andrius/asterisk:debian-15-current
image: fgst/asterisk:base
cap_add:
- sys_ptrace # Only here to help testing
- net_admin # Allow NFT, used by AutoBan
- net_raw # Allow NFT, used by AutoBan
environment:
- SYSLOG_LEVEL=${SYSLOG_LEVEL-4} # Logging
- HOSTNAME=${TELE_SRV-tele}.${DOMAIN-docker.localhost}
- PULSE_SERVER=unix:/run/pulse/socket # Use host audio
- PULSE_COOKIE=/run/pulse/cookie # Use host audio
- WEBSMSD_PORT=${WEBSMSD_PORT-80} # WEBSMSD internal port
volumes:
- tele_conf:/srv # Persistent storage
- ./pulse:/run/pulse:rshared # Use host audio
- /etc/localtime:/etc/localtime:ro # Use host timezone
deploy:
mode: replicated
replicas: 1
ports:
- "5060:5060"
replicas: 3
networks:
local:
aliases:
Expand Down Expand Up @@ -57,3 +69,4 @@ networks:
volumes:
asterisk_conf:
asterisk_spool:
tele_conf:
4 changes: 3 additions & 1 deletion kamailio/kamailio.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,15 @@ request_route {
route(PRESENCE);

# handle registrations
route(REGISTRAR);
#route(REGISTRAR);

/*
if ($rU==$null) {
# request with no Username in RURI
sl_send_reply("484","Address Incomplete");
exit;
}
*/

# dispatch destinations
route(DISPATCH);
Expand Down

0 comments on commit 5f3a370

Please sign in to comment.