Abgehende MSN setzen

Stoffel

Neuer User
Mitglied seit
19 Jul 2005
Beiträge
10
Punkte für Reaktionen
0
Punkte
0
Hallo,

wie kann ich mit chan_capi eine MSN für einen ausgehenden Anruf setzen?
Habe schon die Paramenter d + b bei Dial ausprobiert sowie in der capi.conf die werte msn und defaultcid aufg die entsprechende msn gesetzt. Leider wird nur die Hauptrufnummer des Anschlusses mit übermitellt, nicht jedoch die MSN die ich angegeben habe.

So mache ich es aktuell:

Dial(CAPI/ISDN1/d12345:01731234578,20md)

Danke für eure Hilfe!

Steffen
 
Ich weiß nicht ob es die Premium-Lösung ist, ich mache es zur Zeit so, dass ich über die Zeile wo tatsächlich rausgerufen wird

exten => _ZXXX.,1,SetCIDNum(020212345678)

einsetze. Das ganze steht so bei mir in der extensions.conf.
Allerdings habe ich auch die Win32-Version von Asterisk laufen.

Diese Lösung hätte sogar den Vorteil, dass man die MSN an das raustelefonierende Telefon anpassen könnte.
 
Hallo,

dane für deinen Tipp, leider ändert das am Ergebnis rein gar nichts.
weitere Ideen?
 
Sollte so gehen:

exten => _X.,1,Set(CALLERID(num)=01731234578)
 
Mhh leider noch immer das selbe Ergebnis.

Zur Ablauf des ganzen, jemand ruft an, hört eine Begrüßung, und wird auf ein Handy vermittelt.
Kurios: rufe ich von einem anderen Anschluß aus an, so erscheint auf dem Handy als Anrufer die Hauptrufnummer - rufe ich nun vom selbigen Handy an, erscheint auf dem Display "Umgeleiteter Anruf" und die nummer die angezeigt wird, ist die die auch angezeigt werden soll.

Nachfolgend mal meine extensions.conf und capi.conf:

[general]
static=yes
language=de
writeprotect=no
autofallthrough=yes
clearglobalvars=no
priorityjumping=no

[globals]

[capi-in]
;Ankommende Gespräche
include => parkedcalls
exten => 12345,1,Answer()
;exten => 12345,n,Wait(1)
;exten => 12345,n,Playback(willkommen)
exten => 12345,n,SetMusicOnHold(default)
exten => 12345,n,Set(CALLERID(num)=01234512345)
exten => 12345,n,Dial(CAPI/ISDN1/01731234567/d,20,md);
exten => 12345,n,Hangup()


---

[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'.
;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=12345,12346 ;allow incoming calls to this list of MSNs/DIDs, * = any
defaultcid=12345 ;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=off ;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)
 
Warum setzt du ein d oder b vor die MSN im Dial Befehl ( Dial(CAPI/ISDN1/dxxx:yyy) )?

Die Syntax ist Dial (CAPI/ISDN1/msn:rufnummer/parameter).

Bei mir funktionierts auch so.

Mario
 
Hallo Mario,

das war der erste Versuch, mittlerweile wurde das geändert (siehe letzter Post)
 
Stoffel schrieb:
Hallo Mario,

das war der erste Versuch, mittlerweile wurde das geändert (siehe letzter Post)

...der aber anscheinend auch nicht sauber funktioniert...

gehe ich eigentlich recht in der Annahme, das du als MSN die komplette Rufnummer mit Vorwahl einträgst (sieht laut deinen Daten jedenfalls so aus)?
Wenn ja: das ist falsch - bei Mehrgeräteanschlüssen wird nur die MSN gesendet - die Vorwahl bleibt da weg!

Mario

PS: IMHO ist die Variante mit der abgehenden MSN im Dial besser, da hier die CDR Records nicht verändert werden, sofern man die nutzt...
Oder auch, wenn man den Anruf bei Nicht-Erfolg weiterbehandelt, wird dann wenigstens die originale CID genutzt.
 
Nein, ich habe als abgehende MSN immer nur die MSN ohne Vorwahl benutzt, bis auf einmal als ich den obigen Tipp probiert habe.
Habe jetzt folgendes probiert:

exten => 12345,n,Dial(CAPI/ISDN1/12345:01731234567,20,m)

Leider noch immer ohne erfolg..
 
ok, dann folgendes:

set verbose 5
capi debug

und den Trace (inkl. deiner aktuellen extension) bitte posten ;-)

Mario
 
Danke für deine Mühe!

Habe jetzt hier aufgrund der zwei B Kanäle nur die Möglichkeit vom Handy (auf das dann schlußendlich weitergeleitet wird) anzurufen.. Ich hoffe das macht nichts aus..
Achso: Handynummer wurde durch 01731234567 und MSN durch 12345 ersetzt..

Extensions.conf (relevanter Ausschnitt)
exten => 12345,1,Answer() ;Gespräch annehmen
exten => 12345,n,Wait(1) ;Erstmal warten
exten => 12345,n,Playback(willkommen) ;Willkommensansage abspielen
exten => 12345,n,SetMusicOnHold(default) ;Warteschleife auswählen
exten => 12345,n,Set(CALLERID(num)=12345)
exten => 12345,n,Dial(CAPI/ISDN1/12345:01731234567,20,m);

Trace:
*CLI> CONNECT_IND ID=001 #0x4227 LEN=0046
Controller/PLCI/NCCI = 0x101
CIPValue = 0x1
CalledPartyNumber = <c1>12345
CallingPartyNumber = <21 83>1731234567
CalledPartySubaddress = default
CallingPartySubaddress = default
BC = <80 90 a3>
LLC = default
HLC = default
AdditionalInfo = default

-- CONNECT_IND (PLCI=0x101,DID=12345,CID=1731234567,CIP=0x1,CONTROLLER=0x1)
> ISDN1#02: msn='12345' DNID='12345' MSN
== ISDN1#02: setting format alaw - 0x8 (alaw)
== ISDN1#02: Incoming call '01731234567' -> '12345'
== Started pbx on channel CAPI/ISDN1/12345-0
INFO_IND ID=001 #0x4228 LEN=0023
Controller/PLCI/NCCI = 0x101
InfoNumber = 0x70
InfoElement = <c1>12345

INFO_RESP ID=001 #0x4228 LEN=0012
Controller/PLCI/NCCI = 0x101

-- ISDN1#02: info element CALLED PARTY NUMBER
> ISDN1#02: INFO_IND DID digits not used in this state.
INFO_IND ID=001 #0x4229 LEN=0016
Controller/PLCI/NCCI = 0x101
InfoNumber = 0x18
InfoElement = <89>

INFO_RESP ID=001 #0x4229 LEN=0012
Controller/PLCI/NCCI = 0x101

-- ISDN1#02: info element CHANNEL IDENTIFICATION 89
INFO_IND ID=001 #0x422a LEN=0016
Controller/PLCI/NCCI = 0x101
InfoNumber = 0xa1
InfoElement = <a1>

INFO_RESP ID=001 #0x422a LEN=0012
Controller/PLCI/NCCI = 0x101

-- ISDN1#02: info element Sending Complete
== ISDN1#02: pbx already started on channel CAPI/ISDN1/12345-0
-- Executing Answer("CAPI/ISDN1/12345-0", "") in new stack
== ISDN1#02: Answering for 12345
CONNECT_RESP ID=001 #0x4227 LEN=0043
Controller/PLCI/NCCI = 0x101
Reject = 0x0
BProtocol
B1protocol = 0x1
B2protocol = 0x1
B3protocol = 0x0
B1configuration = default
B2configuration = default
B3configuration = default
GlobalConfiguration = default
ConnectedNumber = <00 80>12345
ConnectedSubaddress = default
LLC = default
AdditionalInfo
BChannelinformation = default
Keypadfacility = default
Useruserdata = default
Facilitydataarray = default
SendingComplete = default

-- Executing SetMusicOnHold("CAPI/ISDN1/12345-0", "default") in new stack
-- Executing Set("CAPI/ISDN1/12345-0", "CALLERID(num)=12345") in new stack
-- Executing Dial("CAPI/ISDN1/12345-0", "CAPI/ISDN1/12345:01731234567|20|m") in new stack
> data = ISDN1/12345:01731234567 format=8
> parsed dialstring: 'ISDN1' '12345' '01731234567' ''
> capi request for interface 'ISDN1'
== ISDN1#01: setting format alaw - 0x8 (alaw)
> parsed dialstring: 'ISDN1' '12345' '01731234567' ''
== ISDN1#01: Call CAPI/ISDN1/01731234567-1 (pres=0x03, ton=0x21)
CONNECT_REQ ID=001 #0x0003 LEN=0061
Controller/PLCI/NCCI = 0x1
CIPValue = 0x1
CalledPartyNumber = <80>01731234567
CallingPartyNumber = <21 83>12345
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

CONNECT_CONF ID=001 #0x0003 LEN=0014
Controller/PLCI/NCCI = 0x201
Info = 0x0

-- ISDN1#01: received CONNECT_CONF PLCI = 0x201
-- Called ISDN1/12345:01731234567
== ISDN1#02: Requested PROGRESS-Indication for CAPI/ISDN1/12345-0
-- Started music on hold, class 'default', on channel 'CAPI/ISDN1/12345-0'
> CAPI devicestate requested for ISDN1/12345
> CAPI devicestate requested for ISDN1/12345
> CAPI devicestate requested for ISDN1/01731234567
> CAPI devicestate requested for ISDN1/01731234567
CONNECT_ACTIVE_IND ID=001 #0x422b LEN=0015
Controller/PLCI/NCCI = 0x101
ConnectedNumber = default
ConnectedSubaddress = default
LLC = default

CONNECT_ACTIVE_RESP ID=001 #0x422b LEN=0012
Controller/PLCI/NCCI = 0x101

CONNECT_B3_IND ID=001 #0x422c LEN=0013
Controller/PLCI/NCCI = 0x10101
NCPI = default

CONNECT_B3_RESP ID=001 #0x422c LEN=0015
Controller/PLCI/NCCI = 0x10101
Reject = 0x0
NCPI = default

CONNECT_B3_ACTIVE_IND ID=001 #0x422d LEN=0013
Controller/PLCI/NCCI = 0x10101
NCPI = default

CONNECT_B3_ACTIVE_RESP ID=001 #0x422d LEN=0012
Controller/PLCI/NCCI = 0x10101

INFO_IND ID=001 #0x4235 LEN=0015
Controller/PLCI/NCCI = 0x201
InfoNumber = 0x800d
InfoElement = default

INFO_RESP ID=001 #0x4235 LEN=0012
Controller/PLCI/NCCI = 0x201

-- ISDN1#01: info element SETUP ACK
INFO_IND ID=001 #0x4236 LEN=0016
Controller/PLCI/NCCI = 0x201
InfoNumber = 0x18
InfoElement = <8a>

INFO_RESP ID=001 #0x4236 LEN=0012
Controller/PLCI/NCCI = 0x201

-- ISDN1#01: info element CHANNEL IDENTIFICATION 8a
INFO_IND ID=001 #0x42aa LEN=0015
Controller/PLCI/NCCI = 0x201
InfoNumber = 0x8002
InfoElement = default

INFO_RESP ID=001 #0x42aa LEN=0012
Controller/PLCI/NCCI = 0x201

-- ISDN1#01: info element CALL PROCEEDING
-- CAPI queue frame: TYPE: Control (4) SUBCLASS: Unknown control '15' (15) ] [ISDN1#01]
-- CAPI/ISDN1/01731234567-1 is proceeding passing it to CAPI/ISDN1/12345-0
== ISDN1#02: Requested PROCEEDING-Indication for CAPI/ISDN1/12345-0
INFO_IND ID=001 #0x4332 LEN=0015
Controller/PLCI/NCCI = 0x201
InfoNumber = 0x8001
InfoElement = default

INFO_RESP ID=001 #0x4332 LEN=0012
Controller/PLCI/NCCI = 0x201

-- ISDN1#01: info element ALERTING
-- CAPI queue frame: TYPE: Control (4) SUBCLASS: Unknown control '14' (14) ] [ISDN1#01]
-- CAPI queue frame: TYPE: Control (4) SUBCLASS: Ringing (3) ] [ISDN1#01]
-- CAPI/ISDN1/01731234567-1 is making progress passing it to CAPI/ISDN1/12345-0
== ISDN1#02: Requested PROGRESS-Indication for CAPI/ISDN1/12345-0
-- CAPI/ISDN1/01731234567-1 is ringing
> CAPI devicestate requested for ISDN1/01731234567
INFO_IND ID=001 #0x436e LEN=0015
Controller/PLCI/NCCI = 0x201
InfoNumber = 0x8045
InfoElement = default

INFO_RESP ID=001 #0x436e LEN=0012
Controller/PLCI/NCCI = 0x201

-- ISDN1#01: info element DISCONNECT
-- ISDN1#01: Disconnect case 1
-- CAPI queue frame: TYPE: Control (4) SUBCLASS: Busy (5) ] [ISDN1#01]
INFO_IND ID=001 #0x436f LEN=0017
Controller/PLCI/NCCI = 0x201
InfoNumber = 0x1e
InfoElement = <82 88>

INFO_RESP ID=001 #0x436f LEN=0012
Controller/PLCI/NCCI = 0x201

-- ISDN1#01: info element PI 82 88
> ISDN1#01: In-band information available
INFO_IND ID=001 #0x4370 LEN=0017
Controller/PLCI/NCCI = 0x201
InfoNumber = 0x8
InfoElement = <85 91>

INFO_RESP ID=001 #0x4370 LEN=0012
Controller/PLCI/NCCI = 0x201

-- ISDN1#01: info element CAUSE 85 91
-- CAPI/ISDN1/01731234567-1 is busy
== ISDN1#01: CAPI Hangingup for PLCI=0x201 in state 5
-- ISDN1#01: activehangingup (cause=17) for PLCI=0x201
DISCONNECT_REQ ID=001 #0x0140 LEN=0018
Controller/PLCI/NCCI = 0x201
AdditionalInfo
BChannelinformation = default
Keypadfacility = default
Useruserdata = default
Facilitydataarray = default
SendingComplete = default

ISDN1#01: wait for DISCONNECT_CONF (0x481)
DISCONNECT_CONF ID=001 #0x0140 LEN=0014
Controller/PLCI/NCCI = 0x201
Info = 0x0

ISDN1#01: found and signal for DISCONNECT_CONF
ISDN1#01: cond signal received for DISCONNECT_CONF
== Everyone is busy/congested at this time (1:1/0/0)
-- Stopped music on hold on CAPI/ISDN1/12345-0
-- Executing Goto("CAPI/ISDN1/12345-0", "s-BUSY|1") in new stack
-- Goto (capi-in,s-BUSY,1)
-- Executing Playback("CAPI/ISDN1/12345-0", "noconnect") in new stack
-- Playing 'noconnect' (language 'de')
> CAPI devicestate requested for ISDN1/01731234567
> CAPI devicestate requested for ISDN1/01731234567
DISCONNECT_IND ID=001 #0x4376 LEN=0014
Controller/PLCI/NCCI = 0x201
Reason = 0x3491

DISCONNECT_RESP ID=001 #0x4376 LEN=0012
Controller/PLCI/NCCI = 0x201

> ISDN1#01: CAPI INFO 0x3491: User busy
== ISDN1#01: Interface cleanup PLCI=0x201
INFO_IND ID=001 #0x43f8 LEN=0015
Controller/PLCI/NCCI = 0x101
InfoNumber = 0x8045
InfoElement = default

INFO_RESP ID=001 #0x43f8 LEN=0012
Controller/PLCI/NCCI = 0x101

-- ISDN1#02: info element DISCONNECT
-- ISDN1#02: Disconnect case 3
-- CAPI queue frame: TYPE: Control (4) SUBCLASS: Hangup (1) ] [ISDN1#02]
INFO_IND ID=001 #0x43f9 LEN=0017
Controller/PLCI/NCCI = 0x101
InfoNumber = 0x1e
InfoElement = <82 88>

INFO_RESP ID=001 #0x43f9 LEN=0012
Controller/PLCI/NCCI = 0x101

-- ISDN1#02: info element PI 82 88
> ISDN1#02: In-band information available
> ISDN1#02: no queue_frame in state disconnecting for 4/14
INFO_IND ID=001 #0x43fa LEN=0017
Controller/PLCI/NCCI = 0x101
InfoNumber = 0x8
InfoElement = <80 90>

INFO_RESP ID=001 #0x43fa LEN=0012
Controller/PLCI/NCCI = 0x101

-- ISDN1#02: info element CAUSE 80 90
== Spawn extension (capi-in, s-BUSY, 1) exited non-zero on 'CAPI/ISDN1/12345-0'
== ISDN1#02: CAPI Hangingup for PLCI=0x101 in state 2
-- ISDN1#02: activehangingup (cause=16) for PLCI=0x101
DISCONNECT_B3_REQ ID=001 #0x01c7 LEN=0013
Controller/PLCI/NCCI = 0x10101
NCPI = default

ISDN1#02: wait for DISCONNECT_B3_CONF (0x8481)
DISCONNECT_B3_CONF ID=001 #0x01c7 LEN=0014
Controller/PLCI/NCCI = 0x10101
Info = 0x0

ISDN1#02: found and signal for DISCONNECT_B3_CONF
ISDN1#02: cond signal received for DISCONNECT_B3_CONF
DISCONNECT_B3_IND ID=001 #0x43fb LEN=0015
Controller/PLCI/NCCI = 0x10101
Reason_B3 = 0x3301
NCPI = default

DISCONNECT_B3_RESP ID=001 #0x43fb LEN=0012
Controller/PLCI/NCCI = 0x10101

DISCONNECT_REQ ID=001 #0x01c8 LEN=0018
Controller/PLCI/NCCI = 0x101
AdditionalInfo
BChannelinformation = default
Keypadfacility = default
Useruserdata = default
Facilitydataarray = default
SendingComplete = default

DISCONNECT_CONF ID=001 #0x01c8 LEN=0014
Controller/PLCI/NCCI = 0x101
Info = 0x0

> CAPI devicestate requested for ISDN1/12345
> CAPI devicestate requested for ISDN1/12345
DISCONNECT_IND ID=001 #0x43fc LEN=0014
Controller/PLCI/NCCI = 0x101
Reason = 0x3490

DISCONNECT_RESP ID=001 #0x43fc LEN=0012
Controller/PLCI/NCCI = 0x101

> ISDN1#02: CAPI INFO 0x3490: Normal call clearing
== ISDN1#02: Interface cleanup PLCI=0x101
 
Also soweit, wie ich hier erkennen kann, wird deine MSN auch richtig nach draussen gesendet.

Sorry, ich kann hier keinen Fehler feststellen.
Prüfe nochmal, ob deine MSN korrekt ist und ob du eine Rufumleitung evtl. im Amt gesetzt hast. Ich habe es hier mal nachgestellt und es funktioniert problemlos...

Mario
 
Kostenlos!

Zurzeit aktive Besucher

Statistik des Forums

Themen
247,209
Beiträge
2,263,815
Mitglieder
375,699
Neuestes Mitglied
Dawn2kimberly