Problem mit CLIR - chan_capi 0.5.4

Tucca

Neuer User
Mitglied seit
14 Jul 2004
Beiträge
174
Punkte für Reaktionen
0
Punkte
0
Hallo,

ich versuche verzweifelt meine Rufnummer fallweise zu unterdrücken. Leider wird diese IMMER angezeigt.

extensions.conf
Code:
exten => _X.,1,SetCallerPres(prohib)
exten => _X.,2,Dial(CAPI/contr1/b${EXTEN},,tT)

Capi debug
Code:
Executing Goto("SIP/90-7754", "dialout|01791234567|1") in new stack
    -- Goto (dialout,01791234567,1)
    -- Executing SetCallerPres("SIP/90-7754", "unavailable") in new stack
    -- Executing Dial("SIP/90-7754", "Capi/contr3/b01791234567||Tt") in new stack
    -- data = contr3/b01791234567
    -- capi request controller = 3
    -- creating pipe for PLCI=0
  == CAPI Call CAPI/contr3/b01791234567-1796 with B3 (pres=0x43)
CONNECT_REQ ID=001 #0x7b9a LEN=0067
  Controller/PLCI/NCCI            = 0x3
  CIPValue                        = 0x10
  CalledPartyNumber               = <80>01791234567
  CallingPartyNumber              = <00 c3 22>Marco<22> <3c>90<3e>
  CalledPartySubaddress           = default
  CallingPartySubaddress          = default
  BProtocol
   B1protocol                     = 0x1
   B2protocol                     = 0x1
   B3protocol                     = 0x0
   B1configuration                = default
   B2configuration                = default
   B3configuration                = default
  BC                              = default
  LLC                             = default
  HLC                             = default
  AdditionalInfo
   BChannelinformation            = <00 00>
   Keypadfacility                 = default
   Useruserdata                   = default
   Facilitydataarray              = default

    -- Called contr3/b01791234567
CONNECT_CONF ID=001 #0x7b9a LEN=0014
  Controller/PLCI/NCCI            = 0x103
  Info                            = 0x0

  == received CONNECT_CONF PLCI = 0x103 INFO = 0
INFO_IND ID=001 #0x53ac LEN=0019
  Controller/PLCI/NCCI            = 0x103
  InfoNumber                      = 0x8
  InfoElement                     = <82 e4 98>l

INFO_RESP ID=001 #0x53ac LEN=0012
  Controller/PLCI/NCCI            = 0x103

  == info element CAUSE 82 e4
INFO_IND ID=001 #0x53ad LEN=0016
  Controller/PLCI/NCCI            = 0x103
  InfoNumber                      = 0x14
  InfoElement                     = <01>

INFO_RESP ID=001 #0x53ad LEN=0012
  Controller/PLCI/NCCI            = 0x103

  == CAPI: unhandled INFO_IND 0x14 (PLCI=0x103)
INFO_IND ID=001 #0x53ae LEN=0015
  Controller/PLCI/NCCI            = 0x103
  InfoNumber                      = 0x807d
  InfoElement                     = default

INFO_RESP ID=001 #0x53ae LEN=0012
  Controller/PLCI/NCCI            = 0x103

  == CAPI: unhandled INFO_IND 0x807d (PLCI=0x103)
INFO_IND ID=001 #0x53b0 LEN=0016
  Controller/PLCI/NCCI            = 0x103
  InfoNumber                      = 0x18
  InfoElement                     = <89>

INFO_RESP ID=001 #0x53b0 LEN=0012
  Controller/PLCI/NCCI            = 0x103

  == info element CHANNEL IDENTIFIKATION 89
INFO_IND ID=001 #0x53b1 LEN=0015
  Controller/PLCI/NCCI            = 0x103
  InfoNumber                      = 0x8002
  InfoElement                     = default

INFO_RESP ID=001 #0x53b1 LEN=0012
  Controller/PLCI/NCCI            = 0x103

  == info element CALL PROCEEDING
    -- CAPI Hangingup
       > activehangingup
DISCONNECT_REQ ID=001 #0x7b9b LEN=0017
  Controller/PLCI/NCCI            = 0x103
  AdditionalInfo
   BChannelinformation            = default
   Keypadfacility                 = default
   Useruserdata                   = default
   Facilitydataarray              = default

  == Spawn extension (dialout, 01791234567, 2) exited non-zero on 'SIP/90-7754'
DISCONNECT_CONF ID=001 #0x7b9b LEN=0014
  Controller/PLCI/NCCI            = 0x103
  Info                            = 0x0

INFO_IND ID=001 #0x53b3 LEN=0015
  Controller/PLCI/NCCI            = 0x103
  InfoNumber                      = 0x804d
  InfoElement                     = default

INFO_RESP ID=001 #0x53b3 LEN=0012
  Controller/PLCI/NCCI            = 0x103

  == info element RELEASE
DISCONNECT_IND ID=001 #0x53b5 LEN=0014
  Controller/PLCI/NCCI            = 0x103
  Reason                          = 0x3490

DISCONNECT_RESP ID=001 #0x53b5 LEN=0012
  Controller/PLCI/NCCI            = 0x103

    -- removed pipe for PLCI = 0x103


Hat jemand einen Hinweis für mich was ich falsch mache?
Oder liegt das an der T-Com - Hab es allerdings mit zwei getrennten Anschlüssen getestet... :(

Gruß,
Marco
 
Code:
Using CLIR
==========
Use the SetCallerPres() application before you dial:
	exten => _X.,1,SetCallerPres(prohib_not_screened)
	exten => _X.,2,Dial(CAPI/contr1/${EXTEN})

So sollte es gehen (so steht es zumindest in der README-Datei).

P.S.: Irgendwie passt das Log-File nicht. Ist das nun "contr1" oder 3?
 
SetCallerPres() ist korrekt, aber schau mal was deine CallerID ist:
.. 22>Marco<22> <3c>90<3e>
Hier ist nicht nur die Nummer, sondern auch der Name drin. Fuer die T-Com ist das eine ungueltige Nummer und es wird die Haupt-MSN verwendet.
In Deiner extensions.conf scheint also vorher die CallerID(number) auf Name+Number gesetzt zu werden, das musst du aendern.

Armin
 
Hallo Armin,

ich habe nun die CallerID auf 1 gesetzt

extensions.conf
Code:
[capi-out]
exten => _X.,1,SetCallerID(1)
exten => _X.,n,SetCallerPres(prohib)
exten => _X.,n,Dial(CAPI/contr1/${EXTEN}/b,,tT)

capi output:
Code:
    -- Executing Goto("SIP/90-057a", "capi-out|01791234567|1") in new stack
    -- Goto (capi-out,01791234567,1)
    -- Executing SetCallerID("SIP/90-057a", "1") in new stack
    -- Executing SetCallerPres("SIP/90-057a", "prohib") in new stack
    -- Executing Dial("SIP/90-057a", "CAPI/contr1/01791234567/b||tT") in new stack
       > data = contr1/01791234567/b
       > parsed dialstring: 'contr1' '' '01791234567' 'b'
       > capi request controller = 1
       > parsed dialstring: 'contr1' '' '01791234567' 'b'
  == ISDN1: Call CAPI/ISDN1/01791234567-3a with B3  (pres=0x23, ton=0x00)
CONNECT_REQ ID=001 #0x00e2 LEN=0055
  Controller/PLCI/NCCI            = 0x1
  CIPValue                        = 0x1
  CalledPartyNumber               = <80>01791234567
  CallingPartyNumber              = <00 a3>1
  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

    -- Called contr1/01795340899/b
CONNECT_CONF ID=001 #0x00e2 LEN=0014
  Controller/PLCI/NCCI            = 0x101
  Info                            = 0x0

    -- ISDN1: received CONNECT_CONF PLCI = 0x101
INFO_IND ID=001 #0x0c96 LEN=0015
  Controller/PLCI/NCCI            = 0x101
  InfoNumber                      = 0x800d
  InfoElement                     = default

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

    -- ISDN1: info element SETUP ACK
INFO_IND ID=001 #0x0c97 LEN=0016
  Controller/PLCI/NCCI            = 0x101
  InfoNumber                      = 0x18
  InfoElement                     = <89>

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

    -- ISDN1: info element CHANNEL IDENTIFICATION 89
INFO_IND ID=001 #0x0c98 LEN=0015
  Controller/PLCI/NCCI            = 0x101
  InfoNumber                      = 0x8001
  InfoElement                     = default

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

    -- ISDN1: info element ALERTING
    -- CAPI/ISDN1/01791234567-3a is ringing
  == ISDN1: CAPI Hangingup
    -- ISDN1: activehangingup (cause=0)
DISCONNECT_REQ ID=001 #0x00e3 LEN=0018
  Controller/PLCI/NCCI            = 0x101
  AdditionalInfo
   BChannelinformation            = default
   Keypadfacility                 = default
   Useruserdata                   = default
   Facilitydataarray              = default
   SendingComplete                = default

  == Spawn extension (capi-out, 01791234567, 3) exited non-zero on 'SIP/90-057a'
DISCONNECT_CONF ID=001 #0x00e3 LEN=0014
  Controller/PLCI/NCCI            = 0x101
  Info                            = 0x0

DISCONNECT_IND ID=001 #0x0c99 LEN=0014
  Controller/PLCI/NCCI            = 0x101
  Reason                          = 0x3400

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

  == ISDN1: Interface cleanup PLCI=0x101

dies ist aber die chan_capi (CVS, 0.6.2) mit Asterisk-1.2

Bei der chan_capi 0.5.4 geht es jetzt - DANKE ! :)

Kannst du mir noch helfen?


Marco
 
Ich kann hier keine Fehler sehen, ausser dass vieleicht die CallerID=1 genauso falsch fuer T-Com ist. Es muss schon eine richtige MSN sein.

Armin
 
Die MSN wird mir richtig angezeigt (sogar mehr als ich hab: 12340 und 12341 hab ich - 12349 wird aber auch angezeigt wenn ich es so einstelle).
Eine Unterdrückung findet leider nicht statt.

Kann es sein, dass der Anschluss dafür nicht einstellt ist - dh. kein CLIR unterstützt (ist ein Euro-ISDN-Anschluss).
 
Es kann sein, dass der Anschluss CLIR nicht unterstuetzt. Aber hast du nicht geschrieben, dass es mit 0.5.4 geht?
Wenn es mit 0.5.4 funktioniert, kann ich mir das nicht erklaeren. Ein Log zum Vergleichen waere gut.

Armin
 
ja, mit 0.5.4 und meinem Anlagenanschluss geht es.
mit dem "normalen" Anschluss und 0.6.2 geht es leider nicht.

Log folgt morgen
 
Beim Anlagenanschluss ist es auch etwas anderes, da gibt es keine MSN, die man einhalten muss.

Armin
 
Kostenlos!

Statistik des Forums

Themen
248,464
Beiträge
2,292,022
Mitglieder
377,897
Neuestes Mitglied
hagepbx