Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(pks-sip): error in config file #195

Merged
merged 1 commit into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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