[HowTo] Bezahlbares GSM-VoIP-Gateway auf Asterisk-Basis zum selber bauen

Hallo Leute,

ich brauche auch nochmal Hilfe. Ich hatte das ganze schonmal mit einem Vodafone K3520 Stick zum laufen bekommen, da dieser offenbar Defekt ist habe ich mich nach anderen Sticks umgesehen und bin dabei auf einen Huawei E1750 und einen Huawei E160 gestossen.

Nun habe ich alle 3 Sticks ausprobiert und folgendes Ergebnis:

K3520: Ruf kommt rein, Signalisierung, Stick Neustart
E160 und E1750: Ruf kommt rein, Signalisierung, Ruf wird angenommen, Fehler, Stick neustart.

Die Fehlermeldung ist folgende:
-- SIP/16-00000015 is ringing
-- SIP/16-00000015 connected line has changed. Saving it until answer for Dongle/dongle0-0100000001
-- SIP/16-00000015 answered Dongle/dongle0-0100000001
[Nov 27 15:28:20] WARNING[13724]: channel.c:982 channel_indicate: [Dongle/dongle0-0100000001] Don't know how to indicate condition 22

Voice ist auf allen Sticks laut DC-Unlocker und AT^CVOICE? Aktiv.

Code:
###### dongle.conf #####
[general]

interval=15                     ; Number of seconds between trying to connect to devices

[defaults]
; now you can set here any not required device settings as template
;   sure you can overwrite in any [device] section this default values

context=ankommend               ; context for incoming calls
group=0                         ; calling group
rxgain=0                        ; increase the incoming volume; may be negative
txgain=0                        ; increase the outgoint volume; may be negative
autodeletesms=no                ; auto delete incoming sms
resetdongle=yes                 ; reset dongle during initialization with ATZ command
u2diag=-1                       ; set ^U2DIAG parameter on device (0 = disable everything except modem function) ; -1 not use ^U2DIAG command
usecallingpres=yes              ; use the caller ID presentation or not
callingpres=allowed_passed_screen ; set caller ID presentation          by default use default network settings
disablesms=yes                  ; disable of SMS reading from device when received
                                ;  chan_dongle has currently a bug with SMS reception. When a SMS gets in during a
                                ;  call chan_dongle might crash. Enable this option to disable sms reception.
                                ;  default = no

language=de                     ; set channel default language
smsaspdu=yes                    ; if 'yes' send SMS in PDU mode, feature implementation incomplete and we strongly recommend say 'yes'
mindtmfgap=45                   ; minimal interval from end of previews DTMF from begining of next in ms
mindtmfduration=80              ; minimal DTMF tone duration in ms
mindtmfinterval=200             ; minimal interval between ends of DTMF of same digits in ms

callwaiting=auto                ; if 'yes' allow incoming calls waiting; by default use network settings
                                ; if 'no' waiting calls just ignored
disable=no                      ; OBSOLETED by initstate: if 'yes' no load this device and just ignore this section

initstate=start                 ; specified initial state of device, must be one of 'stop' 'start' 'remote'
                                ;   'remove' same as 'disable=yes'

exten=+49173xxxxxxx             ; exten for start incoming calls, only in case of Subscriber Number not available!, also set to CALLERID(ndid)

dtmf=relax                      ; control of incoming DTMF detection, possible values:
                                ;   off    - off DTMF tones detection, voice data passed to asterisk unaltered
                                ;              use this value for gateways or if not use DTMF for AVR or inside dialplan
                                ;   inband - do DTMF tones detection
                                ;   relax  - like inband but with relaxdtmf option
                                ;  default is 'relax' by compatibility reason

; dongle required settings
[dongle0]
audio=/dev/ttyUSB3              ; tty port for audio connection;        no default value
data=/dev/ttyUSB5               ; tty port for AT commands;             no default value

imei=355013xxxxxxxxxxx

Mein Asterisk: Asterisk 1.8.18.0 built by root @ asterisk on a i686 running Linux on 2012-11-19 13:50:20 UTC
Mein OS: Linux asterisk 2.6.32-5-686 #1 SMP Mon Feb 25 01:04:36 UTC 2013 i686 GNU/Linux

Auf diesem Rechner lief das ganze schonmal, allerdings mit einem 1.6er Asterisk soweit ich weiß.

Hat jemand eine Idee was ich noch tun könnte?

UPDATE:
Nach Änderung der Ports auf Voice ttyUSB4 und Data ttyUSB3 kann ich die Gespräche annehmen, die Verbindung besteht auch für eine kurze zeit und wir dann mit folgender Meldung getrennt:

do_monitor_phone: [dongle0] timedout while waiting 'OK' in response to 'AT'
 
Zuletzt bearbeitet:
Also Stick-Neustart hört sich eigentlich nach einer Strom-Unterversorgung des Sticks an.
Ich habe das ganze neulich ohne Probleme auf einer Raspberry-Pi aufgesetzt.
 
Das habe ich auch schon gedacht, daher habe ich auch schonmal einen USB Hub mit Externer Stromversorgung dazwischen gepackt - selber Fehler. Ich bin langsam etwas Ratlos.
 
@klassenblatt, hast du was rausgefunden ?
Habe genau das gleiche problem ...

Code:
[2013-12-10 10:04:08] WARNING[2970][C-00000002]: channel.c:1002 channel_indicate: [Dongle/dongle0-0100000001] Don't know how to indicate condition 22
[2013-12-10 10:04:08] WARNING[2970][C-00000002]: channel.c:1002 channel_indicate: [Dongle/dongle0-0100000001] Don't know how to indicate condition 22
[2013-12-10 10:04:08] WARNING[2970][C-00000002]: channel.c:1002 channel_indicate: [Dongle/dongle0-0100000001] Don't know how to indicate condition 33
[2013-12-10 10:04:09] WARNING[2970][C-00000002]: channel.c:1002 channel_indicate: [Dongle/dongle0-0100000001] Don't know how to indicate condition 33
    -- SIP/6000-00000002 is ringing
[2013-12-10 10:04:12] WARNING[2970][C-00000002]: channel.c:1002 channel_indicate: [Dongle/dongle0-0100000001] Don't know how to indicate condition 33
[2013-12-10 10:04:12] WARNING[2970][C-00000002]: channel.c:1002 channel_indicate: [Dongle/dongle0-0100000001] Don't know how to indicate condition 22
 
Leider Nein, ich habe nun auch andere Sticks ausprobiert. Selbes Problem. Ich habe es jetzt erstmal dran gegeben mit der Fehlersuche und schaue mal wann ich die motivation hab das Problem nochmal anzugehen.
 
Hallo Leute
folgende problem habe ich ! Hier in Kosovo das benutzen von usb umts stick untersagt ist und mein usb umts stick wird von proveider gesperrt daher ich hätte eine bitte wie kan ich das imei ändern das wie normal telefon ausgibt danke voraus hija
 
Hi,

ich stehe mittlerweile vor dem selben Problem. GSM Gateway auf dem Raspi mit FreePBX.
Code:
[2015-01-19 18:00:37] WARNING[26267][C-0000001c]: channel.c:1002 channel_indicate: [Dongle/dongle0-0100000001] Don't know how to indicate condition 22
[2015-01-19 18:00:37] WARNING[26267][C-0000001c]: channel.c:1002 channel_indicate: [Dongle/dongle0-0100000001] Don't know how to indicate condition 22
[2015-01-19 18:00:37] WARNING[26267][C-0000001c]: channel.c:1002 channel_indicate: [Dongle/dongle0-0100000001] Don't know how to indicate condition 33

Gibt es schon eine Lösung?

Vielen Dank.
Gruß
Stephan
 
quick and dirty: patch channel.c < patch_channel.c (im zip-Archiv)

Damit läuft es dann wieder!
 

Anhänge

  • patch_channel.zip
    411 Bytes · Aufrufe: 47
Hi,

ich bekomm den patch leider nicht zum laufen.
Code:
root@raspbx:/etc/asterisk# patch channel.c < patch_channel.c
patching file channel.c
Hunk #1 FAILED at 1000.
1 out of 1 hunk FAILED -- saving rejects to file channel.c.rej
root@raspbx:/etc/asterisk#

Vielen Dank.

Gruß
Stephan
 
Hi,

das Problem liegt vermutlich daran, dass ich den raspbx nutze und die Software nicht als source Dateien vorliegt.

Viele Grüße
Stephan
 
@PsychoMantis
Hallo, der Dc Unlocker zeigt mir für meinen E1550 "voice feature: disabled" an. Internet an der FritzBox geht.
Geht das mit dem Entsperren und Netlock-Freischalten beim E1550 von #288 eigentlich noch?
Die dortigen Links funktionieren ja leider nicht mehr.
Danke.
 
die modems sind ja nun schon ziemlich alt, können kein HD-voice mehr und umts schalten die provider ja auch bald ab, d.h dann bleibt nur noch gsm übrig. Eine alternative habe ich noch nicht gesehen - naja gut außer über bluetooth und einem handy - aber ob das aktuell auch noch geht?...
dc-unlocker müsste das aber noch machen können.
am besten sucht man mal nach: gerhardweil + stick der beschreibt wohl einen aktuellen weg :)
 
  • Like
Reaktionen: krebs8

Statistik des Forums

Themen
244,695
Beiträge
2,216,692
Mitglieder
371,315
Neuestes Mitglied
jack-mack
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.