chan_capi - Trixbox - extensions.conf

MarcelDeLuX

Neuer User
Mitglied seit
23 Feb 2006
Beiträge
60
Punkte für Reaktionen
0
Punkte
0
Hallöchen,

nachdem meine Anfangsschwierigkeiten mit der ISDN-Karte nun beigelegt ist stehe ich nun vor einem neuen Problem :rolleyes:

ich komm mit der extensions.conf nich so ganz klar.

alles was ich eigentlich erstmal möchte ist, dass ich eingehende Rufe auf einen bestimmten Apparat und abgehende anrufe egal von welchem Aparat machen kann.

Wenn ich einfach mal unter [default] angebe:
exten => _X.,1,Dial(CAPI/contr1/${EXTEN})

müsste ich doch eigentlich rauskommen oder nicht?

allerdings wird mir im sip debug folgendes angezeigt:
Sep 4 12:10:21 VERBOSE[4018] logger.c: --- (14 headers 13 lines) ---
Sep 4 12:10:21 VERBOSE[4018] logger.c: Using INVITE request as basis request - [email protected]
Sep 4 12:10:21 VERBOSE[4018] logger.c: Sending to 192.168.100.227 : 5062 (non-NAT)
Sep 4 12:10:21 DEBUG[4018] chan_sip.c: Setting NAT on RTP to 0
Sep 4 12:10:21 VERBOSE[4018] logger.c: Found user '2700'
Sep 4 12:10:21 VERBOSE[4018] logger.c: Found RTP audio format 0
Sep 4 12:10:21 VERBOSE[4018] logger.c: Found RTP audio format 8
Sep 4 12:10:21 VERBOSE[4018] logger.c: Found RTP audio format 4
Sep 4 12:10:21 VERBOSE[4018] logger.c: Found RTP audio format 18
Sep 4 12:10:21 VERBOSE[4018] logger.c: Found RTP audio format 3
Sep 4 12:10:21 VERBOSE[4018] logger.c: Peer audio RTP is at port 192.168.100.227:5004
Sep 4 12:10:21 DEBUG[4018] chan_sip.c: Peer audio RTP is at port 192.168.100.227:5004
Sep 4 12:10:21 VERBOSE[4018] logger.c: Found description format PCMU
Sep 4 12:10:21 VERBOSE[4018] logger.c: Found description format PCMA
Sep 4 12:10:21 VERBOSE[4018] logger.c: Found description format G723
Sep 4 12:10:21 VERBOSE[4018] logger.c: Found description format G729
Sep 4 12:10:21 VERBOSE[4018] logger.c: Found description format GSM
Sep 4 12:10:21 VERBOSE[4018] logger.c: Capabilities: us - 0xc (ulaw|alaw), peer - audio=0x10f (g723|gsm|ulaw|alaw|g729)/video=0x0 (nothing), combined - 0xc (ulaw|alaw)
Sep 4 12:10:21 VERBOSE[4018] logger.c: Non-codec capabilities: us - 0x1 (telephone-event), peer - 0x0 (nothing), combined - 0x0 (nothing)
Sep 4 12:10:21 DEBUG[4018] chan_sip.c: Checking SIP call limits for device 2700
Sep 4 12:10:21 VERBOSE[4018] logger.c: Looking for 01725240094 in from-sip-external (domain 192.168.100.200)
Sep 4 12:10:21 NOTICE[4018] pbx.c: Cannot find extension context 'from-sip-external'Sep 4 12:10:21 VERBOSE[4018] logger.c: Reliably Transmitting (no NAT) to 192.168.100.227:5062:
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 192.168.100.227:5062;branch=z9hG4bKcb137213f8df43bf;received=192.168.100.227
From: "2700" <sip:[email protected]>;tag=f792cc49889e7104
To: <sip:[email protected]>;tag=as0c5a4aa6
Call-ID: [email protected]
CSeq: 5295 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Content-Length: 0

wo finde ich den markierten Context außer in der extensions.conf???

Ich würde viel lieber diese ganzen Samples rausschmeißen damit ich mal durchsteige, wie ich welchen context wo und wann konfigurieren kann...
 
Na dann schmeiss doch erst mal die Beispiel extensions raus, das ganze wird gleich übersichtlicher ;-).

Zu deinem Problem:
in deiner sip.conf hast du den context from-sip-external für deinen provider eingestellt. Trage hier einfach mal default ein, mach 'nen restart und schon sollte es gehen.

Oder Alternativ (was besser wäre), trägst du diese extension einfach im context from-sip-external ein, welchen du mit
Code:
[from-sip-external]
vor deiner extension erstmal erzeugst.

Mario
 
offensichtlich isses ja so, dass einige vorgefertigten extensions definitv von trixbox genutzt werden. deswegen da alles rauszuschmeißen würde wohl das system löchern...

wie dem auch sei: Raustelefonieren klappt schonmal. Nur leider bekomme ich keine eingehenden anrufe. Asterisk sip debug sagt mir:

-- versatel#02: info element CALLED PARTY NUMBER
> versatel#02: INFO_IND DID digits not used in this state.
== versatel#02: CAPI Hangingup for PLCI=0x101 in state 8
-- versatel#02: activehangingup (cause=0) for PLCI=0x101
Kann mir das jemand kurz erläutern, was er da tut und was für mich zu tun ist?
 
Zuletzt bearbeitet:
sorry, hab' da nicht an trixbox gedacht...

zeig' mal deine capi.conf, dort stimmt was nicht (insbesondere immediate= )

Mario
 
meine capi.conf:
Code:
;
; CAPI config
;
;

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


[versatel]       ;this example interface gets name 'ISDN1' 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=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=317XXX  ;set a default caller id to that interface for dial-out,
                 ;this caller id will be used when dial option 'd' is set.
msn=317XXX,317XXX,317XXX,317XXX,317XXX
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=versatel_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.

Ich habs mittlerweile hinbekommen... hatte ziemliches kuddelmuddel mit den Contexts...

Was mich aber noch stört ist die Tatsache, dass wenn ich einmal auf einer nebenstelle anrufe, die gegenstelle nicht abnimmt und wieder auflege, habe ich ja einen verpassten anruf auf dem telefon. rufe ich nun nochmal an wird mir von einer netten Dame gesagt: "...ist zur Zeit nicht erreichbar".
Nur bin ich mir noch nicht sicher, obs mit dem Telefon, dem Server oder den Telekomikern zu tun hat...
 
Kostenlos!

Statistik des Forums

Themen
248,438
Beiträge
2,291,497
Mitglieder
377,848
Neuestes Mitglied
NeloRuben