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

КОМЕНТАРІ • 88

  • @projectdimpreza
    @projectdimpreza Місяць тому

    I have the asterisk addon on home assistant.. can i use this tutorial to configure chan_dongle? I dont have freepbx tho 😔

  • @fkp7867
    @fkp7867 10 місяців тому

    before any dongle to use you must check voice supported

    • @HOTKEY404
      @HOTKEY404  10 місяців тому

      Right 👍 We provided the list in one of the comments

  • @zabawymatyldy6501
    @zabawymatyldy6501 Рік тому

    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.

  • @norsim1
    @norsim1 Рік тому +1

    outgoing is ok, but when inbound, pbx says me goodbye ))

  • @handsomepappi
    @handsomepappi 3 роки тому +1

    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.

    • @HOTKEY404
      @HOTKEY404  3 роки тому

      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

    • @dededobre
      @dededobre 2 роки тому

      @@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?

    • @HOTKEY404
      @HOTKEY404  2 роки тому +1

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

    • @dededobre
      @dededobre 2 роки тому

      @@HOTKEY404 Thank you Thomas!

  • @ArunKumar-ue3jn
    @ArunKumar-ue3jn 3 роки тому

    Great

  • @balanu835
    @balanu835 2 роки тому

    can you suggest which USB dongle will support this option

  • @cz3koladowypotwor946
    @cz3koladowypotwor946 2 місяці тому

    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ć?

    • @cz3koladowypotwor946
      @cz3koladowypotwor946 2 місяці тому +1

      I fixed it. The voice speaking mode wasn't unlocked in my huwawei modem 😅

  • @slcyberking
    @slcyberking 3 роки тому

    TFS

  • @rakibulinux
    @rakibulinux 3 місяці тому

    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

  • @aboziad5884
    @aboziad5884 2 місяці тому

    I need dongles gateway with control panel to recharge sims , SMS , USS and calls

  • @OlayideGaniyu
    @OlayideGaniyu Місяць тому

    Please, I need your help to configure my dongle and hub

  • @RafalBielawski
    @RafalBielawski 3 роки тому +1

    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

    • @HOTKEY404
      @HOTKEY404  3 роки тому +1

      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!

  • @richmadrid9563
    @richmadrid9563 7 місяців тому

    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.

    • @HOTKEY404
      @HOTKEY404  7 місяців тому +1

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

  • @Subgunman
    @Subgunman 3 роки тому +1

    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?

    • @HOTKEY404
      @HOTKEY404  3 роки тому +1

      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

  • @JanD-sn8mf
    @JanD-sn8mf Рік тому

    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?

  • @kszere
    @kszere 2 роки тому

    How install chan_dongle/dongle on FreePBX without Raspbx?

    • @HOTKEY404
      @HOTKEY404  2 роки тому

      Video on vanilla CentOS with usb_modeswitch is under construction

    • @kszere
      @kszere 2 роки тому

      ​@@HOTKEY404 Thanks, I wait it.

  • @vikasvishwakarma00
    @vikasvishwakarma00 2 роки тому

    @HOTKEY404 is there a video for freepbx using usb_modeswitch to setup gsm dongle ?

  • @davinderbrar641
    @davinderbrar641 2 роки тому

    All works normally , but when using IVR it doesn't recognise DTMF inputs.

  • @robinthompson9604
    @robinthompson9604 Рік тому

    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.

  • @tuansahith7843
    @tuansahith7843 2 роки тому

    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.

  • @zabawymatyldy6501
    @zabawymatyldy6501 Рік тому

    czy jest mozliwosc przeprowadzenia analogicznej konfiguracji na CentOS?

  • @salmanbadr7352
    @salmanbadr7352 Рік тому

    hey , Thanks alot for the tutorial , how can i contact you ? i have a serious problem

  • @rubinathbksys9535
    @rubinathbksys9535 7 місяців тому

    i need a incoming calls configuration, can you upload ?

  • @prost-albanniandji2940
    @prost-albanniandji2940 2 місяці тому

    very helpful tutorial, thanks a lot.

  • @jodywaldrop9558
    @jodywaldrop9558 2 роки тому

    I have a question, do I need to have a SIM card for it to work?

  • @zabawymatyldy6501
    @zabawymatyldy6501 Рік тому

    OK wszystko już działa :) jeszcze raz dzięki za super poradnik

  • @mohamedsamiabdelrazik2290
    @mohamedsamiabdelrazik2290 Рік тому

    How to configure dongle with 3cx

  • @dhaine17
    @dhaine17 2 роки тому

    How to fix recurring long beep while engage on a call?

  • @lionelnkurunziza2733
    @lionelnkurunziza2733 2 роки тому

    thanks a lot! Running on Asterisk 16.26.1, chan dongle driver comes by default or it has to be installed after!

    • @HOTKEY404
      @HOTKEY404  2 роки тому

      Hi. In many systems you can just use install-dongle. Others might require usb_modeswitch packages

  • @tg100gsm-qh4kg
    @tg100gsm-qh4kg Рік тому

    Great, this helped very much👍

  • @diranemigueh3281
    @diranemigueh3281 3 роки тому

    Great tutorial. Exactly what i was looking for. :D .. Thank you

  • @satheeshkumarbabu7737
    @satheeshkumarbabu7737 9 місяців тому

    Excellent one... Thank you

  • @sandeepsp4u
    @sandeepsp4u 2 роки тому

    Really appreciate your effort thanks.

  • @lmisiura
    @lmisiura 2 роки тому

    witma niestety mam problem z usb okazuje sięże moje e173s-1 nie obsługuje Voice ??? czy jest jakaś możliwość włączenia tego

    • @HOTKEY404
      @HOTKEY404  2 роки тому +1

      Da się to odblokować. Proponuję przejrzeć: asteriskfaqs.org/2016/06/01/asterisk-users/chan-dongle-atddsetex-failed.html

    • @lmisiura
      @lmisiura 2 роки тому

      @@HOTKEY404 dzięki

  • @mrraulpeedeejay6166
    @mrraulpeedeejay6166 3 роки тому

    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

    • @HOTKEY404
      @HOTKEY404  3 роки тому +3

      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.

    • @juniorst
      @juniorst 3 роки тому

      ​@@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

  • @michaeln8171
    @michaeln8171 3 роки тому

    What does mean mode and submode of modem? is it important?

    • @michaeln8171
      @michaeln8171 3 роки тому

      is it bad, if i have mode 0 (no service), submode 0 (no service)

  • @SiwyMisio
    @SiwyMisio 3 роки тому

    Dzięki za tutka. Jeżeli potrzebujesz pomysłu na następnego tutka, to proponuje "Bramka GSM (raspbx) jako trunk".

    • @HOTKEY404
      @HOTKEY404  3 роки тому +1

      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 👍

    • @SiwyMisio
      @SiwyMisio 3 роки тому

      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.

  • @siuthomas5936
    @siuthomas5936 3 роки тому

    Outbound no problem but inbound not work

    • @HOTKEY404
      @HOTKEY404  3 роки тому

      Hi. What exactly is the problem? Maybe with some debug info we will be able to help you

  • @rafixx89
    @rafixx89 3 роки тому

    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

    • @HOTKEY404
      @HOTKEY404  3 роки тому

      Połączenie przychodzące czy wychodzące? I co jest w CLI?

    • @rafixx89
      @rafixx89 3 роки тому

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

    • @HOTKEY404
      @HOTKEY404  3 роки тому

      Oczywiście … ale po urlopie 😝 wracamy po weekendzie

    • @rafixx89
      @rafixx89 3 роки тому

      @@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 ?

    • @HOTKEY404
      @HOTKEY404  3 роки тому

      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ę

  • @갱이-j9l
    @갱이-j9l 3 роки тому

    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!

    • @HOTKEY404
      @HOTKEY404  3 роки тому

      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.

    • @갱이-j9l
      @갱이-j9l 3 роки тому

      @@HOTKEY404 Good morning Sir, I will check it ! And you mean Plus is better than Play right ?

    • @HOTKEY404
      @HOTKEY404  3 роки тому

      @@갱이-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 😉

    • @갱이-j9l
      @갱이-j9l 3 роки тому

      @@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?

    • @HOTKEY404
      @HOTKEY404  3 роки тому

      @@갱이-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.

  • @MrRaulPeeDeeJay
    @MrRaulPeeDeeJay 3 роки тому

    Can't login with Zoiper on Android. How to configure correctly?

    • @HOTKEY404
      @HOTKEY404  3 роки тому

      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.

    • @MrRaulPeeDeeJay
      @MrRaulPeeDeeJay 3 роки тому

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

    • @HOTKEY404
      @HOTKEY404  3 роки тому +1

      @@MrRaulPeeDeeJay I would suggest debugging the problem in Asterisk Dialplan.

    • @MrRaulPeeDeeJay
      @MrRaulPeeDeeJay 3 роки тому

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

    • @HOTKEY404
      @HOTKEY404  3 роки тому

      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