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

Teli support #39

Open
ioscanner opened this issue Jul 31, 2020 · 1 comment
Open

Teli support #39

ioscanner opened this issue Jul 31, 2020 · 1 comment

Comments

@ioscanner
Copy link

I tried to add a new provider Teli. I copied the provider file and modified them to work based on the required options of the teli api. But I am stuck on the package teli.a file that I am not sure what that is. I have not use go before so I am kind of stuck.

cmd/sms-over-xmpp/main.go:38:2: cannot find package "src.agwa.name/sms-over-xmpp/providers/teli" in any of:
/usr/lib/go-1.10/src/src.agwa.name/sms-over-xmpp/providers/teli (from $GOROOT)
/root/go/src/src.agwa.name/sms-over-xmpp/providers/teli (from $GOPATH)

Here is what they are doing:

 Send SMS:
  https://api.server.com/sms/send?token=[API Token]&source=[Source]&destination=[Destination]&message=[Message]

 Send MMS:
 $file=filename.jpg  # or whatever the file type is .gif etc...
 $fdata=base64 of file
 https://api.server.com/sms/send?token=[API Token]&source=[Source]&destination=[Destination]file_name=$file&file_data=$fdata

Receive SMS Messages:

http://url-of-sms-orver-xmpp
POST:
source=3035551212&destination=3039991111&type=sms&message=hey+there+how+are+you

 Receive MMS Message:

http://your-url.com
POST:
source=3035551212&destination=3039991111&type=mms&message=http://picmsg.org/3hhew9fh-fefj32-fwf.jpg

I don't mind doing the work. Just trying to follow the code to make the changes. Do you have time to help?

@ioscanner
Copy link
Author

ioscanner commented Jul 31, 2020

Ok I figured it out. Everything works. Now to test group text messages.

Has anyone tried inbound group text messages?

I can submit the changes needed to get teli to work after I do some more testing.

@AGWA AGWA changed the title Add new provider Teli support Jul 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant