misdn kein Ton

wurtzel

Neuer User
Mitglied seit
7 Mrz 2006
Beiträge
49
Punkte für Reaktionen
0
Punkte
0
Hallo Ich hab wieder mal ein paar probleme

1. Bei Anrufen über PSTN (eingehend und ausgehend) wird zwar eine Verbindung aufgebaut aber keine Sprache übermittelt

2. kann ich mit den Telefonen am internen So keine am Asterisk registrierten SIP Telefone anrufen

Code:
misdn show config
Misdn General-Config:
 -> Version: chan_misdn-0.3.0-rc25
 -> misdn_init: /etc/misdn-init.conf -> debug: 1
 -> tracefile: /var/log/misdn.trace  -> bridging: yes
 -> stop_tone_after_first_digit: yes -> append_digits2exten: yes
 -> dynamic_crypt: no                -> crypt_prefix:
 -> crypt_keys:
linuxa64*CLI>
[PORT 1]
 -> name: NTPort                     -> rxgain: 0
 -> txgain: 0                        -> te_choose_channel: no
 -> pmp_l1_check: yes                -> context: intern
 -> language: de                     -> musicclass: default
 -> callerid:                        -> method: standard
 -> dialplan: 0                      -> localdialplan: 0
 -> cpndialplan: 0                   -> nationalprefix: 0
 -> internationalprefix: 00          -> presentation: -1
 -> screen: -1                       -> always_immediate: no
 -> immediate: no                    -> senddtmf: no
 -> hold_allowed: no                 -> early_bconnect: yes
 -> incoming_early_audio: no         -> echocancel: 0
 -> echocancelwhenbridged: no        -> echotraining: 0
 -> need_more_infos: no              -> jitterbuffer: 4000
 -> jitterbuffer_upper_threshold: 0  -> callgroup:
 -> pickupgroup:                     -> msns: *
 -> ptp: no

[PORT 2]
 -> name: TePort                     -> rxgain: 0
 -> txgain: 0                        -> te_choose_channel: no
 -> pmp_l1_check: yes                -> context: extern
 -> language: de                     -> musicclass: default
 -> callerid:                        -> method: standard
 -> dialplan: 0                      -> localdialplan: 0
 -> cpndialplan: 0                   -> nationalprefix: 0
 -> internationalprefix: 00          -> presentation: -1
 -> screen: -1                       -> always_immediate: no
 -> immediate: no                    -> senddtmf: no
 -> hold_allowed: no                 -> early_bconnect: yes
 -> incoming_early_audio: no         -> echocancel: 0
 -> echocancelwhenbridged: no        -> echotraining: 0
 -> need_more_infos: no              -> jitterbuffer: 4000
 -> jitterbuffer_upper_threshold: 0  -> callgroup:
 -> pickupgroup:                     -> msns: *
 -> ptp: yes

sip.conf
Code:
[general]
context=default
bindport=5060
bindaddr=0.0.0.0


[10]
callerid=10<10>
type=peer
username=10
secret=XXXXXXXXXXXXX
host=dynamic
domain=192.168.0.96
mailbox=10
nat=yes
canreinvite=no

[11]
callerid=11<11>
type=peer
username=11
secret=XXXXXXXXXXX
host=dynamic
domain=192.168.0.96
mailbox=11
nat=yes
canreinvite=no

....

extensions.conf
Code:
[general]
static=yes
writeprotect=no

[local]
include => internphones
exten => 10,1,macro,extern|SIP|${EXTEN}||25|25
exten => 11,1,macro,extern|SIP|${EXTEN}|25|25
exten => 20,1,macro,extern|SIP|${EXTEN}|25|25
exten => 21,1,macro,extern|mISDN/g:NTPort|${EXTEN}|25|25
exten => 30,1,macro,extern|mISDN/g:NTPort|${EXTEN}|25|25
exten => 40,1,macro,extern|SIP|${EXTEN}|25|25
exten => 50,1,macro,extern|mISDN/g:NTPort|${EXTEN}|25|25
exten => 60,1,macro,extern|mISDN/g:NTPort|${EXTEN}|25|25
exten => 3000,1,VoiceMailMain(${CALLERIDNUM})



[default]
include => local
include => extern

[extern]
include => local

exten => _X.,1,NoOp(${EXTEN} extern)
exten => _0.,1,Set(CALLERID(nummer)=${meineStammnummer}${CALLERID(nummer)})
exten => _0.,2,Dial(mISDN/g:TePort/${EXTEN:1})
exten => _MMMMMZ[01],1,Goto(local,${EXTEN:-2},1)


[intern]
; Regeln fuer Telefone am internen S0
exten => _X.,1,waitfordigits(1500)
exten => _X.,2,NoOp(${EXTEN} intern)
include => local
include => extern

[internphones]
;switch => Realtime/internphones@


[macro-extern]
; ARG1 = Protokol
; ARG2 = <intern-Nr>
; ARG3 = Sekunden <intern-Nr>
; ARG4 = Sekunden $vermittlung

exten => s,1,NoOp(Macro: Anruf von Extern)
exten => s,n,Dial,${ARG1}/${ARG2}|${ARG3}|Ttr
exten => s,n,Goto,s-${DIALSTATUS}|1

; Besetzt
exten => s-BUSY,1,voicemail,b${ARG2}
exten => s-BUSY,n,Hangup

; Gassenbesetzt
exten => s-CONGESTION,1,voicemail,b${ARG2}
exten => s-CONGESTION,n,Hangup

; Nichtannahme
exten => s-NOANSWER,1,voicemail,u${ARG2}
exten => s-NOANSWER,n,Hangup

; SIP-Telefon nicht angemeldet
exten => s-CHANUNAVAIL,1,voicemail,u${ARG2}
exten => s-CHANUNAVAIL,n,Hangup
 
Ein trace mit debug-level 5 wär hilfreich:

misdn.conf:

[general]
debug=5
tracefile=/var/log/misdn.trace
 
so wie es aussieht ist es ein fehler im misdn da er /etc/init.d/misdn-init start od. stop segmentation faults bringt

zB.
/etc/init.d/misdn-init: line 301: 6702 Segmentation fault rmmod hfcpci
rmmod avmfritz
ERROR: Module avmfritz does not exists
..
 
aus irgend welchen gründen get es manchmal
hier ginges
audio pstn ->sip funktionierte
sip ->pstn ging nicht
Code:
P[ 2] I IND :SETUP oad:XXXXXXX dad:YYYYY
P[ 2] read_config: Getting Config
P[ 2] config_jb: Called
P[ 2] I SEND:PROCEEDING oad:XXXXXXX dad:YYYYYYYY
    -- Executing Goto("mISDN/2-1", "local|10|1") in new stack
    -- Goto (local,10,1)
    -- Executing Macro("mISDN/2-1", "extern|SIP|10|25|25") in new stack
    -- Executing NoOp("mISDN/2-1", "Macro: Anruf von Extern") in new stack
    -- Executing Dial("mISDN/2-1", "SIP/10|25|Ttr") in new stack
Mar 27 20:14:16 DEBUG[7421]: chan_sip.c:1867 create_addr_from_peer: Setting NAT on RTP to 524288
Mar 27 20:14:16 DEBUG[7421]: chan_sip.c:2061 sip_call: Outgoing Call for 10
    -- Called 10
P[ 2] * IND : Indication [3] from s
P[ 2]  --> * IND :      ringing pid:0
P[ 2] I SEND:ALERTING oad:XXXXXXX dad:YYYYYYYY
P[ 2]  --> incoming_early_audio off
P[ 2]  --> * SEND: State Ring pid:0
Mar 27 20:14:16 DEBUG[7404]: chan_sip.c:1447 __sip_semi_ack: (Provisional) Stopping retransmission (but retaining packet) on '[email protected]' Request 102: Found
Mar 27 20:14:16 DEBUG[7404]: chan_sip.c:1447 __sip_semi_ack: (Provisional) Stopping retransmission (but retaining packet) on '[email protected]' Request 102: Found
    -- SIP/10-8ca0 is ringing
Mar 27 20:14:23 DEBUG[7404]: chan_sip.c:1372 __sip_ack: Acked pending invite 102
Mar 27 20:14:23 DEBUG[7404]: chan_sip.c:1394 __sip_ack: Stopping retransmission on '[email protected]' of Request 102: Match Found
Mar 27 20:14:23 DEBUG[7404]: chan_sip.c:6028 build_route: build_route: Contact hop: <sip:[email protected]:1595>
    -- SIP/10-8ca0 answered mISDN/2-1
P[ 2] * IND : Indication [-1] from s
P[ 2]  --> * IND :      -1! (stop indication) pid:0
P[ 2] * ANSWER:
P[ 2] I SEND:CONNECT oad:XXXXXXX dad:YYYYYYYYY
Mar 27 20:14:23 DEBUG[7421]: chan_sip.c:2969 sip_rtp_read: Oooh, format changed to 8
P[ 2] I IND :CONNECT_ACKNOWLEDGE  oad:XXXXXXXXXXX dad:YYYYYYYY
Mar 27 20:14:23 DEBUG[7421]: channel.c:1963 ast_read: Dropping duplicate answer!
Mar 27 20:14:23 DEBUG[7404]: chan_sip.c:1394 __sip_ack: Stopping retransmission on '[email protected]' of Request 102: Match Found
Mar 27 20:15:24 DEBUG[7404]: chan_sip.c:1394 __sip_ack: Stopping retransmission on '[email protected]' of Request 102: Match Found
    coding=0 location=2 progress=8
P[ 2] I IND :DISCONNECT oad:XXXXXXXX dad:YYYYYYYYYY
P[ 2] I SEND:RELEASE oad:XXXXXXX dad:YYYYYYY
P[ 2] I IND :RELEASE_COMPLETE oad:XXXXXXXX dad:YYYYYYYYYY
P[ 2] Trying to Release bc with l3id: 20001
P[ 2] * RELEASING CHANNEL pid:0 ctx:macro-extern dad:s oad:XXXXXXX state: CONNECTED
P[ 2] I IND :CLEAN_UP oad: dad:
Mar 27 20:15:58 DEBUG[7421]: channel.c:3272 ast_generic_bridge: Didn't get a frame from channel: mISDN/2-1
Mar 27 20:15:58 DEBUG[7421]: channel.c:3547 ast_channel_bridge: Bridge stops bridging channels mISDN/2-1 and SIP/10-8ca0
Mar 27 20:15:58 DEBUG[7421]: chan_sip.c:2419 sip_hangup: update_call_counter(10) - decrement call limit counter
Mar 27 20:15:58 DEBUG[7421]: app_dial.c:1587 dial_exec_full: Exiting with DIALSTATUS=ANSWER.
  == Spawn extension (macro-extern, s, 2) exited non-zero on 'mISDN/2-1' in macro 'extern'
  == Spawn extension (macro-extern, s, 2) exited non-zero on 'mISDN/2-1'
Mar 27 20:15:58 DEBUG[7399]: channel.c:777 channel_find_locked: Avoiding initial deadlock for 'mISDN/2-1'
Mar 27 20:15:58 DEBUG[7421]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is 'YYYYYYYY'
Mar 27 20:15:58 DEBUG[7421]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is 'XXXXXXXX'
Mar 27 20:15:58 DEBUG[7421]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is '10'
Mar 27 20:15:58 DEBUG[7421]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is 'local'
Mar 27 20:15:58 DEBUG[7421]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is 'mISDN/2-1'
Mar 27 20:15:58 DEBUG[7421]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is 'SIP/10-8ca0'
Mar 27 20:15:58 DEBUG[7421]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is 'Dial'
Mar 27 20:15:58 DEBUG[7421]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is 'SIP/10|25|Ttr'
Mar 27 20:15:58 DEBUG[7421]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is '2006-03-27 20:14:16'
Mar 27 20:15:58 DEBUG[7421]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is '2006-03-27 20:14:23'
Mar 27 20:15:58 DEBUG[7421]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is '2006-03-27 20:15:58'
Mar 27 20:15:58 DEBUG[7421]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is '102'
Mar 27 20:15:58 DEBUG[7421]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is '95'
Mar 27 20:15:58 DEBUG[7421]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is 'ANSWERED'
Mar 27 20:15:58 DEBUG[7421]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is 'DOCUMENTATION'
Mar 27 20:15:58 DEBUG[7421]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is '(null)'
Mar 27 20:15:58 DEBUG[7421]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is '1143483256.0'
Mar 27 20:15:58 DEBUG[7421]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is '(null)'
Mar 27 20:15:58 DEBUG[7404]: chan_sip.c:1394 __sip_ack: Stopping retransmission on '[email protected]' of Request 103: Match Found
 
Der Entlade segfault ist bekannt und hab nichts mit deinem one-way Audio zu tun.

Wie ist denn dein Callsetup ? Ist es:

ISDN Phone <--> mISDN <---> Asterisk <---> SIP <---> SIP Provider ?

dann könnts auch an deinen Firewall-Regeln oder NAT einstellungen liegen.
 
PSTN (ISDN anlagenanschluß) <--> mISDN <---> Asterisk <---> SIP <--->PC (Telefon)
bzw
PSTN (ISDN anlagenanschluß) <--> mISDN <---> Asterisk <--> mISDN (nt_pmtp)<-->EUMEX3001P <--> Analogtelefon
bekomme ich zwar den Ton manchmal aufs Telefon(intern) aber keinen Ton aus dem Anrufenden Telefon(PSTN)
keine Firewall aktiv


PC <--> SIP <--> Asterisk <--> mISDN (nt_pmtp)<-->EUMEX3001P <--> Analogtelefon funktioniert
 
Das hab ich in /var/log/warn gefunden
und wenn Asterisk läuft fährt sich der Rechner Komplett fest

Code:
Mar 29 17:35:49 linuxa64 asterisk[8870]: WARNING[8870]: chan_misdn.c:4356 in chan_misdn_log: this is a unknown port type 0x00000000
Mar 29 17:35:49 linuxa64 kernel: mISDN: INTERNAL ERROR in /usr/src/install-misdn-mqueue/mqueue-misdn/mISDN/drivers/isdn/hardware/mISDN/stack.c:235 st(00000100) addr(41000100) layer -1 out of range
Mar 29 17:35:49 linuxa64 kernel: mISDN: INTERNAL ERROR in /usr/src/install-misdn-mqueue/mqueue-misdn/mISDN/drivers/isdn/hardware/mISDN/stack.c:235 st(00000100) addr(41000100) layer -1 out of range
 
schei.. schwer zu sagen was hier das problem ist, ich hab leider keine 64bit hardware um deinen fall nachstellen zu können.

kannst du mal einen 32bit kernel benutzen und gucken ob du damit dasselbe problem hast ?
 
Das ist schon die 32bit version von Suse 10 da ich mit der 64bit noch mehr Probleme hatte.
(so hab meine Signatur korrigiert)
 
Ich hab zwar immernoch keinen schimmer was bei dir das problem sein kann, aber ich bin gerade dabei am B-Kanalhandling von chan_misdn zu optimieren.

Vielleicht löst das deine Probleme auch.
 
welche informationen wären hilfreich um dieses Problem zu Lösen?
 
Ich habe nochmal ne Menge am B-Kanal handling verbessert, probier doch mal die 0.3.0-rc28

falls das nicht geht solltest du mal probieren das bridging zu disablen. Ausserdem kannst du mal das mISDN_dsp modul mit debugging zu laden ( debug=0xffff).
 
Die Aktuelle Version gibt es immer über dein Link?
 
Das scheint so es war heut schon rc29

die INTERNEL ERRORS tretten erst mal nicht mehr auf was aber auch daran liegen kann das ich die frizcard in die verbannung geschickt habe

das kein ton Problem werde ich heut abend testen ob es jetzt behoben ist
 
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.