HowTo: Asterisk Fritz->fcpci->capi->chan_capi

james007

Neuer User
Mitglied seit
3 Mai 2006
Beiträge
23
Punkte für Reaktionen
0
Punkte
1
Hallo zusammen,

nach etlichen versuchen und zig Stunden googelei habe ich es endlich geschafft, eine
Fritz PCI auf Asterisk Centos 4.3 zum rennen zu bewegen.

Bei vielen scheitert es bereits an dem Kernelmodul FCPCI, welches es von AVM nur für Suse gibt.
Diese Version führt beim Centos Kernel <=2.6.9 unweigerlich zu einem Kernel Panik.
Auch die aktuelle Version 'fcpci-suse93-3.11-07.tar.gz' erzeugt einen Kernel Panik.

Aber mit ein wenig suchen habe ich es denoch geschafft.

Das eigendlich FCPI Kernelmodul habe ich mir von hier besorgt.
Natuerlich passend zur Kernelversion: 2.6.9-34.EL

Prüft das mit uname -r

Achtung:
Eine neue Kernelversion ist draussen 2.6.9-34.0.1.EL
Wenn ihr ein Update macht, müsst ihr zwingend auch das Kernelmodul aktualisieren.

Das neue Kernelmodul gibt es hier:
http://dl.atrpms.net/sl4-i386/atrpms/stable/fcpci-kmdl-2.6.9-34.0.1.EL-03.11.07-9.el4.at.i686.rpm

Schritt 1:
----------
Nun das Modul runterladen. Am besten dafür ein Verzeichnis erstellen.
wget http://mirror.phy.olemiss.edu/mirro...i-kmdl-2.6.9-34.EL-03.11.07-9.el4.at.i686.rpm

Diesen dann mit rpm -i installieren.

Nachtrag:

Es heisst korrekt:

rpm -i fcpci-kmdl-2.6.9-34.EL-03.11.07-9.el4.at.i686.rpm



Schritt 2:
----------
Wir erstellen nun eine Datei 'capi.conf' in /etc/

Dies kann man wie folgt machen:
touch /etc/capi.conf

Man beachte, dass es sich hier nicht um die 'capi.conf' in /ect/asterisk handelt!

Sie muss nur folgenden Eintrag enthalten:

fcpci - - - - - -

Bitte die Striche nicht vergessen! Es sind 6.


Schritt 3:
----------
Nun in der /etc/modprobe.conf die Hisax Module abschalten.
Als letzten Eintrag bitte folgendes Einfügen:

alias hisax_fcpcipnp off
alias hisax_isac off
alias hisax off

Wenn wir das nicht tun, erhalten wir einen Fehler der wie folgt heisst:

kobject_register failed for fcpci (-17)

Nachtrag:

Die Einträge:
alias hisax_isac off
alias hisax off

müssen in die modprobe.conf eingetragen werden.

Schritt 4:
-------------------------------
Ich habe zudem noch capi4linux installiert.
und zwar die Version capi4k-utils-2005-07-18.tar.gz

Entpacken mit:
tar -xzvf capi4k-utils-2005-07-18.tar.gz

Ob das an der Stelle nötig ist, weis ich nicht.
Man kann es ja auch erstmal ohne probieren.
Zumindest funktioniert es auch mit.

Installation mit:
make config

Hier nix eingeben! Einfach exit und save!
Danach generiert er das config file.

Dann:
make
make install

Das wars.

Schritt 5:
----------
Nun werden wir ein Startscript erstellen, dass das Modul automatisch läd.
Dies gibt es unter:
http://www.friendglow.net/en/faq/faq_kernel26_udev_en.shtml

Einfach das Script von o.g. URL kopieren.
Eine Datei 'capi' in /etc/rc.d/init.d erstellen und die Datei mit ausführbaren rechten
versehen (siehe weiter unten).

Rechte wie folgt setzen:
chmod 755 /etc/rc.d/init.d/capi

Wichtig!
Im Script unbeding folgendes ändern!

mknod -m 660 /dev/capi20 c 68 0
in
mknod -m 666 /dev/capi20 c 68 0

Sonst werden die Rechte beim Neustart für die chan_capi nicht korrekt
gesetzt und Asterisk startet nicht.

Man erhält bei der Eingabe von astereisk -r dann:

Code:
>asterisk -r 
> Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)


Nun noch Symlinks in rc2.d, rc3.d und rc5.d erstellen.

ln -s /etc/rc.d/init.d/capi /etc/rc.d/rc2.d/S09capi
ln -s /etc/rc.d/init.d/capi /etc/rc.d/rc2.d/K82capi

ln -s /etc/rc.d/init.d/capi /etc/rc.d/rc3.d/S09capi
ln -s /etc/rc.d/init.d/capi /etc/rc.d/rc3.d/K82capi

ln -s /etc/rc.d/init.d/capi /etc/rc.d/rc5.d/S09capi
ln -s /etc/rc.d/init.d/capi /etc/rc.d/rc5.d/K82capi


Ich habe in dem Script die Zeile:

chown root.dialout /dev/capi20

auskommentiert, da sie einen Fehler produziert (ist 3 mal vorhanden).

Nachtrag:
Link zum Startscript. capi.tar =>: http://cak.no-ip.com/asterisk/capi.tar

Dieses Startscript vermeidet u.a. den Fehler bei capiinit:
ERROR: cannot open /dev/capi20 nor /dev/isdn/capi20 - no such file or directory (2)


Schritt 6:
----------
Nun starten wir unser System mit 'reboot' neu.

Wir sollten nun mit dem Befehl 'capiinfo' sowas sehen:
Code:
[root@asterisk1 modules]# capiinfo
Number of Controllers : 1
Controller 1:
Manufacturer: AVM GmbH
CAPI Version: 2.0
Manufacturer Version: 3.11-07  (49.23)
Serial Number: 1000001
BChannels: 2
Global Options: 0x00000039
   internal controller supported
   DTMF supported
   Supplementary Services supported
   channel allocation supported (leased lines)
B1 protocols support: 0x4000011f
   64 kbit/s with HDLC framing
   64 kbit/s bit-transparent operation
   V.110 asynconous operation with start/stop byte framing
   V.110 synconous operation with HDLC framing
   T.30 modem for fax group 3
   Modem asyncronous operation with start/stop byte framing
B2 protocols support: 0x00000b1b
   ISO 7776 (X.75 SLP)
   Transparent
   LAPD with Q.921 for D channel X.25 (SAPI 16)
   T.30 for fax group 3
   ISO 7776 (X.75 SLP) with V.42bis compression
   V.120 asyncronous mode
   V.120 bit-transparent mode
B3 protocols support: 0x800000bf
   Transparent
   T.90NL, T.70NL, T.90
   ISO 8208 (X.25 DTE-DTE)
   X.25 DCE
   T.30 for fax group 3
   T.30 for fax group 3 with extensions
   Modem

  0100
  0200
  39000000
  1f010040
  1b0b0000
  bf000080
  00000000 00000000 00000000 00000000 00000000 00000000
  01000001 00020000 00000000 00000000 00000000

Supplementary services support: 0x000003ff
   Hold / Retrieve
   Terminal Portability
   ECT
   3PTY
   Call Forwarding
   Call Deflection
   MCID
   CCBS

Weiterhin prüfen wir, ob auch die Kernelmodule korrekt geladen wurden.

Code:
[root@asterisk1 ~]# lsmod |grep capi
capi                   18177  4
capifs                  5961  2 capi
kernelcapi             44769  2 fcpci,capi

Schritt 7:
----------
Ist das erfogreich, können wir uns an die 'chan_capi' machen, welche Vorraussetzung
für den betrieb mit Asterisk ist.

Ich habe die letzte Version genommen 0.6.5 von folgender url:

ftp://ftp.chan-capi.org/chan-capi/chan_capi-cm-0.6.5.tar.gz

Diese entpacken wir in einem separatem Verzeichnis.

Installation mit:

make
make install
make install_config


In /etc/asterisk/modules.conf müssen wir folgendes einfügen:
load => chan_capi.so

Und in der [global] Sektion:
chan_capi.so=yes

Nicht vergessen eine leere Zeile am Ende einzufügen!
Das muss so sein.

Wir kontrollieren ob nun auch die die capi.conf in /etc/asterisk vorhanden ist.
Es handelt sich hierbei um die capi.conf die chan_capi nutzt.
Sie befindet sich in /etc/asterisk und sollte folgenden Inhalt aufweisen:

Code:
[general]
nationalprefix=0
internationalprefix=00
rxgain=0.8
txgain=0.8
language=de      ;set default language
;ulaw=yes        ;set this, if you live in u-law world instead of a-law

; interface sections ...

[ISDN1]          ;this example interface gets name 'ISDN1' and may be any
                 ;name not starting with 'g' or 'contr'.
;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=0    ;ISDN4BSD default
;controller=7    ;ISDN4BSD USB default
controller=1     ;capi controller number to use
group=1          ;dialout group
;prefix=0        ;set a prefix to calling number on incoming calls
softdtmf=off     ;enable/disable software dtmf detection, recommended for AVM cards
relaxdtmf=on     ;in addition to softdtmf, you can use relaxed dtmf detection
accountcode=     ;Asterisk accountcode to use in CDRs
context=capi-in  ;context for incoming calls
;holdtype=hold   ;when Asterisk puts the call on hold, ISDN HOLD will be used. If
                 ;set to 'local' (default value), no hold is done and Asterisk 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
                 ;(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
;bridge=yes      ;native bridging (CAPI line interconnect) if available
;callgroup=1     ;Asterisk call group
;language=de     ;set language for this device (overwrites default language)
devices=2        ;number of concurrent calls on this controller
                      ;(2 makes sense for single BRI, 30 for PRI)

Man achte bitte auf den context!
Dieser ist defaultseitig auf capi-in gesetzt!

Dieser muss manuell in die extensions_custom.conf eingetragen werden,
da man dies per FreePBX nicht (noch nicht) bewerkstelligen kann.

Warum in die extensions_custom.conf?
Weil FreePBX die Konfigurationsdateien welche auf _additional.conf enden
bei jeder Änderung neu schreibt und damit eure Einträge gnadenlos löscht.

Die Konfigdateien welche auf _custom.conf enden, werden automatisch included und bleiben unberührt.


Schritt 8:
----------
So das wäre fast alles. Aber auch nur fast.
Wir werden feststellen, das beim starten Asterisk moppert das die capi nicht geladen ist.
Sie ist es aber. Dummerweise ist die Fehlerbeschreibung irreführend, da es heissen muss
das keine Zugriffsrechte von chan_capi her auf /dev/capi.20 vorhanden sind.

Nachtrag:
Steht übrigens auch in der readme des Packets. (Habs eben erst gelesen).
Lest euch die bitte durch, da dort alles relvante drinsteht auch was das wählen angeht!

Nicht selten liest man dann sowas:
Code:
[chan_capi.so] => (Common ISDN API for OpenPBX)
== Parsing '/usr/local/etc/capi.conf': Found
Apr 29 17:22:08 WARNING[3080100384]: chan_capi.c:4636 cc_init_capi: CAPI not installed, CAPI disabled!
Apr 29 17:22:08 WARNING[3080100384]: loader.c:348 __load_resource: chan_capi.so: load_module failed, returning -1
Apr 29 17:22:08 WARNING[3080100384]: loader.c:488 load_modules: Loading module chan_capi.so failed!


Führt man asterisk als root aus mit asterisk -vvvc dann gehts komischerweise.

Also hier noch mal die Rechte auf /dev/capi.20 auf 666 setzten.
chmod 666 /dev/capi.20
chmod 666 /dev/capi.20.00 (existiert bei capi4linux)

Das mit den Rechten erledigt schon unser Startscript (siehe Schritt5).
Ist nur zur Sicherheit nochmal hier aufgeführt.

amportal restart und voila es sollte funzen.



So ich denke das ich damit einigen ein kleine Hilfestellung geben konnte,
die wie ich verzweifelt nach einer Lösung gesucht haben und nur
Bruchstücke an verwertbaren Infos sammeln konnten.

Ich will hoffen das ich nichts vergessen habe oder sich irgendwo
gravierende Tippfühler in den Anweisungen eingeschlichen haben.


Info:
-----
Noch ein kleiner Hinweis. Die Durchführung geschieht auf eigene Gefahr hin.
Ich kann keine Garantie für dafür geben.
Dies stellt nur den Verlauf meiner Installation dar, welche auch schlussendlich
funktioniert.

Fragen und Anregungen sind gerne gesehen, also nicht zögern. ;-)

PS: Nicht irritieren lassen bez. der Signatur. Die o.g Installation war ein echter Rechner ;-)

In diesem Sinne

de Chris ;-)


History:
Nachbearbeitet am: 20.05.2006
- Startscript Rechte

Nachbearbeitet am: 26.05.2006
- capi.conf (chan_capi)

Nachbearbeitet am 27.05.2006
- neues Kernelmodul für 2.6.9-34.0.1.EL

Nachbearbeitet am 30.05.2006
- Link für fertiges Startscript hinzugefügt.

Nachbearbeitet am 04.06.2006
- Relative Symlinks auf absolute Symlinks geändert.
 
Zuletzt bearbeitet:
guten tag

hab mir mal deine post von heute mittag zu herzen genommen und bin irgendwie hängen geblieben

Prüft das mit uname -r (passt)


Schritt 1:
----------
Nun das Modul runterladen. Am besten dafür ein Verzeichnis erstellen.
wget http://mirror.phy.olemiss.edu/mirror...l4.at.i686.rpm (passt auch)

Diesen dann mit rpm -i installieren. --->(no packages given for install)

ich kenn mich nich so gut aus aber ich wollt fragen:
hast du irgend wie was vergessen : )
 
Johadrim schrieb:
hab mir mal deine post von heute mittag zu herzen genommen und bin irgendwie hängen geblieben

Prüft das mit uname -r (passt)


Schritt 1:
----------
Nun das Modul runterladen. Am besten dafür ein Verzeichnis erstellen.
wget http://mirror.phy.olemiss.edu/mirror...l4.at.i686.rpm (passt auch)

Diesen dann mit rpm -i installieren. --->(no packages given for install)

ich kenn mich nich so gut aus aber ich wollt fragen:
hast du irgend wie was vergessen : )

Ups ja sicher da muss natuerlich das Paket dahinter.

Korrekt heisst es dann.

rpm -i fcpci-kmdl-2.6.9-34.EL-03.11.07-9.el4.at.i686.rpm

Passiert schonmal so nachts um 1:30 ;-))

Habs als Nachtrag korrigiert. Danke für den Hinweis. ;-)
 
Zuletzt bearbeitet:
sehr gutes tutorial. Hat mir sehr geholfen, jetzt kann ich zumindest schon mal anrufe empfangen :D

Muss jetzt nur noch rausbekommen, wie man auch vom VoIP telefon wegwählen kann.
 
legend schrieb:
sehr gutes tutorial. Hat mir sehr geholfen, jetzt kann ich zumindest schon mal anrufe empfangen :D

Muss jetzt nur noch rausbekommen, wie man auch vom VoIP telefon wegwählen kann.

Das freut mich. :)

Was das rauswählen angeht kann ich Dir nur die Readme im chan_capi
Paket empfehlen. Dort sind viele Tips und Beispiele wie man das angeht.

Hier mal ein kleiner Auszug:

Code:
The Dial string
===============
  Example:        Dial(CAPI/g<group>/[<callerid>:]<destination>[/<params>])
  Or:             Dial(CAPI/contr<controller>/[<callerid>:]<destination>[/<params
>])
  Or:             Dial(CAPI/<interface-name>/[<callerid>:]<destination>[/<params>
])
  'group' can be a value, comma separated list of values or a range
  using '-'. The according interface is found by searching a match with
  the 'group' specified in the capi.conf for each interface.
  The optional <callerid> followed by an ':' can be used to set a callerid
  for this dial() command, without changing the original channel's callerid.
  'params' is an optional part to set special settings for this call.
  The string consists of a list of characters with the following meaning:
   'b' : early B3 always.
   'B' : early B3 on successful calls only.
   'd' : use the default caller id which is set by defaultcid= in capi.conf
   'o' : use overlap sending of number.
         (Useful if additional digits shall be send afterwards or together
          with 'b' to get dialtone and then send the number, e.g. if otherwise
          no progress tones are available)
  If the <interface-name> is used in dialstring, be sure the name (specified
  in capi.conf) does not start with 'contr' or 'g'.
  CLIP/CLIR uses the calling presentation of the calling channel, which can
  be modified using the SetCallerPres() application. Use
  SetCallerPres(prohib_not_screened) for CLIR. That is why the msn= param in
  capi.conf has been removed. The callerID is also taken from the calling channel
.

Weiterhin hast du mit der chan_capi in Asterisk ein weiteren Befehl erhalten, der capicommand() heisst.

Dieser Unterstützt u.a folgende Merkmale:

- Call Deflection
- Fax receive
- Malicious Call Identification
- Hold
- Holdtype
- Retrieve
- ECT (Explicit call transfer)
- echosquelch
 
legend schrieb:
sehr gutes tutorial. Hat mir sehr geholfen, jetzt kann ich zumindest schon mal anrufe empfangen :D

Muss jetzt nur noch rausbekommen, wie man auch vom VoIP telefon wegwählen kann.

Unter FreePBX nen Trunk setzten (Add Custom trunk).

Beachte hierbei das bei Custom Dialstring steht:

CAPI/ISDN1/$OUTNUM$

ISDN1 ist hier in der capi.conf konfiguriert!
Muss also identisch, sein sonst findet er das device nicht.

Wie du es nennst ist egal, nur es muss gleich sein.
Vermeide Bindestriche das mag FreePBX irgendwie nicht.


Im zweiten Schritt ne Outboundroute setzten.
Eventuell noch ein Dial Pattern setzten, so das man z.b nur mit ner 9 rauswählen kann.
Nicht vergessen dann die richtige Trunk Sequence zu wählen ;-)

und voila auch raustelefonieren geht.

Warum man das mit FreePBX machen muss und nicht manuell?
Leider setzt FreePBX für die Macros globale Variablen.
Mach man das von Hand, so funktionieren die Macros nicht und man sucht sich einen Wolf warum das nicht geht.
 
Zuletzt bearbeitet:
Hallo james007,

vielen Dank für dein HowTo. habe damit meine Fritz! Card PCI ans laufen bekommen.

Nur ein Problem taucht noch auf: Das Modul "fcpci" wird nicht automatisch geladen. Ich muss es nach jedem Neustart mit "modprobe fcpci" manuell starten, danach capi und schließlich Asterisk.

Wie kann ich fcpci in den bootvorgang einbinden?

Gruß,

Purpi
 
Purpi schrieb:
Hallo james007,

Wie kann ich fcpci in den bootvorgang einbinden?

Gruß,

Purpi
Hmm das sollte er eigendlich schon automatisch tun.

Gib mal depmod -a ein.
Hier werden die Abhängigkeiten der Kernelmodule neu geschrieben.

Was sagt das Bootlog?
 
Nur ein Problem taucht noch auf: Das Modul "fcpci" wird nicht automatisch geladen. Ich muss es nach jedem Neustart mit "modprobe fcpci" manuell starten, danach capi und schließlich Asterisk.

Wie kann ich fcpci in den bootvorgang einbinden?

Könnte man aber auch notfalls manuell einbinden.
Einfach:

vi /etc/rc.d/rc.local --> Oder Editor deiner wahl...

oben dann entsprechend

Code:
modprobe fcpci

eingeben & speichern, exit (geht bei VIM mit <ESCAPE> :wq)

Gruss Micha
 
ddreamer schrieb:
Könnte man aber auch notfalls manuell einbinden.
Einfach:

vi /etc/rc.d/rc.local --> Oder Editor deiner wahl...

oben dann entsprechend

Code:
modprobe fcpci

eingeben & speichern, exit (geht bei VIM mit <ESCAPE> :wq)

Gruss Micha

Das dumme bei rc.local ist aber, dass er den abarbeitet nach dem er im
letzten Runlevel alles abgearabeitet hat.

FCPCI muss aber viel früher geladen werden, da er u.a. im Runlevel5
einen capiinit durchführt und von einer geladenen FCPI +Capi ausgeht.
Weiterhin muss die CAPI auch noch vor dem Netzwerktreibern geladen sein.
Daher auch S09capi als Symlink.
Also bei mir lädt er den automatisch ohne zutun und einbinden.

Hier muss mit dmesg mal geprüft werden warum er den nicht lädt, wenn
depmod -a nicht funktioniert hat.

Hier mal ein Auszug aus dem Boot.log:

Code:
May 20 22:24:48 asterisk1 rc.sysinit: Checking filesystems succeeded 
May 20 22:24:48 asterisk1 rc.sysinit: Mounting local filesystems:  succeeded 
May 20 22:24:48 asterisk1 rc.sysinit: Enabling local filesystem quotas:  succeede
d 
May 20 22:24:49 asterisk1 rc.sysinit: Enabling swap space:  succeeded 
May 20 22:24:54 asterisk1 microcode_ctl: microcode_ctl startup succeeded 
May 20 22:25:09 asterisk1 kudzu:  succeeded 
[B][COLOR="Red"]May 20 22:25:14 asterisk1 capi: capiinit startup succeeded [/COLOR][/B]
May 20 22:25:19 asterisk1 rc: Starting pcmcia:  succeeded 
May 20 22:25:20 asterisk1 zaptel: Loading zaptel framework:  succeeded 
May 20 22:25:29 asterisk1 zaptel: Running ztcfg:  succeeded 
May 20 22:25:30 asterisk1 sysctl: net.ipv4.ip_forward = 0 
May 20 22:25:30 asterisk1 sysctl: kernel.sysrq = 0 
May 20 22:25:30 asterisk1 sysctl: net.ipv4.conf.default.accept_source_route = 0 
May 20 22:25:30 asterisk1 sysctl: net.ipv4.conf.default.rp_filter = 1 
May 20 22:25:30 asterisk1 sysctl: kernel.core_uses_pid = 1 
May 20 22:25:30 asterisk1 network: Setting network parameters:  succeeded 
May 20 22:25:31 asterisk1 network: Bringing up loopback interface:  succeeded 
May 20 22:25:36 asterisk1 network: Bringing up interface eth0:  succeeded 
May 20 22:25:37 asterisk1 network: Bringing up interface eth1:  succeeded 
May 20 22:25:41 asterisk1 rpcidmapd: rpc.idmapd startup succeeded


Auszug aus dmegs:

Code:
EXT3 FS on hda1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
Adding 779144k swap on /dev/hda3.  Priority:-1 extents:1
IA-32 Microcode Update Driver: v1.14 <[email protected]>
microcode: CPU0 updated from revision 0x35 to 0x37, date = 09231998
IA-32 Microcode Update Driver v1.14 unregistered
parport0: PC-style at 0x378 [PCSPP,TRISTATE]
[B][COLOR="Red"]CAPI Subsystem Rev 1.1.2.8
capifs: Rev 1.1.2.3
capi20: Rev 1.1.2.7: started up with major 68 (middleware+capifs)
fcpci: no version for "struct_module" found: kernel tainted.
fcpci: module license 'Proprietary' taints kernel.
fcpci: AVM FRITZ!Card PCI driver, revision 0.7.2
fcpci: (fcpci built on Apr 30 2006 at 09:17:47)
fcpci: -- 32 bit CAPI driver --
ACPI: PCI interrupt 0000:00:0c.0[A] -> GSI 11 (level, low) -> IRQ 11
fcpci: AVM FRITZ!Card PCI found: port 0xb800, irq 11
fcpci: Loading...
fcpci: Driver 'fcpci' attached to fcpci-stack. (152)
fcpci: Stack version 3.11-07
kcapi: Controller 1: fcpci-b800-11 attached
kcapi: card 1 "fcpci-b800-11" ready.
fcpci: Loaded.[/COLOR][/B]
Zapata Telephony Interface Registered on major 196
Zaptel Version: 1.2.5 Echo Canceller: KB1
Registered Tormenta2 PCI

Man sollte auch noch mal das Startscript prüfen und schaun ob auch die Symlinks
in den Runleveln korrekt gesetzt wurden.

Ich habe in der Howto nachträglich nochmal mein Startscript als Link zum Download hinterlegt.

Bei mir ist in der rc.local ist zwar ein capiinit start drin, aber das
war aus einer fehlgeschlagenen install-AVMB1ISDN Installation,
die es bei Asterisk noch gibt.

Auch in der modprobe.conf ist kein Eintrag vorhanden, obwohl hier der
richtige Platz für das Kernelmodul wäre.

Ein Eintrag alias fcpci fcpci könnte vielleicht helfen.
 
Zuletzt bearbeitet:
Hallo james007,

meinetwegen könnt Ihr die Suche beenden! Habe den Fehler gefunden: Es waren die Symlinks. Anbei die Symlinks, wie ich sie zunächst gesetzt hatte:

60 ln -s ../init.d S09capi
61 ln -s ../init.d K82capi

Natürlich muss man den Pfad schon komplett angeben:
447 ln -s /etc/rc.d/init.d/capi S09capi
450 ln -s /etc/rc.d/init.d/capi K82capi

Nee, wat bin ich dämlich!!! Beim Abschreiben von HowTo's sollte man das Gehirn nicht komplett abschalten.

So, genung Asche auf mein Haupt.

Vielen Dank für deine schnelle Hilfe!


Gruß,

Purpi
 
Zuletzt bearbeitet:
Hallo alle,

das HowTo von james007 funktioniert prima bei Asterisk@home.

Jetzt ist aus Asterisk@home Trixbox geworden, die aktuelle Version 1.0 habe ich gerade heruntergeldaen und installiert.
Das HowTo funktioniert auch noch bis zu Schritt 7. Beim Versuch, chan_capi zu installieren kommt folgende Fehlermeldung:

[root@asterisk1 chan_capi-cm-0.6.5]# make
./create_config.sh "/usr/include"
Include directory '/usr/include/asterisk' does not exist
make: *** [config.h] Error 1

Hat jemand eine Idee, wo das Verzeichnis hin ist? Die Asterisk-Version, auf der Trixbox basiert ist 1.2.7.1.

Für Eure Hilfe vielen Dank!

Gruß,

Purpi
 
Purpi schrieb:
Natürlich muss man den Pfad schon komplett angeben:
Purpi

Ich habe die Zuweisung der Symlinks mal geändern.
Natuerlich muss man in dem Verzeichnis schon sein, wenn man eine relative Pfadangabe als Symlink setzt.

Ich habe jetzt absolute Pfadangaben genommen, da das wieder eine Fehlerquelle mehr ausschliesst.
Es ist also jetzt egal in welchem Verzeichis man die Symlinks setzt.

Aber trotzdem ist uns/mir das eine sehr gute Hilfe zur Fehlersuche.

Allerdings bin ich nicht ganz unschuldig, da ich jetzt eben auch einen Fehler von mir entdeckt habe.
Ursprünglich stand da:

ln -s ../init.d S09capi
ln -s ../init.d K82capi

richtig wäre gewesen:

60 ln -s ../init.d/capi S09capi
61 ln -s ../init.d/capi K82capi

Das capi fehlte.

Vielen Dank noch für den Hinweis.
Ein wenig Asche auch auf mein Haupt. ;-)
 
Zuletzt bearbeitet:
Purpi schrieb:
Hallo alle,
Das HowTo funktioniert auch noch bis zu Schritt 7. Beim Versuch, chan_capi zu installieren kommt folgende Fehlermeldung:

Hat jemand eine Idee, wo das Verzeichnis hin ist? Die Asterisk-Version, auf der Trixbox basiert ist 1.2.7.1.

Purpi

Interessant. Wie schnell doch die Zeit vergeht.
Wo kann man sich den Trixbox genauer ansehen?

Also ich hab mal hier einen Auszug aus der ursprünglichen /usr/include/asterisk

Code:
[root@asterisk1 bak]# ls -al /usr/include/asterisk
total 560
drwxr-xr-x   2 root root  4096 May 10 19:01 .
drwxr-xr-x  42 root root  4096 May 17 23:37 ..
-rw-r--r--   1 root root  1716 May 10 19:01 acl.h
-rw-r--r--   1 root root 13360 May 10 19:01 adsi.h
-rw-r--r--   1 root root  5360 May 10 19:01 aes.h
-rw-r--r--   1 root root  1565 May 10 19:01 agi.h
-rw-r--r--   1 root root  1101 May 10 19:01 alaw.h
-rw-r--r--   1 root root 14291 May 10 19:01 app.h
-rw-r--r--   1 root root  1327 May 10 19:01 astdb.h
-rw-r--r--   1 root root   829 May 10 19:01 ast_expr.h
-rw-r--r--   1 root root  2347 May 10 19:01 astmm.h
-rw-r--r--   1 root root 23761 May 10 19:01 astobj.h
-rw-r--r--   1 root root  1434 May 10 19:01 astosp.h
-rw-r--r--   1 root root   248 May 10 19:01 build.h
-rw-r--r--   1 root root 11289 May 10 19:01 callerid.h
-rw-r--r--   1 root root  3152 May 10 19:01 causes.h
-rw-r--r--   1 root root  9229 May 10 19:01 cdr.h
-rw-r--r--   1 root root 43493 May 10 19:01 channel.h
-rw-r--r--   1 root root  4820 May 10 19:01 chanspy.h
-rw-r--r--   1 root root  1125 May 10 19:01 chanvars.h
-rw-r--r--   1 root root  3151 May 10 19:01 cli.h
-rw-r--r--   1 root root  1761 May 10 19:01 compat.h
-rw-r--r--   1 root root   929 May 10 19:01 compiler.h
-rw-r--r--   1 root root  7669 May 10 19:01 config.h
-rw-r--r--   1 root root  3588 May 10 19:01 crypto.h
-rw-r--r--   1 root root  3334 May 10 19:01 devicestate.h
-rw-r--r--   1 root root  2929 May 10 19:01 dlfcn-compat.h
-rw-r--r--   1 root root  1259 May 10 19:01 dns.h
-rw-r--r--   1 root root  1154 May 10 19:01 dnsmgr.h
-rw-r--r--   1 root root 15135 May 10 19:01 doxyref.h
-rw-r--r--   1 root root  4144 May 10 19:01 dsp.h
-rw-r--r--   1 root root  9570 May 10 19:01 dundi.h
-rw-r--r--   1 root root  1613 May 10 19:01 endian.h
-rw-r--r--   1 root root  2229 May 10 19:01 enum.h
-rw-r--r--   1 root root  3562 May 10 19:01 features.h
-rw-r--r--   1 root root 11522 May 10 19:01 file.h
-rw-r--r--   1 root root 16333 May 10 19:01 frame.h
-rw-r--r--   1 root root  2516 May 10 19:01 fskmodem.h
-rw-r--r--   1 root root  2872 May 10 19:01 image.h
-rw-r--r--   1 root root  3586 May 10 19:01 indications.h
-rw-r--r--   1 root root  2176 May 10 19:01 inline_api.h
-rw-r--r--   1 root root  4193 May 10 19:01 io.h
-rw-r--r--   1 root root 15133 May 10 19:01 linkedlists.h
-rw-r--r--   1 root root  1127 May 10 19:01 localtime.h
-rw-r--r--   1 root root 21612 May 10 19:01 lock.h
-rw-r--r--   1 root root  3932 May 10 19:01 logger.h
-rw-r--r--   1 root root  5560 May 10 19:01 manager.h
-rw-r--r--   1 root root  1064 May 10 19:01 md5.h
-rw-r--r--   1 root root 12405 May 10 19:01 module.h
-rw-r--r--   1 root root  1599 May 10 19:01 monitor.h
-rw-r--r--   1 root root  1333 May 10 19:01 musiconhold.h
-rw-r--r--   1 root root  1956 May 10 19:01 netsock.h
-rw-r--r--   1 root root  1785 May 10 19:01 options.h
-rw-r--r--   1 root root 27022 May 10 19:01 pbx.h
-rw-r--r--   1 root root  7049 May 10 19:01 plc.h
-rw-r--r--   1 root root  3306 May 10 19:01 poll-compat.h
-rw-r--r--   1 root root  1343 May 10 19:01 privacy.h
-rw-r--r--   1 root root  1892 May 10 19:01 res_odbc.h
-rw-r--r--   1 root root  5310 May 10 19:01 rtp.h
-rw-r--r--   1 root root  4510 May 10 19:01 say.h
-rw-r--r--   1 root root  5150 May 10 19:01 sched.h
-rw-r--r--   1 root root  1411 May 10 19:01 slinfactory.h
-rw-r--r--   1 root root  1480 May 10 19:01 srv.h
-rw-r--r--   1 root root  7484 May 10 19:01 strings.h
-rw-r--r--   1 root root  2698 May 10 19:01 tdd.h
-rw-r--r--   1 root root  1860 May 10 19:01 term.h
-rw-r--r--   1 root root  3518 May 10 19:01 time.h
-rw-r--r--   1 root root  1306 May 10 19:01 transcap.h
-rw-r--r--   1 root root  3636 May 10 19:01 translate.h
-rw-r--r--   1 root root  1103 May 10 19:01 ulaw.h
-rw-r--r--   1 root root  2569 May 10 19:01 unaligned.h
-rw-r--r--   1 root root  6796 May 10 19:01 utils.h
-rw-r--r--   1 root root   120 May 10 19:01 version.h
-rw-r--r--   1 root root  5403 May 10 19:01 vmodem.h

Such mal nach einem speziellen File sagen wir ast_expr.h
Wenn er das findet, hast du das neue Verzeichnis.

Eingabe wie folgt:
find / -name ast_expr.h

Ich würde das Makefile dann aber nicht umbasteln sondern ein
Symlink setzten.

ln -s <Pfad neues Verzeichnis> /usr/include/asterisk
 
Hallo James007,

also, die neue Adresse von Trixbox ist www.trixbox.org.

Habe deinen Rat befolgt, und nach einigen Dateien aus dem /usr/include/astersik-Verzeichnis von A@H 2.8 gesucht.
Es war aber keine der Dateien ist zu finden!

Habe dann einfach mit mkdir /usr/include/asterisk das Verzeichnis auf meiner Trixbox-Installation angelegt und die Dateien aus der A@H-Installation hereinkopiert. Bin danach deinem HowTo gefolgt und siehe da: Es funktioniert!

Habe die Dateien 'mal angehängt, falls es jemand ausprobieren möchte.


Gruß,

Purpi
 

Anhänge

  • Include_Dateien.tar.gz
    97.9 KB · Aufrufe: 144
Purpi schrieb:
Habe dann einfach mit mkdir /usr/include/asterisk das Verzeichnis auf meiner Trixbox-Installation angelegt und die Dateien aus der A@H-Installation hereinkopiert. Bin danach deinem HowTo gefolgt und siehe da: Es funktioniert!

Habe die Dateien 'mal angehängt, falls es jemand ausprobieren möchte.


Gruß,

Purpi
Super Purpi!
Das nenn ich mal Forschergeist ;-)

Tja wie ich in den News gerade gelesen habe ist die Entwicklung A@H gestoppt worden.
Neues Projekt heisst nun Trixbox. Auf ein neues ;-)

http://www.voip-info.org/tiki-index.php?page=Asterisk at Home

News
June 1, 2006 - trixbox 1.0 released - have a running Asterisk system in under one hour
May 5, 2006 - Development stopped on Asterisk@Home project. Replaced with trixbox
 
Danke fur die tutorial. Ich habe alles unter trixbox 1.02 installiert.
ich habe folgendes Problem und hoffe, dass mir jemand weiterhelfen kann.

Zur Soft-/Hardware:

In Rechner steckt eine FritzCard PCI (fur ISDN festnetz). Über LAN sind einige VoIP Softphones angeschlossen.

Es funktioniert bisher:

- Von VoIP zu VoIP anrufen
- Von ISDN auf VoIP anrufen

Was aber nicht geht:

- Von VoIP auf ISDN anrufen

Ich poste die capi.conf und Asterisk debug log

capi conf:

Code:
;
; CAPI config
;
;

; general section

[general]
nationalprefix=0
internationalprefix=00
rxgain=0.8
txgain=0.8
language=nl      ;set default language
;ulaw=yes        ;set this, if you live in u-law world instead of a-law

; interface sections ...

[ISDN1]          ;this example interface gets name 'ISDN1' and may be any
                 ;name not starting with 'g' or 'contr'.
;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
msn=0131234567   ;toegevoegd door bas
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=0    ;ISDN4BSD default
;controller=7    ;ISDN4BSD USB default
controller=1     ;capi controller number to use
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
accountcode=     ;Asterisk accountcode to use in CDRs
context=capi-in  ;context for incoming calls
;holdtype=hold   ;when Asterisk puts the call on hold, ISDN HOLD will be used. If
                 ;set to 'local' (default value), no hold is done and Asterisk 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
                 ;(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
;bridge=yes      ;native bridging (CAPI line interconnect) if available
;callgroup=1     ;Asterisk call group
;language=de     ;set language for this device (overwrites default language)
devices=2        ;number of concurrent calls on this controller
                 ;(2 makes sense for single BRI, 30 for PRI)

asterisk debug log (Von VoIP auf ISDN anrufen) mit capi debug

Code:
Jun 19 16:31:06 DEBUG[2970] chan_sip.c: Allocating new SIP dialog for [email protected] - INVITE (With RTP)
Jun 19 16:31:06 DEBUG[2970] chan_sip.c: **** Received INVITE (5) - Command in SIP INVITE
Jun 19 16:31:06 DEBUG[2970] chan_sip.c: Setting NAT on RTP to 0
Jun 19 16:31:06 DEBUG[2970] chan_sip.c: = Found Their Call ID: [email protected] Their Tag 3855366127 Our tag: as3060fc20
Jun 19 16:31:06 DEBUG[2970] chan_sip.c: **** Received ACK (6) - Command in SIP ACK
Jun 19 16:31:06 DEBUG[2970] chan_sip.c: Stopping retransmission on '[email protected]' of Response 595: Match Found
Jun 19 16:31:06 DEBUG[2970] chan_sip.c: = Found Their Call ID: [email protected] Their Tag 3855366127 Our tag: as3060fc20
Jun 19 16:31:06 DEBUG[2970] chan_sip.c: **** Received INVITE (5) - Command in SIP INVITE
Jun 19 16:31:06 DEBUG[2970] chan_sip.c: Setting NAT on RTP to 0
Jun 19 16:31:06 DEBUG[2970] chan_sip.c: Checking SIP call limits for device 203
Jun 19 16:31:06 DEBUG[2970] chan_sip.c: Updating call counter for incoming call
Jun 19 16:31:06 DEBUG[2970] chan_sip.c: build_route: Contact hop: 
Jun 19 16:31:06 DEBUG[2858] chan_sip.c: Checking device state for peer 203
Jun 19 16:31:06 DEBUG[2858] devicestate.c: Changing state for SIP/203 - state 2 (In use)
Jun 19 16:31:06 DEBUG[3762] pbx.c: Launching 'Macro'
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Executing Macro("SIP/203-6d79", "dialout-trunk|2|0612345678||") in new stack
Jun 19 16:31:06 DEBUG[3762] pbx.c: Expression result is '1'
Jun 19 16:31:06 DEBUG[3762] pbx.c: Launching 'GotoIf'
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Executing GotoIf("SIP/203-6d79", "1?3:2") in new stack
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Goto (macro-dialout-trunk,s,3)
Jun 19 16:31:06 DEBUG[3762] pbx.c: Launching 'Macro'
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Executing Macro("SIP/203-6d79", "user-callerid") in new stack
Jun 19 16:31:06 DEBUG[3762] pbx.c: Expression result is '0'
Jun 19 16:31:06 DEBUG[3762] pbx.c: Launching 'GotoIf'
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Executing GotoIf("SIP/203-6d79", "0?report") in new stack
Jun 19 16:31:06 DEBUG[3762] pbx.c: Not taking any branch
Jun 19 16:31:06 DEBUG[3762] pbx.c: Expression result is '0'
Jun 19 16:31:06 DEBUG[3762] pbx.c: Launching 'GotoIf'
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Executing GotoIf("SIP/203-6d79", "0?start") in new stack
Jun 19 16:31:06 DEBUG[3762] pbx.c: Not taking any branch
Jun 19 16:31:06 DEBUG[3762] pbx.c: Function result is '203'
Jun 19 16:31:06 DEBUG[3762] pbx.c: Launching 'Set'
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Executing Set("SIP/203-6d79", "REALCALLERIDNUM=203") in new stack
Jun 19 16:31:06 DEBUG[3762] pbx.c: Launching 'NoOp'
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Executing NoOp("SIP/203-6d79", "REALCALLERIDNUM is 203") in new stack
Jun 19 16:31:06 DEBUG[3762] pbx.c: Function result is '203'
Jun 19 16:31:06 DEBUG[3762] pbx.c: Launching 'Set'
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Executing Set("SIP/203-6d79", "AMPUSER=203") in new stack
Jun 19 16:31:06 DEBUG[3762] pbx.c: Function result is 'Bas'
Jun 19 16:31:06 DEBUG[3762] pbx.c: Launching 'Set'
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Executing Set("SIP/203-6d79", "AMPUSERCIDNAME=Bas") in new stack
Jun 19 16:31:06 DEBUG[3762] pbx.c: Expression result is '0'
Jun 19 16:31:06 DEBUG[3762] pbx.c: Launching 'GotoIf'
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Executing GotoIf("SIP/203-6d79", "0?report") in new stack
Jun 19 16:31:06 DEBUG[3762] pbx.c: Not taking any branch
Jun 19 16:31:06 DEBUG[3762] pbx.c: Launching 'Set'
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Executing Set("SIP/203-6d79", "CALLERID(all)=Bas <203>") in new stack
Jun 19 16:31:06 DEBUG[3762] pbx.c: Function result is '"Bas" <203>'
Jun 19 16:31:06 DEBUG[3762] pbx.c: Launching 'NoOp'
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Executing NoOp("SIP/203-6d79", "Using CallerID "Bas" <203>") in new stack
Jun 19 16:31:06 DEBUG[3762] pbx.c: Function result is '203'
Jun 19 16:31:06 DEBUG[3762] pbx.c: Launching 'Macro'
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Executing Macro("SIP/203-6d79", "record-enable|203|OUT") in new stack
Jun 19 16:31:06 DEBUG[3762] pbx.c: Function result is '0'
Jun 19 16:31:06 DEBUG[3762] pbx.c: Launching 'GotoIf'
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Executing GotoIf("SIP/203-6d79", "0 > 0?2:4") in new stack
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Goto (macro-record-enable,s,4)
Jun 19 16:31:06 DEBUG[3762] pbx.c: Launching 'AGI'
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Executing AGI("SIP/203-6d79", "recordingcheck|20060619-163106|1150727466.0") in new stack
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
Jun 19 16:31:06 DEBUG[2858] chan_sip.c: Checking device state for peer 203
Jun 19 16:31:06 DEBUG[3763] app_queue.c: Device 'SIP/203' changed to state '2' (In use) but we don't care because they're not a member of any queue.
Jun 19 16:31:06 VERBOSE[3762] logger.c: recordingcheck|20060619-163106|1150727466.0: Outbound recording not enabled
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- AGI Script recordingcheck completed, returning 0
Jun 19 16:31:06 DEBUG[3762] pbx.c: Launching 'NoOp'
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Executing NoOp("SIP/203-6d79", "No recording needed") in new stack
Jun 19 16:31:06 DEBUG[3762] pbx.c: Launching 'Macro'
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Executing Macro("SIP/203-6d79", "outbound-callerid|2") in new stack
Jun 19 16:31:06 DEBUG[3762] pbx.c: Expression result is '1'
Jun 19 16:31:06 DEBUG[3762] pbx.c: Launching 'GotoIf'
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Executing GotoIf("SIP/203-6d79", "1?start") in new stack
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Goto (macro-outbound-callerid,s,3)
Jun 19 16:31:06 DEBUG[3762] pbx.c: Launching 'NoOp'
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Executing NoOp("SIP/203-6d79", "REALCALLERIDNUM is 203") in new stack
Jun 19 16:31:06 DEBUG[3762] pbx.c: Function result is ''
Jun 19 16:31:06 DEBUG[3762] pbx.c: Launching 'Set'
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Executing Set("SIP/203-6d79", "USEROUTCID=") in new stack
Jun 19 16:31:06 DEBUG[3762] db.c: Unable to find key '203/emergency_cid' in family 'DEVICE'
Jun 19 16:31:06 DEBUG[3762] func_db.c: DB: DEVICE/203/emergency_cid not found in database.
Jun 19 16:31:06 DEBUG[3762] pbx.c: Function result is ''
Jun 19 16:31:06 DEBUG[3762] pbx.c: Launching 'Set'
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Executing Set("SIP/203-6d79", "EMERGENCYCID=") in new stack
Jun 19 16:31:06 DEBUG[3762] pbx.c: Launching 'Set'
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Executing Set("SIP/203-6d79", "TRUNKOUTCID=0131234567") in new stack
Jun 19 16:31:06 DEBUG[3762] pbx.c: Expression result is '1'
Jun 19 16:31:06 DEBUG[3762] pbx.c: Launching 'GotoIf'
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Executing GotoIf("SIP/203-6d79", "1?trunkcid") in new stack
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Goto (macro-outbound-callerid,s,11)
Jun 19 16:31:06 DEBUG[3762] pbx.c: Expression result is '0'
Jun 19 16:31:06 DEBUG[3762] pbx.c: Launching 'GotoIf'
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Executing GotoIf("SIP/203-6d79", "0?usercid") in new stack
Jun 19 16:31:06 DEBUG[3762] pbx.c: Not taking any branch
Jun 19 16:31:06 DEBUG[3762] pbx.c: Launching 'Set'
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Executing Set("SIP/203-6d79", "CALLERID(all)=0131234567") in new stack
Jun 19 16:31:06 DEBUG[3762] pbx.c: Expression result is '1'
Jun 19 16:31:06 DEBUG[3762] pbx.c: Launching 'GotoIf'
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Executing GotoIf("SIP/203-6d79", "1?report") in new stack
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Goto (macro-outbound-callerid,s,15)
Jun 19 16:31:06 DEBUG[3762] pbx.c: Function result is '"" <0131234567>'
Jun 19 16:31:06 DEBUG[3762] pbx.c: Launching 'NoOp'
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Executing NoOp("SIP/203-6d79", "CallerID set to "" <0131234567>") in new stack
Jun 19 16:31:06 DEBUG[3762] pbx.c: Launching 'Set'
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Executing Set("SIP/203-6d79", "GROUP()=OUT_2") in new stack
Jun 19 16:31:06 DEBUG[3762] pbx.c: Function result is '1'
Jun 19 16:31:06 DEBUG[3762] pbx.c: Expression result is '0'
Jun 19 16:31:06 DEBUG[3762] pbx.c: Launching 'GotoIf'
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Executing GotoIf("SIP/203-6d79", "0?108") in new stack
Jun 19 16:31:06 DEBUG[3762] pbx.c: Not taking any branch
Jun 19 16:31:06 DEBUG[3762] pbx.c: Launching 'Set'
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Executing Set("SIP/203-6d79", "DIAL_NUMBER=0612345678") in new stack
Jun 19 16:31:06 DEBUG[3762] pbx.c: Launching 'Set'
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Executing Set("SIP/203-6d79", "DIAL_TRUNK=2") in new stack
Jun 19 16:31:06 DEBUG[3762] pbx.c: Launching 'AGI'
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Executing AGI("SIP/203-6d79", "fixlocalprefix") in new stack
Jun 19 16:31:06 VERBOSE[3762] logger.c: -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
Jun 19 16:31:07 VERBOSE[3762] logger.c: fixlocalprefix: Could not parse /etc/asterisk/localprefixes.conf
Jun 19 16:31:07 VERBOSE[3762] logger.c: -- AGI Script fixlocalprefix completed, returning 0
Jun 19 16:31:07 DEBUG[3762] pbx.c: Launching 'Set'
Jun 19 16:31:07 VERBOSE[3762] logger.c: -- Executing Set("SIP/203-6d79", "OUTNUM=0612345678") in new stack
Jun 19 16:31:07 DEBUG[3762] pbx.c: Function result is 'AMP'
Jun 19 16:31:07 DEBUG[3762] pbx.c: Launching 'Set'
Jun 19 16:31:07 VERBOSE[3762] logger.c: -- Executing Set("SIP/203-6d79", "custom=AMP") in new stack
Jun 19 16:31:07 DEBUG[3762] pbx.c: Expression result is '1'
Jun 19 16:31:07 DEBUG[3762] pbx.c: Launching 'GotoIf'
Jun 19 16:31:07 VERBOSE[3762] logger.c: -- Executing GotoIf("SIP/203-6d79", "1?16") in new stack
Jun 19 16:31:07 VERBOSE[3762] logger.c: -- Goto (macro-dialout-trunk,s,16)
Jun 19 16:31:07 DEBUG[3762] pbx.c: Function result is 'AMP:CAPI/ISDN1/0131234567:'
Jun 19 16:31:07 DEBUG[3762] pbx.c: Launching 'Set'
Jun 19 16:31:07 VERBOSE[3762] logger.c: -- Executing Set("SIP/203-6d79", "pre_num=AMP:CAPI/ISDN1/0131234567:") in new stack
Jun 19 16:31:07 DEBUG[3762] pbx.c: Function result is 'OUTNUM'
Jun 19 16:31:07 DEBUG[3762] pbx.c: Launching 'Set'
Jun 19 16:31:07 VERBOSE[3762] logger.c: -- Executing Set("SIP/203-6d79", "the_num=OUTNUM") in new stack
Jun 19 16:31:07 DEBUG[3762] pbx.c: Function result is '/b'
Jun 19 16:31:07 DEBUG[3762] pbx.c: Launching 'Set'
Jun 19 16:31:07 VERBOSE[3762] logger.c: -- Executing Set("SIP/203-6d79", "post_num=/b") in new stack
Jun 19 16:31:07 DEBUG[3762] pbx.c: Expression result is '1'
Jun 19 16:31:07 DEBUG[3762] pbx.c: Launching 'GotoIf'
Jun 19 16:31:07 VERBOSE[3762] logger.c: -- Executing GotoIf("SIP/203-6d79", "1?20:21") in new stack
Jun 19 16:31:07 VERBOSE[3762] logger.c: -- Goto (macro-dialout-trunk,s,20)
Jun 19 16:31:07 DEBUG[3762] pbx.c: Launching 'Set'
Jun 19 16:31:07 VERBOSE[3762] logger.c: -- Executing Set("SIP/203-6d79", "the_num=0612345678") in new stack
Jun 19 16:31:07 DEBUG[3762] pbx.c: Launching 'Dial'
Jun 19 16:31:07 VERBOSE[3762] logger.c: -- Executing Dial("SIP/203-6d79", "CAPI/ISDN1/0131234567:0612345678/b|120|r") in new stack
Jun 19 16:31:07 VERBOSE[3762] logger.c: > data = ISDN1/0131234567:0612345678/b
Jun 19 16:31:07 VERBOSE[3762] logger.c: > parsed dialstring: 'ISDN1' '0131234567' '0612345678' 'b'
Jun 19 16:31:07 VERBOSE[3762] logger.c: > capi request for interface 'ISDN1'
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-dialout-trunk-s-21.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable MACRO_DEPTH.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable the_num.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-dialout-trunk-s-20.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-dialout-trunk-s-19.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable post_num.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-dialout-trunk-s-18.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-dialout-trunk-s-17.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable pre_num.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-dialout-trunk-s-16.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-dialout-trunk-s-13.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable custom.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-dialout-trunk-s-12.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable OUTNUM.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-dialout-trunk-s-11.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-dialout-trunk-s-10.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable DIAL_TRUNK.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-dialout-trunk-s-9.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable DIAL_NUMBER.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-dialout-trunk-s-8.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-dialout-trunk-s-7.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable GROUP.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-dialout-trunk-s-6.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable MACRO_PRIORITY.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable MACRO_CONTEXT.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable MACRO_EXTEN.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable ARG1.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-outbound-callerid-s-15.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-outbound-callerid-s-13.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-outbound-callerid-s-12.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-outbound-callerid-s-11.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-outbound-callerid-s-7.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable TRUNKOUTCID.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-outbound-callerid-s-6.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable EMERGENCYCID.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-outbound-callerid-s-5.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable USEROUTCID.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-outbound-callerid-s-4.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable DB_RESULT.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-outbound-callerid-s-3.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-outbound-callerid-s-1.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-dialout-trunk-s-5.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable ARG2.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-record-enable-s-5.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-record-enable-s-4.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-record-enable-s-1.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-dialout-trunk-s-4.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-user-callerid-s-9.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-user-callerid-s-8.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-user-callerid-s-7.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable AMPUSERCIDNAME.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-user-callerid-s-6.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable AMPUSER.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-user-callerid-s-5.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-user-callerid-s-4.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable REALCALLERIDNUM.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-user-callerid-s-3.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-user-callerid-s-2.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-user-callerid-s-1.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-dialout-trunk-s-3.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-macro-dialout-trunk-s-1.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable ARG4.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable ARG3.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable STACK-from-internal-00612345678-1.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable SIPCALLID.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable SIPUSERAGENT.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable SIPDOMAIN.
Jun 19 16:31:07 DEBUG[3762] channel.c: Not copying variable SIPURI.
Jun 19 16:31:07 VERBOSE[3762] logger.c: > parsed dialstring: 'ISDN1' '0131234567' '0612345678' 'b'
Jun 19 16:31:07 VERBOSE[3762] logger.c: == ISDN1: Call CAPI/ISDN1/0612345678-0 with B3 (pres=0x00, ton=0x00)
Jun 19 16:31:07 VERBOSE[3762] logger.c: CONNECT_REQ ID=001 #0x0003 LEN=0063
Controller/PLCI/NCCI = 0x1
CIPValue = 0x0
CalledPartyNumber = <80>0612345678
CallingPartyNumber = <00 80>0131234567
CalledPartySubaddress = default
CallingPartySubaddress = default
BProtocol 
B1protocol = 0x1
B2protocol = 0x1
B3protocol = 0x0
B1configuration = default
B2configuration = default
B3configuration = default
GlobalConfiguration = default
BC = default
LLC = default
HLC = default
AdditionalInfo 
BChannelinformation = <00 00>
Keypadfacility = default
Useruserdata = default
Facilitydataarray = default
SendingComplete = default

Jun 19 16:31:07 VERBOSE[3762] logger.c: -- Called ISDN1/0131234567:0612345678/b
Jun 19 16:31:07 VERBOSE[2858] logger.c: > CAPI devicestate requested for ISDN1/0612345678
Jun 19 16:31:07 DEBUG[2858] devicestate.c: Changing state for CAPI/ISDN1/0612345678 - state 2 (In use)
Jun 19 16:31:07 VERBOSE[2858] logger.c: > CAPI devicestate requested for ISDN1/0612345678
Jun 19 16:31:07 DEBUG[2858] devicestate.c: Changing state for CAPI/ISDN1/0612345678 - state 2 (In use)
Jun 19 16:31:07 DEBUG[3766] app_queue.c: Device 'CAPI/ISDN1/0612345678' changed to state '2' (In use) but we don't care because they're not a member of any queue.
Jun 19 16:31:07 DEBUG[3767] app_queue.c: Device 'CAPI/ISDN1/0612345678' changed to state '2' (In use) but we don't care because they're not a member of any queue.
Jun 19 16:31:07 VERBOSE[2870] logger.c: CONNECT_CONF ID=001 #0x0003 LEN=0014
Controller/PLCI/NCCI = 0x101
Info = 0x0

Jun 19 16:31:07 VERBOSE[2870] logger.c: -- ISDN1: received CONNECT_CONF PLCI = 0x101
Jun 19 16:31:09 VERBOSE[2870] logger.c: INFO_IND ID=001 #0x0000 LEN=0018
Controller/PLCI/NCCI = 0x101
InfoNumber = 0x8
InfoElement = <82 e0 04>

Jun 19 16:31:09 VERBOSE[2870] logger.c: INFO_RESP ID=001 #0x0000 LEN=0012
Controller/PLCI/NCCI = 0x101

Jun 19 16:31:09 VERBOSE[2870] logger.c: -- ISDN1: info element CAUSE 82 e0
Jun 19 16:31:09 VERBOSE[2870] logger.c: DISCONNECT_IND ID=001 #0x0001 LEN=0014
Controller/PLCI/NCCI = 0x101
Reason = 0x34e0

Jun 19 16:31:09 VERBOSE[2870] logger.c: DISCONNECT_RESP ID=001 #0x0001 LEN=0012
Controller/PLCI/NCCI = 0x101

Jun 19 16:31:09 VERBOSE[2870] logger.c: > CAPI INFO 0x34e0: Mandatory information element is missing
Jun 19 16:31:09 DEBUG[3762] channel.c: Hanging up channel 'CAPI/ISDN1/0612345678-0'
Jun 19 16:31:09 VERBOSE[3762] logger.c: == ISDN1: CAPI Hangingup
Jun 19 16:31:09 VERBOSE[3762] logger.c: == ISDN1: Interface cleanup PLCI=0x101
Jun 19 16:31:09 VERBOSE[3762] logger.c: == Everyone is busy/congested at this time (1:0/0/1)
Jun 19 16:31:09 DEBUG[3762] app_dial.c: Exiting with DIALSTATUS=CHANUNAVAIL.
Jun 19 16:31:09 DEBUG[3762] pbx.c: Launching 'Goto'
Jun 19 16:31:09 VERBOSE[3762] logger.c: -- Executing Goto("SIP/203-6d79", "s-CHANUNAVAIL|1") in new stack
Jun 19 16:31:09 VERBOSE[3762] logger.c: -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
Jun 19 16:31:09 DEBUG[3762] pbx.c: Launching 'NoOp'
Jun 19 16:31:09 VERBOSE[3762] logger.c: -- Executing NoOp("SIP/203-6d79", "Dial failed due to CHANUNAVAIL") in new stack
Jun 19 16:31:09 DEBUG[3762] pbx.c: Launching 'Macro'
Jun 19 16:31:09 VERBOSE[3762] logger.c: -- Executing Macro("SIP/203-6d79", "outisbusy|") in new stack
Jun 19 16:31:09 DEBUG[3762] pbx.c: Launching 'Playback'
Jun 19 16:31:09 VERBOSE[3762] logger.c: -- Executing Playback("SIP/203-6d79", "all-circuits-busy-now") in new stack
Jun 19 16:31:09 DEBUG[3762] chan_sip.c: sip_answer(SIP/203-6d79)
Jun 19 16:31:09 DEBUG[3762] channel.c: Set channel SIP/203-6d79 to write format gsm
Jun 19 16:31:09 VERBOSE[2858] logger.c: > CAPI devicestate requested for ISDN1/0612345678
Jun 19 16:31:09 DEBUG[2858] devicestate.c: Changing state for CAPI/ISDN1/0612345678 - state 1 (Not in use)
Jun 19 16:31:09 VERBOSE[2858] logger.c: > CAPI devicestate requested for ISDN1/0612345678
Jun 19 16:31:09 DEBUG[2858] devicestate.c: Changing state for CAPI/ISDN1/0612345678 - state 1 (Not in use)
Jun 19 16:31:09 DEBUG[2858] chan_sip.c: Checking device state for peer 203
Jun 19 16:31:09 DEBUG[2858] devicestate.c: Changing state for SIP/203 - state 2 (In use)
Jun 19 16:31:09 DEBUG[2858] chan_sip.c: Checking device state for peer 203
Jun 19 16:31:09 DEBUG[3768] app_queue.c: Device 'CAPI/ISDN1/0612345678' changed to state '1' (Not in use) but we don't care because they're not a member of any queue.
Jun 19 16:31:09 DEBUG[3769] app_queue.c: Device 'CAPI/ISDN1/0612345678' changed to state '1' (Not in use) but we don't care because they're not a member of any queue.
Jun 19 16:31:09 DEBUG[3770] app_queue.c: Device 'SIP/203' changed to state '2' (In use) but we don't care because they're not a member of any queue.
Jun 19 16:31:09 DEBUG[2970] chan_sip.c: = Found Their Call ID: [email protected] Their Tag 3855366127 Our tag: as75c41bdd
Jun 19 16:31:09 DEBUG[2970] chan_sip.c: **** Received ACK (6) - Command in SIP ACK
Jun 19 16:31:09 DEBUG[2970] chan_sip.c: Stopping retransmission on '[email protected]' of Response 596: Match Found
Jun 19 16:31:09 DEBUG[3762] rtp.c: Ooh, format changed from unknown to alaw
Jun 19 16:31:09 DEBUG[3762] channel.c: Scheduling timer at 160 sample intervals
Jun 19 16:31:09 VERBOSE[3762] logger.c: -- Playing 'all-circuits-busy-now' (language 'en')
Jun 19 16:31:09 DEBUG[3762] rtp.c: Got RTCP report of 84 bytes
Jun 19 16:31:09 DEBUG[3762] rtp.c: Got RTCP report of 118 bytes
Jun 19 16:31:11 DEBUG[3762] channel.c: Scheduling timer at 0 sample intervals
Jun 19 16:31:11 DEBUG[3762] channel.c: Scheduling timer at 0 sample intervals
Jun 19 16:31:11 DEBUG[3762] channel.c: Set channel SIP/203-6d79 to write format alaw
Jun 19 16:31:11 DEBUG[3762] pbx.c: Launching 'Playback'
Jun 19 16:31:11 VERBOSE[3762] logger.c: -- Executing Playback("SIP/203-6d79", "pls-try-call-later") in new stack
Jun 19 16:31:11 DEBUG[3762] channel.c: Set channel SIP/203-6d79 to write format gsm
Jun 19 16:31:11 DEBUG[3762] channel.c: Scheduling timer at 160 sample intervals
Jun 19 16:31:11 VERBOSE[3762] logger.c: -- Playing 'pls-try-call-later' (language 'en')
Jun 19 16:31:13 DEBUG[3762] channel.c: Scheduling timer at 0 sample intervals
Jun 19 16:31:13 DEBUG[3762] channel.c: Scheduling timer at 0 sample intervals
Jun 19 16:31:13 DEBUG[3762] channel.c: Set channel SIP/203-6d79 to write format alaw
Jun 19 16:31:13 DEBUG[3762] pbx.c: Launching 'Macro'
Jun 19 16:31:13 VERBOSE[3762] logger.c: -- Executing Macro("SIP/203-6d79", "hangupcall") in new stack
Jun 19 16:31:13 DEBUG[3762] pbx.c: Launching 'ResetCDR'
Jun 19 16:31:13 VERBOSE[3762] logger.c: -- Executing ResetCDR("SIP/203-6d79", "w") in new stack
Jun 19 16:31:13 DEBUG[3762] cdr_addon_mysql.c: cdr_mysql: inserting a CDR record.
Jun 19 16:31:13 DEBUG[3762] cdr_addon_mysql.c: cdr_mysql: SQL command as follows: INSERT INTO cdr (calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode,uniqueid) VALUES ('2006-06-19 16:31:06','0131234567','0131234567','00612345678','from-internal', 'SIP/203-6d79','CAPI/ISDN1/0612345678-0','ResetCDR','w',7,4,'ANSWERED',3,'','1150727466.0')
Jun 19 16:31:13 DEBUG[3762] pbx.c: Launching 'NoCDR'
Jun 19 16:31:13 VERBOSE[3762] logger.c: -- Executing NoCDR("SIP/203-6d79", "") in new stack
Jun 19 16:31:13 WARNING[3762] cdr.c: CDR on channel 'SIP/203-6d79' not posted
Jun 19 16:31:13 WARNING[3762] cdr.c: CDR on channel 'SIP/203-6d79' lacks end
Jun 19 16:31:13 DEBUG[3762] pbx.c: Launching 'Wait'
Jun 19 16:31:13 VERBOSE[3762] logger.c: -- Executing Wait("SIP/203-6d79", "5") in new stack
Jun 19 16:31:13 DEBUG[2970] chan_sip.c: = Found Their Call ID: [email protected] Their Tag 3855366127 Our tag: as75c41bdd
Jun 19 16:31:13 DEBUG[2970] chan_sip.c: **** Received BYE (8) - Command in SIP BYE
Jun 19 16:31:13 DEBUG[3762] app_macro.c: Spawn extension (macro-hangupcall,s,3) exited non-zero on 'SIP/203-6d79' in macro 'hangupcall'
Jun 19 16:31:13 DEBUG[3762] app_macro.c: Spawn extension (macro-hangupcall,s,3) exited non-zero on 'SIP/203-6d79' in macro 'outisbusy'
Jun 19 16:31:13 DEBUG[3762] pbx.c: Spawn extension (macro-hangupcall,s,3) exited non-zero on 'SIP/203-6d79'
Jun 19 16:31:13 DEBUG[3762] channel.c: Hanging up channel 'SIP/203-6d79'
Jun 19 16:31:13 DEBUG[3762] chan_sip.c: Hangup call SIP/203-6d79, SIP callid [email protected])
Jun 19 16:31:13 DEBUG[3762] chan_sip.c: update_call_counter(203) - decrement call limit counter
Jun 19 16:31:13 DEBUG[3762] chan_sip.c: Updating call counter for incoming call
Jun 19 16:31:13 DEBUG[2858] chan_sip.c: Checking device state for peer 203
Jun 19 16:31:13 DEBUG[2858] devicestate.c: Changing state for SIP/203 - state 1 (Not in use)
Jun 19 16:31:13 DEBUG[2858] chan_sip.c: Checking device state for peer 203
Jun 19 16:31:13 DEBUG[3771] app_queue.c: Device 'SIP/203' changed to state '1' (Not in use) but we don't care because they're not a member of any queue.
 
Hallo Basw,

erstmal wieder Asche auf mein Haupt :(. Ich habe die Einstellungen etwas anders vorgenommen als in dem Tutorial beschrieben, hab's aber nicht mehr hier gepostet.

Das hole ich hiermit nach:
ich habe das Tutorial mit einer anderen Anleitung zusammengeführt. Du findest sie hier:
http://adminloesungen.ott-service.de//tikiwiki/tiki-read_article.php?articleId=7&page=1

Folgendes davon habe ich verwendet und an der Stelle weitergemacht, an der dieses Tutorial endet:

Im ersten Schritt kommt jetzt die Grundkonfiguration von Asterisk dran. Ich fange erst einmal mit der ISDN-Konfiguration an.
# cd /etc/asterisk/
/etc/asterisk # nano capi.conf
Hier ist im Moment wichtig, die MSNs einzutragen, auf die die Telefonanlage reagieren soll. Ich reagiere auf alle MSNs, lasse also die Option incomingmsn=*, die ausgehende callerid setze ich auf die primäre Rufnummer (Telefonzentrale): defaultcid=erste MSN.

Echocancelold sind bei mir aktiv. Die Sprache setze ich mit language=de auf Deutsch.

Den context ändere ich von capi-in auf from-trunk.

In der iax.conf und auch in der sip.conf füge ich die Zeile language=de hinzu.

Damit die Ton-Signalisierung? unserer deutschen Signalisierung näher kommt, ändere ich in der indications.conf oben den Parameter Country auf de.

Einrichten der ISDN-Leitung
Ich klicke im freePBX-Menü auf Trunks und dort dann auf Add Custom Trunk. Bei diesem Trunk gebe ich dann bei Maximum channel eine 2 für meine 2 ISDN-Leitungen ein. Bei Dial Rules trage ich 8|. und bei den Outgoing Settings dann beim Custom Dial String:
CAPI/ISDN1/$OUTNUM$
ein und speichere die Einstellungen. Dann klicke ich auf Outbound Routes und dort auf Add Route. Bei Route Name gebe ich ausgehend ein und bei Dial Patterns:
8|.
So definiere ich, dass man eine 8 vorweg wählen muss, um diesen Trunk zu benutzen. Bei Trunk Sequence wähle ich dann den eben definierten Trunk CAPI/ISDN1/$OUTNUM$ aus und speichere auch diese Einstellungen.

Ich hoffe, das hilft dir weiter. bei mir hat es so geklappt.

Ich bin gerade dabei, die Einstellungen, die ich vorgenommen habe, zusammenzufassen. Sobald ich fertig bin, kann ich die gerne mal im Forum posten.

Gruß,

Purpi
 
Hallo,
ich bekomme nach Schritt 6 nicht die korrekten Anzeigen.

Wenn ich nach dem roboot "capiinfo" eingebe, dann kommt das zurück:
[root@asterisk1 ~]# capiinfo
capi not installed - No such device or address (6)

Kontrolliere ich danach die Kernelmodule, kommt das:
[root@asterisk1 ~]# lsmod | grep capi
capi 18177 0
capifs 5961 2 capi
kernelcapi 44769 2 fcpci,capi

Woran liegt das? Habe mich eigentlich komplett an die Anleitung gehalten.:confused:

thx
Thorus
 
Thorus schrieb:
Hallo,
ich bekomme nach Schritt 6 nicht die korrekten Anzeigen.

Wenn ich nach dem roboot "capiinfo" eingebe, dann kommt das zurück:

thx
Thorus

Kann sein das er das Capiinit nicht automatisch ausführt.

Was sagt er wenn du folgendes eingibst:

/etc/rc.d/init.d/capi start
 

Neueste Beiträge

Statistik des Forums

Themen
244,695
Beiträge
2,216,689
Mitglieder
371,314
Neuestes Mitglied
Gjorstn
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.