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

chan-dongle-extended on RasPBX? #5

Open
MatejKovacic opened this issue Sep 28, 2022 · 19 comments
Open

chan-dongle-extended on RasPBX? #5

MatejKovacic opened this issue Sep 28, 2022 · 19 comments

Comments

@MatejKovacic
Copy link

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...

@garronej
Copy link
Owner

garronej commented Sep 28, 2022

Hi @MatejKovacic,

Thanks for reaching out,
Absolutely RapPBX should be fully compatible with chan-dongle-extended.

This command should do it:

wget -nc -q -O - garronej.github.io/chan-dongle-extended-pages/install.sh | sudo bash

Unfortunately I have 0 bandwith for helping on redactin any guide but I can help you debug.

Also, please note that my working installation is more than 1000 km from me, so I can not afford any mistake...

I have tons of Rapberry and 3G dongles if you want to SSH to one of them be by guess!

@garronej
Copy link
Owner

PS: Have you checkout the documentation website? https://garronej.github.io/chan-dongle-extended-pages/

@MatejKovacic
Copy link
Author

OK. I have ordered a GSM dongle from Aliexpress, but I am still waiting to get it. But when I do, I will test it extensively. Till then, it would be nice if I can SSH to one of your testing machines. Is it possible that you initially install RasPBX 10.10 (raspbx-10-10-2020.zip file) on a SD card? I would like to make an accurate clone of my installation and then install chan-dongle-extended on a top of it.

@garronej
Copy link
Owner

Ok I'll do that tonight or tomorrow night.
What rasperry pi model would you like to test with?

I have the 3 and every earlyer model but no 64bit

@MatejKovacic
Copy link
Author

I prefer RaspberryPi 4 (because that is my setup too), but I have successfully tested RasPBX with RPi 3 too.

@MatejKovacic
Copy link
Author

Also, I have a question regarding current chan-dongle. Because that might also be a problem of your version of it.
I have Huawei E1752 and quite often the GSM Registration Status is not Registered, home networkbut changes to Not registered, but searching or Not registered, not searching.

chan-dongle commands gives me this:

  GSM Registration Status : Not registered, but searching
  RSSI                    : 17, -79 dBm
  Mode                    : No Service
  Submode                 : No service
  Provider Name           : NONE

Or:

  GSM Registration Status : Not registered, not searching
  RSSI                    : 0, <= -113 dBm
  Mode                    : WCDMA
  Submode                 : WCDMA
  Provider Name           : NONE

The funny thing is I tried to send SMS to my number when this happens, and it goes through. I am suspecting there is a problem that GSM dongle is not listening to 2G only, but that it "flips" to some other network (Edge, 3G...), but I am not sure about that. Do you have any experience with this?

@garronej
Copy link
Owner

garronej commented Oct 3, 2022

Hi @MatejKovacic,
Yes, I have experience with this,
chan-dongle-extended takes mesures to mitigate thoses issues.
I don't remember exactly what it does, I wrote the code a long time ago, but I do remember investigating the issue and I think it's sending some AT command at the initialisation about it...

@MatejKovacic
Copy link
Author

Aha, you are probably sending AT commands to work on 2G only. SO I guess my gut feeling was right.

@maisx2021
Copy link

Hi but has anyone managed to install it on the raspbx? Thank you very much

@garronej
Copy link
Owner

Sorry, I am completely overwhelmed, I don't have time to work on this but I can confirm for sure that it works with Raspbx

@garronej
Copy link
Owner

I you take an older version, from back when I build this, it will work out of the box. With newer version you might have to do some light tweak to make it work but nothing unsurmontable:
https://garronej.github.io/chan-dongle-extended-pages/

@maisx2021
Copy link

image
gives me this error

TKS Giovanni

@garronej
Copy link
Owner

The problem is here:

const ast_ver = scriptLib.sh_eval(`${ast_cmdline} -V`).match(/^Asterisk\s+([0-9\.]+)/)![1];

In the transpiled JS file it's:

const ast_ver = scriptLib.sh_eval(`${ast_cmdline} -V`).match(/^Asterisk\s+([0-9\.]+)/)![1];

What does it tel you when you run asterisk -V ?

@maisx2021
Copy link

my version is Asterisk 16.13.0
TKS Giovanni

@maisx2021
Copy link

image

@garronej
Copy link
Owner

Exctly, what dors it print when u rien Asterisk -V
Sens me a screenshot

@maisx2021
Copy link

image

@garronej
Copy link
Owner

Ok thanks, strange.
If you want you can email me SSH credentials to your Raspberry.
I can try figuring out what's wrong

@pie-rs
Copy link

pie-rs commented Jul 6, 2023

appreciate I am very late to the party here but @maisx2021 did you get this working ever?

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

4 participants