Asterisk via CAPI an TK Anlage

ich komm nicht weiter jungs! :-( woran kanns denn liegen wenns nicht an der extensions.conf liegt und ich auch intern von Xlites zu ISDN Nebenstellen über CAPI telefonieren kann? habe vorhin was gelesen von zaptel.conf und zapata.conf? was haben die denn mit CAPI zutun? irgendwie meine ich muss es irgendwo daran liegen. weil mich verwirrt auch das 'Modem[i4l]/ttyI0' in der konsolenausgabe. schaut selber nochmals ... das war ein anruf auf 55 und während der backgroundansage die 3 gewählt:

Code:
*CLI>
    -- creating pipe for PLCI=0x101 msn = *
       > sent ALERT_REQ PLCI = 0x101
    -- Executing Goto("CAPI[contr1/55]/3", "auto_attendant|99|1") in new stack
    -- Goto (auto_attendant,99,1)
    -- Executing Answer("CAPI[contr1/55]/3", "") in new stack
    -- CAPI Answering for MSN 55
    -- Executing BackGround("CAPI[contr1/55]/3", "demo-congrats") in new stack
    -- Playing 'demo-congrats' (language 'en')
    -- started pbx on channel (callgroup=0)!
  == Starting Modem[i4l]/ttyI0 at viaisdn,55,1 failed so falling back to exten 's'
  == Starting Modem[i4l]/ttyI0 at viaisdn,s,1 still failed so falling back to context 'default'
Jun  1 10:45:27 WARNING[1116924848]: pbx.c:1877 ast_pbx_run: Channel 'Modem[i4l]/ttyI0' sent into invalid extension 's' in context 'default', but no invalid handler
    -- Hungup 'Modem[i4l]/ttyI0'
  == CDR updated on CAPI[contr1/55]/3
    -- Executing Dial("CAPI[contr1/55]/3", "CAPI/55:25") in new stack
Jun  1 10:45:28 NOTICE[1114721200]: chan_capi.c:1173 capi_request: didn't find capi device with outgoing msn = 55. you should check your config!
Jun  1 10:45:28 NOTICE[1114721200]: app_dial.c:742 dial_exec: Unable to create channel of type 'CAPI'
  == Everyone is busy/congested at this time
    -- CAPI Hangingup
       > sent DISCONNECT_REQ PLCI=0x101
    -- removed pipe for PLCI = 0x101

hier dazu nochmals der auszug aus der extensions.conf

Code:
[incoming_capi]
include => auto_attendant
exten => 55,1,Goto(auto_attendant,99,1)

[auto_attendant]
exten => 99,1,Answer
exten => 99,1,ResponseTimeout(5)
exten => 99,2,Background(demo-congrats)

exten => 1,1,Dial(SIP/31)
exten => 2,1,Dial(SIP/32)
exten => 3,1,Dial(CAPI/55:25)

exten => t,1,Hangup

die zapata.conf habe ich KOMPLETT unberührt gelassen. muss ich hier was eintragen????

zapata.conf

Code:
[trunkgroups]


[channels]
context=default
switchtype=national
signalling=fxo_ls
rxwink=300              ; Atlas seems to use long (250ms) winks
usecallerid=yes
callwaiting=yes
usecallingpres=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
rxgain=0.0
txgain=0.0
group=1
callgroup=1
pickupgroup=1
immediate=no

eine zaptel.conf hab ich garnich? :roll:
 
zapata/zaptel hat *gar nichts* damit zu tun. Einfach ignorieren.

Die sache mit dem I4L könnte was mit der modem.conf zu tun haben -- aber ehrlich gesagt verwirrt mich das hier jetzt auch grade ein wenig.

Eigentlich solltest Du nur capi.conf / extensions.conf / sip.conf brauchen.

Jun 1 10:45:28 NOTICE[1114721200]: chan_capi.c:1173 capi_request: didn't find capi device with outgoing msn = 55. you should check your config!
Auf alle Fälle stimmt was mit der capi.conf nicht -- herzeigen :)

Hast Du in der modem.conf irgendwas konfiguriert? Du verwendest auch wirklich CAPI, oder? :)
 
hallo rajo

ok, dann bin ich beruhigt, dass es mit zapata.conf usw nix zutun hat! ich dachte schon ...! :roll:

hier mal meine capi.conf

Code:
; CAPI config
[general]
nationalprefix=0         ;Amtsholung
internationalprefix=00
rxgain=0.8               ;Echos kompensieren
txgain=0.8               ;Echos kompensieren

[interfaces]

msn=55                   ;MSN fuer abgehende Rufe
incomingmsn=*        ;MSN fuer eingehende Rufe
controller=1             ;welcher Controller
softdtmf=1               ;0=DTMF Toene werden von ISDN karte generiert
                              ;1=DTMF Toene werden von Asterisk generiert
;accountcode=

context=default

;echosquelch=1
;echocancel=yes
;echotail=64
;callgroup=1
;deflect=12345678

devices=2                ;Anzahl der Kanaele


;PointToPoint (55512-0)
;for outgoing calls use example 5551212
;and in dialplan you can use callerid like
;exten => _0XXX.,1,StripMSD,1
;exten => _XXX.,2,Dial,CAPI/55512${CALLERIDNUM}:bBYEXTENSION
;============================================================
;mode=immediate
;isdnmode=ptp
;msn=55512
;controller=2
;devices=30

bei incomingmsn habe ich auch mal 55 eingetragen gehabt, aber es funktionierte auch nich :-(

und hier die modem.conf .... allerdings is da ja eigentlich alles auskommentiert?

Code:
 ;isdn4linux
;
; Configuration file
;
[interfaces]
;
; By default, incoming calls should come in on the "remote" context
;
;context=default
;
; Modem Drivers to load
;
;driver=aopen   ; modem by AOpen
driver=i4l      ; isdn4linux - an alternative to i4l is to use chan_capi
;
; Default language
;
;language=en
;
; We can optionally override the auto detection.  This is necessary
; particularly if asterisk does not know about our kind of modem.
;
;type=autodetect
;type=aopen
;
; We can strip a given number of digits on outgoing dialing, so, for example
; you can have it dial "8871042" when given "98871042".
;
stripmsd=0
;
; Type of dialing
;
dialtype=tone
;dialtype=pulse
;
; Mode selection.  "Immediate" means that as soon as you dial, you're connected
; and the line is considered up.  "Ring" means we wait until the ring cadence
; occurs at least once.  "Answer" means we wait until the other end picks up.
;
;mode=answer
;mode=ring
mode=immediate
;
; List all devices we can use.
;
;device => /dev/ttyS3
;
; ISDN example (using i4l)
;
;msn=55
;device => /dev/ttyI0
;incomingmsn=55
;outgoingmsn=55

ich hoffe wir kommen dem hund auf die schliche?! so langsam nervts mich ;-)

ob ich auch wirklich über CAPI telefunze ... öhm ... wie kann ich das so wirklich ausprobieren oder sehn???? :oops: als linux idiot weiss ich das irgendwie nich :roll: aber die CAPI anweisungen zum internen telefonieren tun ja auch?

hier nochmals ein auszug aus der konsole wenn ich 55 und dann 3 wähle ... habe in der modem.conf nun noch etwas mehr auskommentiert ... aber tun tuts trotzdem nicht :-( :

Code:
 creating pipe for PLCI=0x101 msn = *
       > sent ALERT_REQ PLCI = 0x101
    -- Executing Goto("CAPI[contr1/55]/2", "auto_attendant|99|1") in new stack
    -- Goto (auto_attendant,99,1)
    -- Executing Answer("CAPI[contr1/55]/2", "") in new stack
    -- CAPI Answering for MSN 55
    -- Executing BackGround("CAPI[contr1/55]/2", "demo-congrats") in new stack
    -- Playing 'demo-congrats' (language 'en')
    -- started pbx on channel (callgroup=0)!
  == CDR updated on CAPI[contr1/55]/2
    -- Executing Dial("CAPI[contr1/55]/2", "CAPI/55:25") in new stack
    -- creating pipe for PLCI=-1
       > sent CONNECT_REQ MN =0xac
    -- Called 55:25
    -- CAPI[contr1/55]/3 is making progress passing it to CAPI[contr1/55]/2
    -- CAPI Hangingup
       > sent DISCONNECT_REQ PLCI=0x201
    -- removed pipe for PLCI = 0x201
  == Spawn extension (auto_attendant, 3, 1) exited non-zero on 'CAPI[contr1/55]/2'
    -- CAPI Hangingup
    -- removed pipe for PLCI = 0x101

pleeease help meeee ;-)
 
was mir da grad ein und auffällt ... stimmt denn das mit den includes und den contexten soweit????

in der capi.conf context = default

und in der extensions.conf dann :

Code:
[default]
include => 31
include => 32

include => incoming_sipgate
include => incoming_capi

include => outgoing_sipgate
include => outgoing_capi
include => auto_attendant
.
.
.
[outgoing_sipgate]
.
.
.
[incoming_sipgate]
.
.
.
[outgoing_capi]
.
.
.
[incoming_capi]
include => auto_attendant
.
.
exten => 55,1,Goto(auto_attendant,99,1)
.
.
.
[auto_attendant]
exten => 99,1,Answer
exten => 99,1,ResponseTimeout(5)
exten => 99,2,Background(demo-congrats)

exten => 1,1,Dial(SIP/31)
exten => 2,1,Dial(SIP/32)
exten => 3,1,Dial(CAPI/55:25)
exten => t,1,Hangup


passt das????
 
ich werd noch bekloppt mit dem mist hier! wiiiiesoooooo geht das nich mit dem auf CAPI weiterleiten?!?!?! :cry:

nochmals eine ausgabe auf der konsole:

Code:
*CLI>
    -- creating pipe for PLCI=0x101 msn = 55
       > sent ALERT_REQ PLCI = 0x101
    -- Executing Goto("CAPI[contr1/55]/0", "auto_attendant|99|1") in new stack
    -- Goto (auto_attendant,99,1)
    -- Executing Answer("CAPI[contr1/55]/0", "") in new stack
    -- CAPI Answering for MSN 55
    -- Executing BackGround("CAPI[contr1/55]/0", "demo-congrats") in new stack
    -- started pbx on channel (callgroup=0)!
    -- Playing 'demo-congrats' (language 'en')
  == CDR updated on CAPI[contr1/55]/0
    -- Executing Dial("CAPI[contr1/55]/0", "CAPI/55:25") in new stack
    -- creating pipe for PLCI=-1
       > sent CONNECT_REQ MN =0x33
    -- Called 55:25
    -- CAPI[contr1/55]/1 is making progress passing it to CAPI[contr1/55]/0
    -- CAPI Hangingup
       > sent DISCONNECT_REQ PLCI=0x201
    -- removed pipe for PLCI = 0x201
  [color=red]== Spawn extension (auto_attendant, 3, 1) exited non-zero on 'CAPI[contr1/55]/0'[/color]    -- CAPI Hangingup
    -- removed pipe for PLCI = 0x101

was bedeutet denn Spawn extension (auto_attendant, 3, 1) exited non-zero on 'CAPI[contr1/55]/0' ??? also das exited non-zero ... bla bla? was heisst denn "exited" ??? :doof: "ausgestiegen" von "exit" ? wiel genau DA scheint er ja auch auszusteigen! es passiert einfach NIX wenn ich die 3 wähle.
 
mir fällt grad was ein! könnte es unter umstaänden sein, dass es was mit DTMF inband und outband zutun hat? dass das ISDN telefon vielleicht die DTMF Töne nicht "inband" schickt ? :shock: wobei er ja in Spawn extension (auto_attendant, 3, 1) exited non-zero on 'CAPI[contr1/55]/0' die "3" einträgt ... kann ja also auch irgendwie nich sein??? :roll: was aber heisst das /0 in der zeile??? weil wenn ich das ganze mache und ein SIP-Phone anklingel, dann steht da ne /2? Spawn extension (auto_attendant, 1, 1) exited non-zero on 'CAPI[contr1/55]/2' ... ich weiss nich weiter :(
 
:huhu: findet den jemand nen fehler in der capi.conf oder meinem dialplan??? mich macht das noch wahnsinnig dass das nich tun will! :doof:
 
:-(

rajo? tintin? usw ... meine retter in letzter not??? was läuft hier denn falsch???? :roll:
pleeeease help!
 
keine Ahnung ... die letzten Logs sehen imho eigentlich gesund aus... sicher, dass jetzt die TK-Seite korrekt konfiguriert ist? MSN usw. ?
 
ja, also daran kanns eigentlich kaum liegen? ich mein ... ich rufe intern auf der MSN 55 vom ISDN telefon aus an ... dann kommt die ansage ... während der ansage kann ich 1,2,3 oder 4 drücken .... (4 ist übrigens mittlerweile ein Grandstream ATA 486 geworden ... wenigstens DAS hat funktioniert ,auch wenn die sprachquali noch daneben is :roll: )

drücke ich die 3 die mich per CAPI dann zum ISDN telefon 25 verbinden sollte, passiert einfach gaaaarnichts! :-( die nebenstelle 25 is in der TK Anlage aber konfiguriert. ich kann ja auch vom SIP phone aus dort anrufen! ich weiss echt nich woran das liegen könnte? das is jetzt sozusagen das einzige was nich so funktioniert wies soll! wie könnte ich denn das alles noch detailierter mitloggen???? ich bin doch so n linux-idiot! :roll:

meine nächste aufgabe 2 asterisk via VPN und iax zu koppeln hab ich schon aufm tisch liegen :( :cry: au weia!
 
Nur mal zum Spass: Ruf mal mit einem SIP-Client in den Kontext an und drück die 3 ... funktioniert das?
 
hi!

nein ... tut jetzt grad erstmal nicht ... aber er nimmt die anderen Zahlen auch nicht an. da muss ich wohl das DTMF noch umschalten auf "inband" oder so ... ich schau mal schnell nach im X-Lite *nachschau* ... oops ... das steht auf inband??? :roll: und wenn ich da "no" mache? *ausprobier* ah, tut! AAAAAAAAAAAAAH und tut auch nach ISDN!!! :shock: ich werd verrückt! was heisst das jetzt?????
 
nun, wenn Du *vom* ISDN *zum* ISDN anrufst, dann geht es nicht.
wenn Du *von* SIP *zu* ISDN telefonierst geht es.

--> d.h. im ersten Fall sind alle verfügbaren ISDN-Kanäle belegt, so dass Asterisk nicht wieder rauskommt.

Aber wenn ich das richtig gesehen habe, müsste ja noch ein B-Kanal frei sein.

D.h. Du musst Asterisk klarmachen, dass er dann jetzt auch den zweiten B-Kanal verwenden soll zum rausrufen. IIRC hatten wir das Problem schonmal hier und afaik gab es auch eine Lösung dazu. Weiss ich jetzt aber auch nicht auswendig.

Such einfach mal durch das Asterisk ISDN mit CAPI-Forum.
 
habe weiter getestet! sehr seltsam alles! also :

ich kann mit dem xlite in den context reinrufen und mich auch an die ISDN stelle verbinden ... tut!

jetzt habe ich zum test folgendes gemacht ... nachdem ich mich mit xlite zu der ISDN nebenstelle habe verbinden lassen habe ich versucht ein weiteres ISDN Telefonat aufzubauen nach extern! im ersten moment sah es so aus als würde es funktionieren, da ich im headset den rufton hörte. das angerufene telefon jedoch klingelte nicht!

was bedeutet das???? ich komm mit den MSN in konflikt???? ich habe in der capi.conf nur EINE MSN eingetragen (die 55) . muss ich jetzt auf suse ein 2ten interface mit einer weiteren MSN konfigurieren (zB 54) und diese 54 bei outgoingmsn in der capi eintragen???? ich hätts längst probiert, aber dazu muss erst auf der TK anlage die 54 freigegeben werden :roll: und das kann ich nicht machen. muss der sysadmin tun .
 
da hätte ich vor meinem post wohl mal F5 drücken sollen? :wink:

ok, ich werd mich mal auf die suche machen. ein B kanal müsste ja noch frei sein!? brauch ich denn dann dafür noch ne zweite MSN??? das is mir noch unklar.
 
Kostenlos!

Neueste Beiträge

Statistik des Forums

Themen
248,857
Beiträge
2,302,988
Mitglieder
378,504
Neuestes Mitglied
Hallo61Hallo