Skip to content

Commit

Permalink
fix(pks-sip): error in config file
Browse files Browse the repository at this point in the history
  • Loading branch information
mwolff44 committed Apr 18, 2024
1 parent ad7a086 commit a2a65b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/pks
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
export PATH+=':/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'

# Variables
VERSION="v4.1.0"
VERSION="v4.1.1"
readonly PKS_GIT_URL="https://raw.githubusercontent.com/mwolff44/pyfreebilling"
readonly DATA_DIR="/srv"
ENV_FILE="/srv/pks/.env"
Expand Down
2 changes: 1 addition & 1 deletion src/sip/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
pks-sip:
container_name: pks-sip
hostname: sip.pks.local
image: mwolff44w/pks-sipproxy:v4.1.0
image: mwolff44w/pks-sipproxy:v4.1.1
restart: unless-stopped
volumes:
- pks-db-data:/etc/kamailio/db:ro
Expand Down
11 changes: 1 addition & 10 deletions src/sip/kamailio.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!KAMAILIO
#
# Kamailio SIP Server v5.7 - P-KISS-SBC
# Version : 4.1.0
# Version : 4.1.1
#

####### Include Local Config If Exists #########
Expand Down Expand Up @@ -715,26 +715,20 @@ route[DISPATCH] {
switch ($var(rule3)) {
case -2:
xinfo("INFO | No internal routing rule found for GW (IP:$si:$sp) associated with '$rU'\n");
return;
case -1:
xerr("ALERT | Error finding internal routing rule for GW (IP:$si:$sp) associated with '$rU'\n");
exit;
case 1:
xinfo("INFO | The internal routing rule for GW (IP:$si:$sp) associated with '$rU' are '$avp(s:dest)'\n");
return;
}
if (!$avp(s:dest)) {
$var(rule2) = dp_match("2", "$rU");
switch ($var(rule2)) {
case -2:
xwarn("INFO | No external routing rule found for GW (IP:$si:$sp) associated with '$rU'\n");
return;
case -1:
xerr("ALERT | Error finding external routing rule for GW (IP:$si:$sp) associated with '$rU'\n");
exit;
case 1:
xinfo("INFO | The external routing rule for GW (IP:$si:$sp) associated with '$rU' are '$avp(s:dest)'\n");
return;
}
}
} else if(isflagset(FLAG_FROM_PROV)) {
Expand All @@ -743,13 +737,10 @@ route[DISPATCH] {
switch ($var(rule1)) {
case -2:
xwarn("INFO | No DID routing rule found for GW (IP:$si:$sp) associated with '$rU'\n");
return;
case -1:
xerr("ALERT | Error finding DID routing rule for GW (IP:$si:$sp) associated with '$rU'\n");
exit;
case 1:
xinfo("INFO | The DID routing rule for GW (IP:$si:$sp) associated with '$rU' are '$avp(s:dest)'\n");
return;
}
} else {
xwarn("WARN | No routing rule found for GW (IP:$si:$sp)\n");
Expand Down

0 comments on commit a2a65b0

Please sign in to comment.