Asterisk 1.6 auf FBF 7170 mit Sipgate Trunking und ISDN

NutJob

Neuer User
Mitglied seit
7 Mrz 2013
Beiträge
3
Punkte für Reaktionen
0
Punkte
0
Hallo zusammen,

Ich habe gemäß der Anleitung hier im Forum Asterisk 1.6 auf meiner FBF 7170 installiert. Leider habe ich ein paar Probleme mit mit den Einstellungen.

Wenn Alles fertig ist soll es so funktionieren:

1. Anruf aus dem Festnetz geht auf Nummer xxxxxx10 ein. Klingeln soll SIP/200 und der interne S0 Bus der FBF. Korrespondierend soll das auch für xxxxxx11 => SIP/201 sowie der interne S0 Bus usw gehen.

2. Anruf über Sipgate auf 4975yyyyyyyyyy0 ein, sollen SIP/200 und der interne S0 Bus klingeln. Korrespondierend dazu auch wieder 4975yyyyyyyyyy1 => SIP 201 sowie der interne S0 Bus.

3. Geht ein Anruf auf einer Sipgate Durchwahl ein, die nicht registriert ist: SIP/200 und der interne S0 Bus sollen reagieren.

4. Bei ausgehenden Anrufen über ISDN soll immer die Nummer 4975yyyyyyyyyy0 übertragen werden. Hier bin ich mir allerdings nicht sicher, ob das an einem Mehrgeräteanschluss geht.


Zusätzlich soll dann auch mal das VoiceMail System funktionieren, wenn ausserhalb der Geschäftszeiten angerufen wird. Hier habe ich aber noch keine Einstellungen vorgenommen. Erst soll der rest funktionieren.

Die Durchwahl 200 habe ich in der Fritzbox als Internet Rufnummer eingetragen. Diese ist auch registriert.

Was bisher funktioniert ist folgendes:

1. Anrufe auf dem Festnetz werden zwar auf der SIP/200 signalisiert, nicht aber im in. S0 Bus.

2. Gehen Anrufe über den Sipgate Trunk ein, geht werden die Anrufe auch nur auf SIP/200 signalisiert. Und das auch nur, wenn die SIP Rufnummer in der FBF eingetragen ist. Ich möchte aber nur die entsprechenden Durchwahlen eintragen (200,201,202,...). Den Rest soll Asterisk intern abwickeln.

Die IP-Adresse der FBF ist 192.168.1.2

Hier meine .conf Dateien:

sip.conf
Code:
[general]
language=de
bindport=5260
bindaddr=0.0.0.0
context=incoming

register => <user>:<pw>@sipconnect.sipgate.de/pw
register => 4975yyyyyyyyyy0 :<pw>@192.168.1.2:4975yyyyyyyyyy0 

[sipconnect.sipgate.de]
type = friend
host = sipconnect.sipgate.de
outboundproxy=sipconnect.sipgate.de
port = 5060
username = <user>
fromuser = <user>
fromdomain = sipconnect.sipgate.de
secret = <pw>
dtmfmode = rfc2833
insecure = port,invite
canreinvite = no
registertimeout = 600
disallow=all
allow=alaw
allow=ulaw


[4975yyyyyyyyyy0]
host=dynamic
type=friend
secret=<pw>
context=incoming


[200]
type=friend
host=dynamic
secret=<pw>
context=intern


[201]
type=friend
host=dynamic
secret=<pw>
context=intern

[202]
type=friend
host=dynamic
secret=<pw>
context=intern

extensions.conf
Code:
[default]

[globals]


[incoming]
exten => 4975yyyyyyyyyy0,1,Dial(SIP/200&CAPI/ISDN3/200)
exten => 4975yyyyyyyyyy0,n,HANGUP()


exten => xxxxxx10,1,DIAL(SIP/200&CAPI/ISDN3)
exten => xxxxxx11,1,DIAL(SIP/200&CAPI/ISDN3)
exten => xxxxxx12,1,DIAL(SIP/200&CAPI/ISDN3)

[intern]
exten => 200,1,DIAL(SIP/200&CAPI/ISDN3)


capi.conf
Code:
;
; CAPI config
; (1234567 gets replaced by script cfg_asterisk start)
;

; general section

[general]
nationalprefix=0
internationalprefix=00
rxgain=1.0       ;linear receive gain (1.0 = no change)
txgain=1.0       ;linear transmit gain (1.0 = no change)
language=de      ;set default language (en/de...)
;ulaw=yes        ;set this, if you live in u-law world instead of a-law

;jb.....         ;with Asterisk 1.4 you can configure jitterbuffer,
                 ;see Asterisk documentation for all jb* setting available.
;mohinterpret=default ;Asterisk 1.4: default music on hold class when placed on hold.

; interface sections ...
[ISDN1]          ; fritzbox 7050/7170 external S0 (or external analog line: experimental)
ntmode=no      ;if isdn card operates in nt mode, set this to yes
isdnmode=msn     ;'MSN' (point-to-multipoint) or 'DID' (direct inward dial)
incomingmsn=*    ;allow incoming calls to this list of MSNs/DIDs, * = any,
;defaultcid=  ;set a default caller id to that interface for dial-out,
                 ;this caller id will be used when dial option 'd' is set.
controller=1     ;capi controller number to use (=4: fritzbox 7050/7150 at analog line)
group=1          ;dialout group
softdtmf=off      ;enable/disable software dtmf detection, recommended for AVM cards
relaxdtmf=off     ;in addition to softdtmf, you can use relaxed dtmf detection
accountcode=     ;PBX accountcode to use in CDRs
context=incoming  ;context for incoming calls
;holdtype=hold   ;when the PBX puts the call on hold, ISDN HOLD will be used. If
                 ;set to 'local' (default value), no hold is done and the PBX may
                 ;play MOH.
bridge=no      ;native bridging (CAPI line interconnect) if available
devices=2        ;number of concurrent calls on this controller
                 ;(2 makes sense for single BRI, 30 for PRI)


[ISDN3]          ; fritzbox 7050 internal S0
ntmode=yes       ;if isdn card operates in nt mode, set this to yes
isdnmode=msn     ;'MSN' (point-to-multipoint) or 'DID' (direct inward dial)
                 ;when using NT-mode, 'DID' should be set in any case
incomingmsn=*    ;allow incoming calls to this list of MSNs/DIDs, * = any
;defaultcid=123  ;set a default caller id to that interface for dial-out,
                 ;this caller id will be used when dial option 'd' is set.
controller=3     ;capi controller number to use
group=3          ;dialout group
softdtmf=off      ;enable/disable software dtmf detection, recommended for AVM cards
relaxdtmf=off     ;in addition to softdtmf, you can use relaxed dtmf detection
accountcode=     ;PBX accountcode to use in CDRs
context=intern  ;context for incoming calls
;holdtype=hold   ;when the PBX puts the call on hold, ISDN HOLD will be used. If
                 ;set to 'local' (default value), no hold is done and the PBX may
                 ;play MOH.
;immediate=yes   ;DID: immediate start of pbx with extension 's' if no digits were
                 ;     received on incoming call (no destination number yet)
                 ;MSN: start pbx on CONNECT_IND and don't wait for SETUP/SENDING-COMPLETE.
                 ;     info like REDIRECTINGNUMBER may be lost, but this is necessary for
                 ;     drivers/pbx/telco which does not send SETUP or SENDING-COMPLETE.
bridge=no      ;native bridging (CAPI line interconnect) if available
devices=2        ;number of concurrent calls on this controller
                 ;(2 makes sense for single BRI, 30 for PRI)


; unused example (reference)
;[ISDN9]          ;this example interface gets name 'ISDN9' and may be any
                 ;name not starting with 'g' or 'contr'.
                 ;Use one interface section for each isdn port!
;ntmode=yes      ;if isdn card operates in nt mode, set this to yes
;isdnmode=did     ;'MSN' (point-to-multipoint) or 'DID' (direct inward dial)
                 ;when using NT-mode, 'DID' should be set in any case
;incomingmsn=8001,8002 ;allow incoming calls to this list of MSNs/DIDs, * = any
;defaultcid=123  ;set a default caller id to that interface for dial-out,
                 ;this caller id will be used when dial option 'd' is set.
;controller=0    ;ISDN4BSD default
;controller=7    ;ISDN4BSD USB default
;controller=1     ;capi controller number of this interface/port
;group=1          ;dialout group
;prefix=0        ;set a prefix to calling number on incoming calls
;softdtmf=on      ;enable/disable software dtmf detection, recommended for AVM cards
;relaxdtmf=on     ;in addition to softdtmf, you can use relaxed dtmf detection
;faxdetect=off    ;enable faxdetection and redirection to EXTEN 'fax' for incoming and/or
                 ;outgoing calls. (default='off', possible values: 'incoming','outgoing','both')
;accountcode=     ;PBX accountcode to use in CDRs
;amaflags=default;AMA flags for CDR ('default', 'omit', 'billing', or 'documentation')
;context=capi_in  ;context for incoming calls
;holdtype=hold   ;when the PBX puts the call on hold, ISDN HOLD will be used. If
                 ;set to 'local' (default value), no hold is done and the PBX may
                 ;play MOH.
;immediate=yes   ;DID: immediate start of pbx with extension 's' if no digits were
                 ;     received on incoming call (no destination number yet)
                 ;MSN: start pbx on CONNECT_IND and don't wait for SETUP/SENDING-COMPLETE.
                 ;     info like REDIRECTINGNUMBER may be lost, but this is necessary for
                 ;     drivers/pbx/telco which does not send SETUP or SENDING-COMPLETE.
;echosquelch=1   ;_VERY_PRIMITIVE_ echo suppression
;echocancel=yes  ;EICON DIVA SERVER (CAPI) echo cancelation (yes=g165)
                 ;(possible values: 'no', 'yes', 'force', 'g164', 'g165') 
;echocancelold=yes;use facility selector 6 instead of correct 8 (necessary for older eicon drivers)
;echotail=64     ;echo cancel tail setting (default=0 for maximum)
;echocancelnlp=1 ;activate non-linear-processing; this improves echo cancel ratio, but might
                 ;incorporate variable gain in the signal path.
;bridge=yes      ;native bridging (CAPI line interconnect) if available
;callgroup=1     ;PBX call group
;pickupgroup=1   ;PBX pickup group (which call groups are we allowed to pickup)
;language=de     ;set language for this device (overwrites default language)
;disallow=all    ;RTP codec selection (valid with Eicon DIVA Server only)
;allow=all       ;RTP codec selection (valid with Eicon DIVA Server only)
;devices=2        ;number of concurrent calls (b-channels) on this controller
                 ;(2 makes sense for single BRI, 30/23 for PRI/T1)
;jb.....         ;with Asterisk 1.4 you can configure jitterbuffer,
                 ;see Asterisk documentation for all jb* setting available.
;mohinterpret=default ;Asterisk 1.4: default music on hold class when placed on hold.
;qsig=on         ;enable use of Q.SIG extensions.


Hat jemand einen Rat? Ich sitz hier schon ewig dran und komm einfach nicht weiter.
 
...DIAL(....CAPI/ISDN3)

Ich kann mir nicht vorstellen, dass du den "ISDN Bus" einfach so, ohne fixe Nummer ansprechen kannst.
Du hast doch in Deinem Telefon auch eine Fixe ISDN nummer eingestellt.

Habe bei mir selber die Erfahrung gemacht, dass ich in der AVM Oberfläche den "internen ISDN Bus" unter "Telefoniegeräte" löschen mußte.
Damit hat sich bei mir alles immer ein wenig komisch verhalten.

EDIT:
Bitte immer in der Konsole schauen, was für Fehlermeldungen kommen. Habe das bei mir für Dich mal getestet und wie zu erwarten kommt da:
[Mar 7 16:31:26] ERROR[7476]: chan_capi.c:1401 pbx_capi_call: No destination or dialtone requested in 'ISDN3'
[Mar 7 16:31:26] -- Couldn't call ISDN3
Vielleicht solltest du Dich noch mal ein wenig einlesen :)
 
Zuletzt bearbeitet:
Ich habs aber auch schon mit CAPI/ISDN3/200 versucht, aber mit dem gleichen Ergebnis.

Morgen probier ich's mal ohne die TK-Anlage in den Telefoniegeräten.

Gelesen hab ich schon relativ viel. Das Problem ist nur viele der Beispieldateien funktionieren nicht.
 
Da ist noch so einiges im Argen:

register => <user>:<pw>@sipconnect.sipgate.de/pw <= Das Passwort als Contact?
register => 4975yyyyyyyyyy0 :<pw>@192.168.1.2:4975yyyyyyyyyy0 <= das macht so keinen Sinn, damit registriert sich Asterisk bei sich selbst auf Port 4975...

[4975yyyyyyyyyy0]
host=dynamic


capi.conf
Code:
[ISDN3]          ; fritzbox 7050 internal S0
ntmode=yes       ;if isdn card operates in nt mode, set this to yes
isdnmode=[COLOR="#FF0000"]msn[/COLOR]     ;'MSN' (point-to-multipoint) or 'DID' (direct inward dial)
                 ;[COLOR="#FF0000"]when using NT-mode, 'DID' should be set in any case[/COLOR]
[/QUOTE]

Für den Einstig immer gerne genommen [URL="http://www.das-asterisk-buch.de/"]www.das-asterisk-buch.de[/URL]
 
Zitat von NutJob

register => <user>:<pw>@sipconnect.sipgate.de/pw <= Das Passwort als Contact?
Falsch eingefügt. Anstatt /pw habe ich tatsächlich "/user" stehen
register => 4975yyyyyyyyyy0 :<pw>@192.168.1.2:4975yyyyyyyyyy0 <= das macht so keinen Sinn, damit registriert sich Asterisk bei sich selbst auf Port 4975...
Falsch anonymisiert. Tatsächlich steht hier "register => 4975yyyyyyyyyy0:<pw>@192.168.1.2:5260/4975yyyyyyyyyy0"

[4975yyyyyyyyyy0]
host=dynamic
Was ist hier falsch?

capi.conf
Code:
 [ISDN3] ; fritzbox 7050 internal S0
 ntmode=yes ;if isdn card operates in nt mode, set this to yes
 isdnmode=msn ;'MSN' (point-to-multipoint) or 'DID' (direct inward dial)
 ;when using NT-mode, 'DID' should be set in any case[/QUOTE]

              [COLOR="#008000"]hab ich geändert, Asterisk neu gestartet, aber keine Verbesserung. In der FB Oberfläche habe ich jetzt auch das Häckchen bei Festnetz entfernt und die TK-Anlage aus den Telefoniegeräten entfernt. Leider Alles beim Alten...[/COLOR]
 
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.