garronej / chan-dongle-extended Goto Github PK
View Code? Open in Web Editor NEWAn extention for chan_dongle: PIN codes, multipart SMS, contacts.
Home Page: https://garronej.github.io/chan-dongle-extended-pages/
An extention for chan_dongle: PIN codes, multipart SMS, contacts.
Home Page: https://garronej.github.io/chan-dongle-extended-pages/
[root@PBX ~]# [root@PBX ~]# wget -nc -q -O - garronej.github.io/chan-dongle-extended-pages/install.sh | sudo bash
-bash: [root@PBX: command not found
[root@PBX ~]# wget -nc -q -O - garronej.github.io/chan-dongle-extended-pages/install.sh | sudo bash
Directory /usr/share/dongle already exsist, uninstalling previous install
wget: unrecognized option '--show-progress'
Usage: wget [OPTION]... [URL]...
Try `wget --help' for more options.
Extractingtar (child): /tmp/dongle.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
rm: cannot remove โ/tmp/dongle.tar.gzโ: No such file or directory
bash: line 39: ./node: No such file or directory
[root@PBX ~]#
Hi,
i think you should update wodekes asterisk-chan-dongle repository in file
https://github.com/garronej/chan-dongle-extended/blob/master/dist/bin/installer.js (line 928) because it pull outdated version of chan-dongle.
Commit you pointed to on installer.js file doesn't show recipient name properly in received SMS. It show raw PDU. It must be decoded (7 bit).
Latest wodekes asterisk-chan-dongle repository is free from this bug.
Greetings.
Kauczu
Hi guys, I have a very old kirkwood device running openwrt 15.05 with Asterisk 11.22.0 and chan_dongle: Huawei 3G Dongle Channel Driver, Version 1.1, Revision 35. Everything works fine, but openwrt a while ago stop supporting this device. So I decided to move my config to a modern platform. I have installed chan-dongle-extended in Debian 11 with FreePBX 16 and asterisk 16. Everything seems working and dongle is recognized, but as far as I'm using it in roaming I'm having a problem of registering dongle in a network. This problem does not appear in openwrt box thou.
a dongle looks like this:
root@FreePBX-debian:~# dongle list
[
{
"imei": "XXXXXXXXXXXXXXX",
"manufacturer": "huawei",
"model": "E1550",
"firmwareVersion": "11.609.18.00.00",
"isVoiceEnabled": true,
"sim": {
"iccid": "89357018150702209355",
"imsi": "280019132035935",
"country": {
"iso": "cy",
"code": 357,
"name": "Cyprus"
},
"serviceProvider": {
"fromImsi": "Vodafone/CyTa",
"fromNetwork": "CytaVoda"
},
"storage": {
"infos": {
"contactNameMaxLength": 14,
"numberMaxLength": 24,
"storageLeft": 249
},
"contacts": [],
"digest": "e16723f48e0cca3d701d24b930b8fed8"
}
},
"cellSignalStrength": "GOOD",
"isGsmConnectivityOk": false
}
]
root@FreePBX-debian:~# asterisk -rvvv
Asterisk 16.28.0~dfsg-0+deb11u1, Copyright (C) 1999 - 2021, Sangoma Technologies Corporation and others.
Created by Mark Spencer <[email protected]>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 16.28.0~dfsg-0+deb11u1 currently running on FreePBX-debian (pid = 826)
-- Remote UNIX connection
FreePBX-debian*CLI> dongle show devices
ID Group State RSSI Mode Submode Provider Name Model Firmware IMEI IMSI Number
Dongle1 0 GSM not re 16 0 0 CytaVoda E1550 11.609.18.00.00 XXXXXXXXXXXXXXX 280019132035935 Unknown
FreePBX-debian*CLI> dongle show version
chan_dongle: Huawei 3G Dongle Channel Driver, Version 1.1, Revision 43gh=47cg
Project Home: https://github.com/bg111/asterisk-chan-dongle/
Bug Reporting: https://github.com/bg111/asterisk-chan-dongle/issues
in my openwrt box I see something different. While the dongle is initialized I see this:
Asterisk-OpenWrt*CLI> dongle show devices
ID Group State RSSI Mode Submode Provider Name Model Firmware IMEI IMSI Number
dongle0 1 GSM not re 99 0 0 NONE E1550 11.609.18.00.00 XXXXXXXXXXXXXXX 280019132035935 Unknown
When it's ready, I see this:
Asterisk-OpenWrt*CLI> dongle show devices
ID Group State RSSI Mode Submode Provider Name Model Firmware IMEI IMSI Number
dongle0 1 Free 20 3 3 GR COSMOTE E1550 11.609.18.00.00 XXXXXXXXXXXXXXX 280019132035935 Unknown
I think that the problem is that dongle network provider is fixed by chan_dongle service to the one listed in "fromNetwork" field of dongle list command, while originally dongle chooses the best provider by itself.
The question is how to either let dongle to choose provider or (which is better IMHO) to let the user to specify the desired provider in the config?
Thank you, Dmitry
Hi, I "accidentaly" found your project, but I think is is just something I have been looking for a long time.
A little background. Almost a year ago I wrote a pretty extensive guide how to install RasPBX. It is published here:
https://github.com/MatejKovacic/RasPBX-install
Now the problem is, that calls are going just fine, but I have a problems receiving SMS messages. Some messages are sent in several e-mail messages, I do not receive MMS messages and I am (still) unable to get SMS messages to my Signal number.
Signal app is a secure messenger, but there is Signal API script, which lets you send Signal messages through REST API. Basically, I can write this (from terminal):
echo "{\"message\": \"On $(date '+%m. %d. %Y at %H:%M:%S') you have received SMS message.\", \"number\": \"+XXXXXXXXXXX\", \"recipients\": [\"+YYYYYYYYYYY\"]}" | /usr/bin/curl --user 'user:password' -X POST -H "Content-Type: application/json" -d @- 'https://signalapi.myserver.net/v2/send'
And I will receive a Signal message.
Of course I tried to put this command to into the /etc/asterisk/extensions_custom.conf
, but I do not receive any Signal message.
Anyway, I think it would be really great if there will be detailed guide for setting up your application to RasPBX, but I think I would need a little help.
RasPBX is actually Raspbian GNU/Linux 10 (buster) with kernel: Linux 5.10.103-v7l+. Debian_version says it is 10.12.
How to install chan-dongle-extended to this system?
Also, please note that my working installation is more than 1000 km from me, so I can not afford any mistake...
Hello!
My install you script.
My server: debian 11 64 bit
5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64
My dongle: K3765
The call starts, I can pick up with the other person, I can make outgoing and incoming calls. But when I pick it up, there is no sound on either side, no matter how much I talk into either side.
With the dongle, if I put the call on hold with the virtual one, the call hold tone doesn't sound either. However, the system says that it has been started. It's all completely deaf. No idea what the problem could be?
Thanks!
My install completes successfully on Debian 11 with Asterisk 16 & Freepbx 16.
But once opening freepbx it says it can't connect to asterisk and my log also fills with "manager.c: 127.0.0.1 tried to authenticate with nonexistent user 'admin'" & "manager.c: 127.0.0.1 failed to authenticate as 'admin'"
The dongle is connected and working however. As soon as I run the uninstall script Freepbx/asterisk works fine again.
It would be nice if someone could create an installation guide for Freepbx.
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.