Configuring inbound & outbound GSM (chan_dongle) connections in FreePBX
Вставка
- Опубліковано 29 вер 2024
- In the previous video, I showed you how to install RasPBX on Raspberry Pi and turn it into a fully functional Freepbx-based GSM Gateway. Today we continue the series and we will add a custom dongle trunk, add inbound & outbound routes, and of course ..... test our setup.
Hardware: Rapberry Pi 4, Huawei E169, Huawei E173
Software: Raspberry Pi OS lite, Asterisk 16, chan_dongle
Website ► hotkey404.com/
This tutorial ► bit.ly/HOTKEY40...
Also, check our new Asterisk monitoring software:
VOIPERO ► voipero.com
Enjoy the video and thanks for watching!
👍 If you found this tutorial helpful, please consider giving it a thumbs up and subscribing for more in-depth tutorials on VoIP and Raspberry!
🔔 Stay updated! Click the bell icon to receive notifications for new uploads.
📧 For business inquiries or questions, please contact info@hotkey404.com.
🌐 Connect with me:
hotkey404.com/
/ hotkey404
/ hotkey404
👇 Have questions or need further assistance? Leave a comment below, and I'll do my best to help you out!
#freepbx #dongle #raspberry pi #gsm #asterisk #voipero
I have the asterisk addon on home assistant.. can i use this tutorial to configure chan_dongle? I dont have freepbx tho 😔
before any dongle to use you must check voice supported
Right 👍 We provided the list in one of the comments
Uzupełnienie do poprzedniego wpisu: BTW - konfiguracja Outbound Routes jest raczej OK: Dial Patterns that will use this Route ZXXXXXXXX bo gdy w Route settings przelacze "Optional Destination on Congestion" z "Normal congestion" na Extensions i tu nr np. 15 to reguła działa. problem jest chyba w konfiguracji dongla. Dodam ze polaczenia przychodzace dzialaja poprawnie.
outgoing is ok, but when inbound, pbx says me goodbye ))
I have few questions as I'm way to understanding the whole setup and no complete info is available online for a GSM setup. My questions are: 1- Can I register one of the extensions of this pbx on a SIP application on mobile and use it remotely to make calls via GSM dongke? By remotely I mean out of my local network. 2- Similarly, if I receive call on gsm dongke can I route those calls to a SIP extension registered on a SIP application on a mobile?
Purpose of this is to make and receive calls over a mobile SIP application when I'm travelling. Thank you very much in advance.
Of course you can do all of that. You just need to create and extensions and
1) do a port forwarding to PBX - remember about security issues eg. do NOT open UDP 5060 to the world
or 2) use a VPN to connect your mobile phone to your PBX
These are the most common scenarios
@@HOTKEY404 Hi, nice tutorial about using cell dongle with Raspberry Pi for incoming and outgoing calls. I have a similar question as Michael X. I wonder if this GSM gateway would work with no extra connection to the Internet other than this dongle. Would I be able to connect (register) my VoIP client to this machine and use it as a regular VoIP line? Ignore the security hardening (changing all the default passwords and ports 5060 for ex), blocking attacks with fail2ban and configuring a FQDN of the system (using maybe no-ip service) or using a VPN. The question I have is: can this ONE dongle serve as VoIP trunk AND Internet connection for calls and management (ssh + https) in the same time?
@@dededobre I did a quick test and I established a ppp 3G connection and I made an outgoing connetion so it should be possible. Especially since they use a different ports:
/dev/ttyUSB0 - internet, wvdial
/dev/ttyUSB1 - asterisk, audio
/dev/ttyUSB2 - asterisk, data
@@HOTKEY404 Thank you Thomas!
Great
can you suggest which USB dongle will support this option
Witam mam problem. Gdy probuje wykonac polecenie z filmu channel orginate mam błędy:
raspbx*CLI> channel originate dongle/dongle0/XXXXXXX application MusicOnHold
-- Called dongle0/XXXXXXX
[2024-07-14 19:08:42] ERROR[3824]: at_response.c:468 at_response_error: [dongle0] Dial failed
-- Dongle/dongle0-0100000001 is circuit-busy
[2024-07-14 19:08:42] ERROR[3824]: at_response.c:473 at_response_error: [dongle0] AT^DDSETEX failed
raspbx*CLI>
dongle0 is busy and in dialing mode. Can anyone help me ?
dongle0 przechodzi w tryb dialing. Co robić?
I fixed it. The voice speaking mode wasn't unlocked in my huwawei modem 😅
TFS
I try but get this error [dongle0] Trying to connect on /dev/ttyUSB2... -- [dongle0] Dongle has connected, initializing... [Jun 11 03:19:19] ERROR[289404]: chan_dongle.c:521 do_monitor_phone: [dongle0] timedout while waiting 'OK' in response to 'AT+COPS=' -- [dongle0] Error initializing Dongle -- [dongle0] Dongle has disconnected
I need dongles gateway with control panel to recharge sims , SMS , USS and calls
Please, I need your help to configure my dongle and hub
Sprawdź czy bo reboot malinki dongle będą nadal przypisane tak samo? U mnie co reboot zamieniały się porty miejscami co powodowało zamianę numerów przez co wychodzące i SMS odwrotnie funkcjonowały. Pomogła konfiguracja po imei zamiast po portach USB
To prawda, że ustawienia po IMEI mogę rozwiązać problem - o ile system poprawnie wykryje modem (spotkanie się z modemami, gdzie po IMEI nie działało). U siebie go nie zauważyłem, dopóki nie wypinałem modemów. Przy założeniu, że się korzysta z jednego modemu, to nie będzie problemem 😜
Ale słuszna sugestia!
is there an Android/iPhone version of the Softphone app, so you could make/receive calls or send/receive SMS from your home country on your mobile phone, when you're abroad?
Coz as you know you need to do bank transactions, you'll need your home country mobile number to receive SMS or calls for 2-factor authentication.
You can send/reveice SMS and they will appear in Asterisk. Then you can create eg. AGI or ODBC functions to forward them to your phone/email/sql/etc....
Will this work on a standard sized computer with FreePBX running? Is there a specific dongle I should ask for from my provider to use with this setup or will a data only USB device work?
chan_dongle can be compiled with any Asterisk-based software. List of compatible dongles can be found here:
wiki.e1550.mobi/doku.php?id=requirements
Hey! I'm new to FreePBX. I've set up Raspbx on a Raspberry Pi 4 and would like to make calls using a 4G SIM router (TP Link - TL-MR6500v/ VoLTE, VoIP, VoiceMail). The router works fine on the RJ11 port with a standard phone.
I previously attempted to use the chan_dongle module, but it appears that the 4G SIM doesn't work with it. I don't believe the mobile carrier provides any SIP settings for 4G SIMs. Is it possible to connect the VoIP router with Raspbx over Ethernet?
How install chan_dongle/dongle on FreePBX without Raspbx?
Video on vanilla CentOS with usb_modeswitch is under construction
@@HOTKEY404 Thanks, I wait it.
@HOTKEY404 is there a video for freepbx using usb_modeswitch to setup gsm dongle ?
All works normally , but when using IVR it doesn't recognise DTMF inputs.
Can the channel mobile work with USB cable as opposed to Bluetooth. Just concerned about voice quality loss over Bluetooth and also when more then one phone connected.
hi. can i install freepbx to the desktop pc & conncet dongle as a gsm gateway? if so, do u have any video for setup & configuration? Thanks.
czy jest mozliwosc przeprowadzenia analogicznej konfiguracji na CentOS?
hey , Thanks alot for the tutorial , how can i contact you ? i have a serious problem
i need a incoming calls configuration, can you upload ?
very helpful tutorial, thanks a lot.
I have a question, do I need to have a SIM card for it to work?
OK wszystko już działa :) jeszcze raz dzięki za super poradnik
How to configure dongle with 3cx
How to fix recurring long beep while engage on a call?
thanks a lot! Running on Asterisk 16.26.1, chan dongle driver comes by default or it has to be installed after!
Hi. In many systems you can just use install-dongle. Others might require usb_modeswitch packages
Great, this helped very much👍
Great tutorial. Exactly what i was looking for. :D .. Thank you
Excellent one... Thank you
Really appreciate your effort thanks.
witma niestety mam problem z usb okazuje sięże moje e173s-1 nie obsługuje Voice ??? czy jest jakaś możliwość włączenia tego
Da się to odblokować. Proponuję przejrzeć: asteriskfaqs.org/2016/06/01/asterisk-users/chan-dongle-atddsetex-failed.html
@@HOTKEY404 dzięki
I would like to know if there is a utility that allows both to send and read the sms received using a web page. Thank You
There is an incoming video on how to create such web page yourself. It will consist of simple PHP script and AMI connection. So stay tuned 😉 Unless you need this immediately, then contacts us via email.
@@HOTKEY404 Hi! Please, I will be very grateful if you make this video. I'm having some challenge to send incoming sms to e-maill
What does mean mode and submode of modem? is it important?
is it bad, if i have mode 0 (no service), submode 0 (no service)
Dzięki za tutka. Jeżeli potrzebujesz pomysłu na następnego tutka, to proponuje "Bramka GSM (raspbx) jako trunk".
Dobry pomysł. Osobiście najczęściej łączę się z bramami poprzez SIP lub jakieś zdalne polecenia przez Asterisk managera. Więc jest plan na następny miesiąc 👍
Pytanie poza konkursem - ile udało Ci się uzyskać jednoczesnych (stabilnych) połączeń na raspbx (3b+ lub 4) ? bez dekodowania i z dekodowaniem ? mi na 3b+ bez dekodowania (ulaw-ulaw) 20 z kodowaniem (ulaw-opus) 4.
Outbound no problem but inbound not work
Hi. What exactly is the problem? Maybe with some debug info we will be able to help you
Witam zrobiłem jak u Ciebie na filmie dongla widac ale nie działa mi połączenie jest ale odrzuca zaraz
Channel 'Dongle/dongle0-0100000003' sent to invalid extension but no invalid handler: context,exten,priority=default,+48797691XXX,1
Połączenie przychodzące czy wychodzące? I co jest w CLI?
@@HOTKEY404 przychodzące wychodzace tez nie działają ale na dzis sobie odpuściłem jutro pokobinuje lub w sobote moge dac zdalny dostep jak będziesz mial chwile pomoc
Oczywiście … ale po urlopie 😝 wracamy po weekendzie
@@HOTKEY404 Udało mi sie odpalić na virtualbox. Dzwoni ivr muzyka na czekanie, zastanawiam sie jeszcze czy smsy dało by rade wysłac z klienta sip ?
Super, że udało się uruchomić. Do smsow jest osobny protokół i nigdy tego nie testowałem. Ale jak wrócę z urlopu to kuknę
Dzien dobry! Thank you for your video. Your video is so helpful to me. I'm living in Poland. And I'm using Play network right now.
It seems that you are using Virgin mobile in this video.
And Virgin mobile is using play and you are connected to play gsm.
I know that the transmitting mode depends on the modem, but have your modem connected to the 3G network?
I want to use Play in 3G network on the chan_dongle. I will waiting for your answer.
Miłego dnia!
Hi. RasPBX uses automated process of switching the mode of your dongle (with usb_modeswitch). Are you using RasPBX or sth else? You should be able to find details of your modem with lsusb and you can search for it on the list asterisk-service.com/en_US/page/chan-dongle-modems to check compatibility - usually: the older = the better. And yes .... modems that I'm using are 3G only.
@@HOTKEY404 Good morning Sir, I will check it ! And you mean Plus is better than Play right ?
@@갱이-j9l Really depends on your location. I managed to run a whole PBX on one dongle (Dual 3G for internet, not calls) from basement .... and it worked. But about chan_dongle sometimes I struggled on newer modems. Let me know what modem do you use and if it worked 😉
@@HOTKEY404 I used e1750 modem with Orange and It works well. But Voip to modem voice was loud cleared but modem to voip was low so I couldn't hear that. I'm trying to find gain the voice. (the settings was possible in dongle.conf)
by the way may I know which modem that you struggle with?
@@갱이-j9l From the docs (github.com/jstasiak/asterisk-chan-dongle/blob/master/etc/dongle.conf):
rxgain=0 ; increase the incoming volume; may be negative
txgain=0 ; increase the outgoing volume; may be negative
Maybe this will help.
Can't login with Zoiper on Android. How to configure correctly?
You can start with the simpliest setup: regular SIP account, same local network, disabled firewall, correct name/pass/server/port/etc.... and check logs what is wrong.
@@HOTKEY404 i solved, wrong port number, but now there is a new issue: when I make a call a voice tell me that all circuits are busy. If I call mobile number inserted into the dongle, I have a busy tone
@@MrRaulPeeDeeJay I would suggest debugging the problem in Asterisk Dialplan.
@@HOTKEY404 raspbx*CLI> dongle show device state dongle0
-------------- Status -------------
Device : dongle0
State : Free
Audio : /dev/ttyUSB1
Data : /dev/ttyUSB2
Voice : No
SMS : Yes
Manufacturer : ZTE CORPORATION
Model : MF190
Firmware : BD_MF190V1.0.0B15
I found that voice is not initialized, so this is the cause. In fact, if I call the number of the SIM card, I got busy signal, when if I make an outgoing call by sip, the voice tell me that the circuit is busy.
This model of dongle is not listed in the list of compatibility
I wouldn't worry about the compatibility list. I would suggest "channel originate dongle/dongle0/12342134 application MusicOnHold" to check if the modem works. Then verify inbound and outbound routes.
Of course you a real number in the command above