haxpax / gosms Goto Github PK
View Code? Open in Web Editor NEW:mailbox_closed: Your own local SMS gateway in Go
License: GNU General Public License v2.0
:mailbox_closed: Your own local SMS gateway in Go
License: GNU General Public License v2.0
To send messages in Unicode SMS must use the PDU format
About PDU
http://www.smartposition.nl/resources/sms_pdu.html
or
http://subnets.ru/saved/sms_pdu_format.html
Hi,
i am able to build dashboard.exe on windows but i get following error when i try to execute it.
2015/02/12 14:14:10 main: Initializing gosms
2015/02/12 14:14:10 InitDB: database does not exist db.sqlite
2015/02/12 14:14:10 --- syncDB
fatal error: unexpected signal during runtime execution
[signal 0xc0000005 code=0x1 addr=0x123083c4 pc=0x626db4]
runtime stack:
invalid spdelta 0x626d70 0x626db4 0xc4ee2 7015
runtime.gothrow(0x7afce8, 0x2a)
c:/go/src/runtime/panic.go:503 +0x67
runtime.sigpanic()
c:/go/src/runtime/os_windows.go:36 +0x53
invalid spdelta 0x626d70 0x626db4 0xc4ee2 7015
_cgo_ddefa58cbe9d_Cfunc__sqlite3_open_v2()
?:0 +0x44
goroutine 1 [syscall, locked to thread]:
runtime.cgocall_errno(0x626d70, 0x11c3da1c, 0x0)
c:/go/src/runtime/cgocall.go:130 +0xbc fp=0x11c3da0c sp=0x11c3d9f4
github.com/mattn/go-sqlite3._Cfunc__sqlite3_open_v2(0xcf1708, 0x11c3da40, 0x10006, 0x0, 0x0)
github.com/mattn/go-sqlite3/_obj/_cgo_gotypes.go:104 +0x3f fp=0x11c3da1c sp=0x11c3da0c
github.com/mattn/go-sqlite3.(*SQLiteDriver).Open(0x11c18740, 0x75a768, 0x9, 0x0, 0x0, 0x0, 0x0)
C:/Go/src/github.com/mattn/go-sqlite3/sqlite3.go:269 +0x1ac fp=0x11c3daf0 sp=0x11c3da1c
database/sql.(*DB).conn(0x11c1c9b0, 0x11c1231f, 0x0, 0x0)
c:/go/src/database/sql/sql.go:664 +0x414 fp=0x11c3dba0 sp=0x11c3daf0
database/sql.(*DB).exec(0x11c1c9b0, 0x7eb348, 0x1d0, 0x11c3dcdc, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0)
c:/go/src/database/sql/sql.go:884 +0x8a fp=0x11c3dc5c sp=0x11c3dba0
database/sql.(*DB).Exec(0x11c1c9b0, 0x7eb348, 0x1d0, 0x11c3dcdc, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0)
c:/go/src/database/sql/sql.go:875 +0x9b fp=0x11c3dc9c sp=0x11c3dc5c
github.com/haxpax/gosms.syncDB(0x0, 0x0)
C:/Go/src/github.com/haxpax/gosms/db.go:44 +0x13f fp=0x11c3dcf4 sp=0x11c3dc9c
github.com/haxpax/gosms.InitDB(0x74ea18, 0x7, 0x75a768, 0x9, 0x0, 0x0, 0x0)
C:/Go/src/github.com/haxpax/gosms/db.go:23 +0x189 fp=0x11c3dd60 sp=0x11c3dcf4
main.main()
C:/Go/src/github.com/haxpax/gosms/dashboard/main.go:21 +0x38e fp=0x11c3dfcc sp=0x11c3dd60
runtime.main()
c:/go/src/runtime/proc.go:63 +0xcc fp=0x11c3dff0 sp=0x11c3dfcc
runtime.goexit()
c:/go/src/runtime/asm_386.s:2287 +0x1 fp=0x11c3dff4 sp=0x11c3dff0
goroutine 17 [syscall, locked to thread]:
runtime.goexit()
c:/go/src/runtime/asm_386.s:2287 +0x1
goroutine 6 [chan receive]:
database/sql.(*DB).connectionOpener(0x11c1c9b0)
c:/go/src/database/sql/sql.go:589 +0x43
created by database/sql.Open
c:/go/src/database/sql/sql.go:452 +0x256
I don't know how to find my modem's COM port, could you please help me on it ?
Issue when building with go build.
Issue in server.go, line 71. Output: multiple-value uuid.NewV1() in single-value context
changed line 71 from uuid := uuid.NewV1() to uuid,_ := uuid.NewV1()
go build is successful with modification. Able to execute binary.
Believe this is due to update of go.uuid, ref: hlandau/acmetool#293
when an error occur in sending, server can't send next sms anymore and restart server required.
Can someone please provide examples for API usage :) ?
Thank you!
I want to run the app on Linux and I can't really figure out the COMPORT value.
How do I find my device? Should I write the device as /dev/tty... or COMn?
Thanks!
When I send a large message, I got Error. I think It should split it in two sms.
Hi, commandt's at GSM for send mutiple number to single sms ?
.\server.go:71:20: multiple-value uuid.NewV1() in single-value context
It is appear when I do go get in dashboard, please fix it
Has the development of this project stopped ??
Please after running dashboard.exe I only get a brief command line windows an the nothing. Kindly help.
Thanks
I have accidentally sent a message with empty number, and this message still hang with status 'pending'
would love if someone can run me through the setup my discord is isse#1932
I didn't see it called out in the readme, but is there any (or any plans for) support for MMS?
On Ubuntu:
$ go get github.com/haxpax/gosms
$ cd $GOPATH/src/github.com/haxpax/gosms/dashboard
$ go get
error :
./server.go:71:20: multiple-value uuid.NewV1() in single-value context
$ go build
Solutions to issue please,
Running in local.
Thx.
How to I actually use this? Need examples.
github.com/satori/go.uuid v1.2.0
This package has changed the function of NewV1()
The new function is only one return
// NewV1 returns UUID based on current timestamp and MAC address.
func NewV1() UUID {
return global.NewV1()
}
so , in /dashboard/server.go:71:13: assignment mismatch: 2 variables but uuid.NewV1 returns 1 value
Hi,
I want to send SMS from custom sender ID like (From "Mailko") instead of actual phone number? Just like Telco companies send SMS to our phone without their phone number, but through a custom sender ID
~/Desktop/go/src/github.com/haxpax/gosms/dashboard$ go build
# github.com/haxpax/gosms/dashboard
./main.go:36: undefined: gosms.GSMModem
Any idea ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.