PtP Modus - internationale und nationale Rufnummern - chan_lcr

RcRaCk2k

Mitglied
Mitglied seit
4 Aug 2005
Beiträge
238
Punkte für Reaktionen
1
Punkte
16
Servus Leute,

ich habe einen ISDN-Anschluss, welcher auf Anlagen-Anschluss (PtP) eingestellt wurde.

Leider habe ich das Problem, dass ich bei eingehenden Anrufen nicht zwischen Nationalen und Internationalen Gesprächen unterscheiden kann.

ACHTUNG - DIESES POSTING KOMMT AUS ÖSTERREICH

In meinem Asterisk steht in der Variable ${CALLERID(number)} immer etwas im Format 49865460xx10 also International, wenn jemand von einem anderem Land (in diesem Fall Deutschland) bei uns anruft.

Wenn ich nun einen Inlands-Anruf bekomme, dann steht in der Variable ${CALLERID(number)} immer etwas im Format 6629xx6 - also National.

Da nun keine 00 und keine 0 übertragen wird, weiß ich nicht, ob es sich um einen Internationalen oder um einen Nationalen Anruf handelt.

Wie kann ich dies auswerten? Im Trace der Schnittstelle steht ja auch die richtige Nummer: "caller: 0049865460xx10"...

Code:
------------------------------------------------------------------------------
Port: 2 (BRI PTP TE)  Interface: 'extern'  Caller: ---
Time: 07.10.08 15:15:33.277  Direction: IN  Dialing: ---
------------------------------------------------------------------------------
CH(4): MT_NEW_L3ID INDICATION
 callref    : new        = 0x10001

------------------------------------------------------------------------------
Port: 2 (BRI PTP TE)  Interface: 'extern'  Caller: ---
Time: 07.10.08 15:15:33.277  Direction: IN  Dialing: ---
------------------------------------------------------------------------------
CH(4): MT_SETUP INDICATION U<-N
 calling_pn : type       = 1
            : plan       = 1
            : present    = 0
            : screen     = 3
            : number     = 49865460xx10
 called_pn  : type       = 0
            : plan       = 1
            : number     = 11
 complete   :
 channel_id : exclusive  = 1
            : channel    = 1
 bearer     : coding     = 0
            : capability = 0
            : mode       = 0
            : rate       = 16
            : multi      = -1
            : user       = 3

------------------------------------------------------------------------------
Port: 2 (BRI PTP TE)  Interface: 'extern'  Caller: '0049865460xx10'
Time: 07.10.08 15:15:33.277  Direction: ---  Dialing: '11'
------------------------------------------------------------------------------
CH(4): CHANNEL SELECTION (setup)
 channel    : request    = '1 (forced)'
            : reserved   = 0
 conclusion :              'channel available'
 connect    : channel    = 1

------------------------------------------------------------------------------
Port: 2 (BRI PTP TE)  Interface: 'extern'  Caller: '0049865460xx10'
Time: 07.10.08 15:15:33.277  Direction: OUT  Dialing: '11'
------------------------------------------------------------------------------
CH(4): BCHANNEL create socket
 channel    :              1
 socket     :              12

------------------------------------------------------------------------------
Port: 2 (BRI PTP TE)  Interface: 'extern'  Caller: '0049865460xx10'
Time: 07.10.08 15:15:33.277  Direction: OUT  Dialing: '11'
------------------------------------------------------------------------------
CH(4): BCHANNEL activate
 channel    :              1

------------------------------------------------------------------------------
Port: ---  Interface: ---  Caller: ---
Time: 07.10.08 15:15:33.277  Direction: IN  Dialing: ---
------------------------------------------------------------------------------
EP(4): SETUP
 from       :              CH(4)
 caller id  : number     = 0049865460xx10
            : present    = allowed

 dialing    :              11
 complete   :              true

------------------------------------------------------------------------------
Port: ---  Interface: ---  Caller: '0049865460xx10'
Time: 07.10.08 15:15:33.277  Direction: OUT  Dialing: '11'
------------------------------------------------------------------------------
EP(4): TONE
 to         :              CH(4)
 directory  :              tones_german
 name       :              dialing

------------------------------------------------------------------------------
Port: ---  Interface: ---  Caller: '0049865460xx10'
Time: 07.10.08 15:15:33.277  Direction: ---  Dialing: '11'
------------------------------------------------------------------------------
EP(4): ACTION (match)
 action     :              remote
 line       :              9

------------------------------------------------------------------------------
Port: ---  Interface: ---  Caller: '0049865460xx10'
Time: 07.10.08 15:15:33.277  Direction: ---  Dialing: '11'
------------------------------------------------------------------------------
EP(4): ACTION remote (setup)
 number     :              11
 remote     :              asterisk
 context    :              isdn_extern

------------------------------------------------------------------------------
Port: ---  Interface: ---  Caller: '0049865460xx10'
Time: 07.10.08 15:15:33.277  Direction: OUT  Dialing: '11'
------------------------------------------------------------------------------
EP(4): SETUP ACKNOWLEDGE
 to         :              CH(4)

------------------------------------------------------------------------------
Port: 2 (BRI PTP TE)  Interface: 'extern'  Caller: '0049865460xx10'
Time: 07.10.08 15:15:33.277  Direction: OUT  Dialing: '11'
------------------------------------------------------------------------------
CH(4): MT_PROCEEDING REQUEST U->N
 channel_id : exclusive  = 1
            : channel    = 1

------------------------------------------------------------------------------
Port: 2 (BRI PTP TE)  Interface: 'extern'  Caller: '0049865460xx10'
Time: 07.10.08 15:15:33.281  Direction: OUT  Dialing: '11'
------------------------------------------------------------------------------
CH(4): BCHANNEL control
 DSP-RXOFF  :              1

------------------------------------------------------------------------------
Port: ---  Interface: ---  Caller: '0049865460xx10'
Time: 07.10.08 15:15:33.299  Direction: OUT  Dialing: '11'
------------------------------------------------------------------------------
EP(4): TONE
 to         :              CH(4)
 directory  :              tones_german
 name       :              dialing

------------------------------------------------------------------------------
Port: ---  Interface: ---  Caller: '0049865460xx10'
Time: 07.10.08 15:15:33.505  Direction: OUT  Dialing: '11'
------------------------------------------------------------------------------
EP(4): ALERTING
 to         :              CH(4)

------------------------------------------------------------------------------
Port: ---  Interface: ---  Caller: '0049865460xx10'
Time: 07.10.08 15:15:33.505  Direction: OUT  Dialing: '11'
------------------------------------------------------------------------------
EP(4): TONE
 to         :              CH(4)
 directory  :              tones_german
 name       :              ringing

------------------------------------------------------------------------------
Port: 2 (BRI PTP TE)  Interface: 'extern'  Caller: '0049865460xx10'
Time: 07.10.08 15:15:33.505  Direction: OUT  Dialing: '11'
------------------------------------------------------------------------------
CH(4): MT_ALERTING REQUEST U->N

------------------------------------------------------------------------------
Port: 2 (BRI PTP TE)  Interface: 'extern'  Caller: '0049865460xx10'
Time: 07.10.08 15:15:36.003  Direction: IN  Dialing: '11'
------------------------------------------------------------------------------
CH(4): MT_DISCONNECT INDICATION U<-N
 cause      : location   = 5
            : value      = 16

------------------------------------------------------------------------------
Port: ---  Interface: ---  Caller: '0049865460xx10'
Time: 07.10.08 15:15:36.003  Direction: IN  Dialing: '11'
------------------------------------------------------------------------------
EP(4): DISCONNECT
 from       :              CH(4)
 cause      : value      = 16
            : location   = 5-Remote-PBX

------------------------------------------------------------------------------
Port: ---  Interface: ---  Caller: '0049865460xx10'
Time: 07.10.08 15:15:36.003  Direction: ---  Dialing: '11'
------------------------------------------------------------------------------
EP(4): ACTION hangup

------------------------------------------------------------------------------
Port: ---  Interface: ---  Caller: '0049865460xx10'
Time: 07.10.08 15:15:36.003  Direction: OUT  Dialing: '11'
------------------------------------------------------------------------------
EP(4): TONE
 to         :              CH(4)
 directory  :              tones_german
 name       :              cause_10

------------------------------------------------------------------------------
Port: ---  Interface: ---  Caller: '0049865460xx10'
Time: 07.10.08 15:15:36.003  Direction: OUT  Dialing: '11'
------------------------------------------------------------------------------
EP(4): TONE
 to         :              CH(4)
 directory  :              tones_german

Ich hoffe, dass mir da irgendwer helfen kann.

Liebe Grüße,
Michael Rack.
 
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.