Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sms-gateway
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Huss
sms-gateway
Commits
74a822e6
Commit
74a822e6
authored
2 years ago
by
David Huss
Browse files
Options
Downloads
Patches
Plain Diff
Increase message timeout
parent
6281f6e1
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
Cargo.lock
+1
-1
1 addition, 1 deletion
Cargo.lock
Cargo.toml
+1
-1
1 addition, 1 deletion
Cargo.toml
build_and_deploy.sh
+2
-2
2 additions, 2 deletions
build_and_deploy.sh
src/bin/sms-gateway.rs
+2
-2
2 additions, 2 deletions
src/bin/sms-gateway.rs
with
6 additions
and
6 deletions
Cargo.lock
+
1
−
1
View file @
74a822e6
...
@@ -1367,7 +1367,7 @@ checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0"
...
@@ -1367,7 +1367,7 @@ checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0"
[[package]]
[[package]]
name = "sms-gateway"
name = "sms-gateway"
version = "0.4.
2
"
version = "0.4.
4
"
dependencies = [
dependencies = [
"actix-rt",
"actix-rt",
"actix-web",
"actix-web",
...
...
This diff is collapsed.
Click to expand it.
Cargo.toml
+
1
−
1
View file @
74a822e6
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
name
=
"sms-gateway"
name
=
"sms-gateway"
description
=
"A http frontend for SMS Server Tools 3"
description
=
"A http frontend for SMS Server Tools 3"
authors
=
[
"David Huss <david.huss@hfbk-hamburg.de>"
]
authors
=
[
"David Huss <david.huss@hfbk-hamburg.de>"
]
version
=
"0.4.
2
"
version
=
"0.4.
4
"
edition
=
"2021"
edition
=
"2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
...
...
This diff is collapsed.
Click to expand it.
build_and_deploy.sh
+
2
−
2
View file @
74a822e6
...
@@ -14,8 +14,8 @@ set -o nounset
...
@@ -14,8 +14,8 @@ set -o nounset
set
-o
pipefail
set
-o
pipefail
# Details of the Remote Target machine
# Details of the Remote Target machine
readonly
TARGET_HOST
=
root@
10.20.13.204
readonly
TARGET_HOST
=
root@
smsgw
readonly
TARGET_PORT
=
22
readonly
TARGET_PORT
=
22
22
readonly
TARGET_PATH
=
/srv/sms-gateway/
readonly
TARGET_PATH
=
/srv/sms-gateway/
# Use this for Raspberry Pi 32 Bit OS
# Use this for Raspberry Pi 32 Bit OS
...
...
This diff is collapsed.
Click to expand it.
src/bin/sms-gateway.rs
+
2
−
2
View file @
74a822e6
...
@@ -51,7 +51,7 @@ const BINARY_NAME: &str = env!("CARGO_BIN_NAME");
...
@@ -51,7 +51,7 @@ const BINARY_NAME: &str = env!("CARGO_BIN_NAME");
#[get(
"/"
)]
#[get(
"/"
)]
async
fn
home
()
->
impl
Responder
{
async
fn
home
()
->
impl
Responder
{
HttpResponse
::
Ok
()
.body
(
format!
(
"{} {}
\n
Author: {}
\n
{}"
,
PACKAGE_NAME
,
VERSION
,
AUTHOR
,
DESCRIPTION
))
HttpResponse
::
Ok
()
.body
(
format!
(
"{} {}
\n
Author: {}
\n
{}
\n
"
,
PACKAGE_NAME
,
VERSION
,
AUTHOR
,
DESCRIPTION
))
}
}
...
@@ -92,7 +92,7 @@ async fn sms_send(info: Json<Sms>, data: Data<Mutex<History>>) -> Result<Json<Sm
...
@@ -92,7 +92,7 @@ async fn sms_send(info: Json<Sms>, data: Data<Mutex<History>>) -> Result<Json<Sm
_
=>
{}
_
=>
{}
}
}
}
}
if
counter
>
100
{
if
counter
>
100
0
{
error!
(
"Failed to read SMS status within the deadline of {} ms"
,
interval
*
100
);
error!
(
"Failed to read SMS status within the deadline of {} ms"
,
interval
*
100
);
return
Err
(
SmsError
::
SendTimeOut
);
return
Err
(
SmsError
::
SendTimeOut
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment