Carsten Maass wrote: >Hello Christian, > >Christian Richter wrote: > > >>i don't understand completely.. do you mean that you unplug the Phone >>while there was a call with this phone, and this channel is not hungup >>properly ? It should be hungup automatically i think.. but there might >>be a bug of course. >> >>Who wants to unplug phones while they're in use ? >> >> > >sure no one wants to do this on purpose, but sometimes the world isn't >as perfect as it should be. In this case the jack of our ISDN-telephone >isn't as tight fitting as it should be, so from time to time the line >gets interrupted accidentally just by moving the phone around. mISDN >should recover gracefully from such an interruption. > > > agreed.
>It doesn't make a difference if the phone is on hook or off hook: if the >line gets interrupted, the channel remains dead until a restart of asterisk. > > > ok, then open a bug report on bugs.beronet.com please. >Greetings, >Carsten. > > > > >>Carsten Maass wrote: >> >> >> >>>Hello, >>> >>>our ISDN-phone is connected to a asterisk server with a HFC-card in NT >>>mode over a mISDN-channel. The problem is: when i unplug the phone and >>>plug it in again, the misdn channel remains dead without further >>>notifications: >>> >>>P[ 2] TONE_GEN: len:1075863360 >>>P[ 2] Sending :128 bytes 2 MISDN >>>P[ 2] Writing 128 bytes 2 mISDN >>>P[ 2] TONE_GEN: len:1075863360 >>>P[ 2] Sending :128 bytes 2 MISDN >>>P[ 2] Writing 128 bytes 2 mISDN >>>P[ 2] MGMT: Short status dinfo 1000000 >>>P[ 2] MGMT: SSTATUS: L1_DEACTIVATED >>>P[ 0] get_index: event not found! >>>P[ 2] I IND :CLEAN_UP oad:48 dad: pid:2 state:WAITING4DIGS >>>P[ 2] hangup_chan >>>P[ 2] -> hangup >>>P[ 2] * IND : HANGUP pid:2 ctx:from-internal dad: oad:48 >>>State:WAITING4DIGS >>>P[ 2] --> l3id:7c0040 >>>P[ 2] --> cause:16 >>>P[ 2] --> out_cause:16 >>>P[ 2] --> state:WAITING4DIGS >>>P[ 2] SENDEVENT: stack->nt:1 stack->uperid:40000201 >>>P[ 2] Queueing Event RELEASE because L1 is down (btw. Activating L1) >>>P[ 2] Channel: mISDN/2-1 hanguped new state:CLEANING >>>P[ 2] release_chan: bc with l3id: 7c0040 >>>P[ 2] empty_chan_in_stack: 1 >>>P[ 2] Idx:0 stack->cchan:0 Chan:1 >>>P[ 2] Idx:1 stack->cchan:0 Chan:2 >>>P[ 2] $$$ CLEANUP CALLED pid:2 >>>P[ 2] $$$ Cleaning up bc with stid :10010200 pid:2 >>>P[ 2] $$$ Bchan deActivated addr 50010202 >>>P[ 2] BC_STATE_CHANGE: from:BCHAN_ACTIVATED to:BCHAN_RELEASE >>>P[ 2] ec_disable >>>P[ 2] BC_STATE_CHANGE: from:BCHAN_RELEASE to:BCHAN_CLEANED >>>P[ 2] $$$ find_chan: No channel found for oad: dad: >>>P[ 0] get_index: event not found! >>>P[ 2] I IND :CLEAN_UP oad: dad: pid:0 state:none >>>P[ 2] empty_chan_in_stack: 2 >>>P[ 2] Idx:0 stack->cchan:0 Chan:1 >>>P[ 2] Idx:1 stack->cchan:0 Chan:2 >>>P[ 2] $$$ CLEANUP CALLED pid:0 >>>P[ 2] $$$ Already cleaned up bc with stid :0 >>>P[ 2] MGMT: Short status dinfo 1000000 >>>P[ 2] MGMT: SSTATUS: L1_DEACTIVATED >>>P[ 2] $$$ find_chan: No channel found for oad: dad: >>>P[ 0] get_index: event not found! >>>P[ 2] I IND :CLEAN_UP oad: dad: pid:2 state:none >>>P[ 2] empty_chan_in_stack: 1 >>>P[ 2] Idx:0 stack->cchan:0 Chan:1 >>>P[ 2] Idx:1 stack->cchan:0 Chan:2 >>>P[ 2] $$$ CLEANUP CALLED pid:2 >>>P[ 2] $$$ Already cleaned up bc with stid :0 >>>P[ 2] $$$ find_chan: No channel found for oad: dad: >>>P[ 0] get_index: event not found! >>>P[ 2] I IND :CLEAN_UP oad: dad: pid:0 state:none >>>P[ 2] empty_chan_in_stack: 2 >>>P[ 2] Idx:0 stack->cchan:0 Chan:1 >>>P[ 2] Idx:1 stack->cchan:0 Chan:2 >>>P[ 2] $$$ CLEANUP CALLED pid:0 >>>P[ 2] $$$ Already cleaned up bc with stid :0 >>>P[ 2] L1: PH L1Link Down! >>>P[ 2] $$$ find_chan: No channel found for oad: dad: >>>P[ 0] get_index: event not found! >>>P[ 2] I IND :CLEAN_UP oad: dad: pid:2 state:none >>>P[ 2] $$$ find_chan: No channel found for oad: dad: >>>P[ 0] get_index: event not found! >>>P[ 2] I IND :CLEAN_UP oad: dad: pid:0 state:none >>>P[ 2] --> lib: prim 20082 dinfo 40 >>>P[ 2] % GOT L2 DeActivate Info. >>>P[ 2] --> lib: prim 3f182 dinfo 7c0040 >>>P[ 2] --> Faking Realease_cr for 41000201 >>>P[ 2] --> lib: RELEASE_CR Ind with l3id:7c0040 >>>P[ 2] --> lib: CLEANING UP l3id: 7c0040 >>>P[ 2] $$$ CLEANUP CALLED pid:2 >>>P[ 2] $$$ Already cleaned up bc with stid :0 >>>P[ 2] Idx:0 stack->cchan:0 Chan:1 >>>P[ 2] Idx:1 stack->cchan:0 Chan:2 >>>P[ 2] $$$ find_chan: No channel found for oad: dad: >>>P[ 0] get_index: event not found! >>>P[ 2] I IND :CLEAN_UP oad: dad: pid:2 state:none >>>P[ 2] BCHAN: MGR_DELLAYER|CNF pid:2 >>>P[ 2] MGMT: Short status dinfo 1000000 >>>P[ 2] MGMT: SSTATUS: L1_DEACTIVATED >>>P[ 2] $$$ find_chan: No channel found for oad: dad: >>>P[ 0] get_index: event not found! >>>P[ 2] I IND :CLEAN_UP oad: dad: pid:0 state:none >>>P[ 2] empty_chan_in_stack: 1 >>>P[ 2] Idx:0 stack->cchan:0 Chan:1 >>>P[ 2] Idx:1 stack->cchan:0 Chan:2 >>>P[ 2] $$$ CLEANUP CALLED pid:0 >>>P[ 2] $$$ Already cleaned up bc with stid :0 >>>P[ 2] $$$ find_chan: No channel found for oad: dad: >>>P[ 0] get_index: event not found! >>>P[ 2] I IND :CLEAN_UP oad: dad: pid:0 state:none >>>P[ 2] empty_chan_in_stack: 2 >>>P[ 2] Idx:0 stack->cchan:0 Chan:1 >>>P[ 2] Idx:1 stack->cchan:0 Chan:2 >>>P[ 2] $$$ CLEANUP CALLED pid:0 >>>P[ 2] $$$ Already cleaned up bc with stid :0 >>>P[ 2] L1: PH L1Link Down! >>>P[ 2] $$$ find_chan: No channel found for oad: dad: >>>P[ 0] get_index: event not found! >>>P[ 2] I IND :CLEAN_UP oad: dad: pid:0 state:none >>>P[ 2] $$$ find_chan: No channel found for oad: dad: >>>P[ 0] get_index: event not found! >>>P[ 2] I IND :CLEAN_UP oad: dad: pid:0 state:none >>>P[ 2] MGMT: Short status dinfo 1000001 >>>P[ 2] MGMT: SSTATUS: L1_ACTIVATED >>>P[ 2] L1: PH L1Link Up! >>>P[ 2] MGMT: Short status dinfo 1000001 >>>P[ 2] MGMT: SSTATUS: L1_ACTIVATED >>>P[ 2] L1: PH L1Link Up! >>>P[ 2] MGMT: Short status dinfo 1000001 >>>P[ 2] MGMT: SSTATUS: L1_ACTIVATED >>>P[ 2] L1: PH L1Link Up! >>> >>> >>>and /etc/asterisk/full shows: >>> >>>Oct 16 16:48:35 DEBUG[8780] devicestate.c: Changing state for mISDN/2 - >>>state 6 (Ringing) >>>Oct 16 16:48:35 DEBUG[8803] channel.c: Prodding channel 'mISDN/2-1' >>>Oct 16 16:48:35 DEBUG[8803] channel.c: Set channel mISDN/2-1 to write >>>format slin >>>Oct 16 16:48:35 DEBUG[8803] channel.c: Scheduling timer at 160 sample >>>intervals >>>Oct 16 16:48:35 DEBUG[8845] app_queue.c: Device 'mISDN/2' changed to >>>state '6' (Ringing) but we don't care because they're not >>>a member of any queue. >>>Oct 16 16:48:35 DEBUG[8780] devicestate.c: Changing state for mISDN/2 - >>>state 6 (Ringing) >>>Oct 16 16:48:35 DEBUG[8846] app_queue.c: Device 'mISDN/2' changed to >>>state '6' (Ringing) but we don't care because they're not >>>a member of any queue. >>>Oct 16 16:48:53 DEBUG[8803] channel.c: Set channel mISDN/2-1 to write >>>format alaw >>>Oct 16 16:48:53 DEBUG[8803] channel.c: Hanging up channel 'mISDN/2-1' >>>Oct 16 16:48:53 DEBUG[8803] chan_misdn.c: misdn_hangup(mISDN/2-1) >>>Oct 16 16:48:53 DEBUG[8780] devicestate.c: Changing state for mISDN/2 - >>>state 0 (Unknown) >>>Oct 16 16:48:53 DEBUG[8862] app_queue.c: Device 'mISDN/2' changed to >>>state '0' (Unknown) but we don't care because they're not >>>a member of any queue. >>> >>> >>>asterisk*CLI> misdn show config >>>Misdn General-Config: >>>-> Version: chan_misdn-0.3.1-rc23 >>>-> misdn_init: /etc/misdn-init.conf -> debug: 1 >>>-> tracefile: /var/log/asterisk/misdn.log -> bridging: yes >>>-> stop_tone_after_first_digit: yes -> append_digits2exten: yes >>>-> dynamic_crypt: no -> crypt_prefix: ** >>>-> crypt_keys: test,muh -> ntdebugflags: 0 >>>-> ntdebugfile: /var/log/misdn-nt.log >>> >>>[PORT 1] >>>-> name: TEports -> allowed_bearers: all >>>-> far_alerting: yes -> rxgain: 0 >>>-> txgain: 0 -> te_choose_channel: no >>>-> pmp_l1_check: yes -> block_on_alarm: yes >>>-> hdlc: no -> context: from-pstn >>>-> language: de -> musicclass: default >>>-> callerid: -> method: standard >>>-> dialplan: 0 -> localdialplan: 0 >>>-> cpndialplan: 0 -> nationalprefix: 0 >>>-> internationalprefix: 00 -> presentation: -1 >>>-> screen: -1 -> always_immediate: no >>>-> nodialtone: no -> immediate: no >>>-> senddtmf: yes -> hold_allowed: yes >>>-> early_bconnect: yes -> incoming_early_audio: no >>>-> echocancel: 256 -> echocancelwhenbridged: no >>>-> need_more_infos: no -> jitterbuffer: 0 >>>-> jitterbuffer_upper_threshold: 0 -> callgroup: 1 >>>-> pickupgroup: 1 -> msns: 12345678, 12345677, 12345676 >>>-> ptp: no >>> >>>[PORT 2] >>>-> name: NTports -> allowed_bearers: all >>>-> far_alerting: yes -> rxgain: 0 >>>-> txgain: 0 -> te_choose_channel: no >>>-> pmp_l1_check: yes -> block_on_alarm: yes >>>-> hdlc: no -> context: from-internal >>>-> language: de -> musicclass: default >>>-> callerid: -> method: standard >>>-> dialplan: 0 -> localdialplan: 0 >>>-> cpndialplan: 0 -> nationalprefix: 0 >>>-> internationalprefix: 00 -> presentation: -1 >>>-> screen: -1 -> always_immediate: no >>>-> nodialtone: no -> immediate: no >>>-> senddtmf: yes -> hold_allowed: yes >>>-> early_bconnect: yes -> incoming_early_audio: no >>>-> echocancel: 256 -> echocancelwhenbridged: no >>>-> need_more_infos: no -> jitterbuffer: 0 >>>-> jitterbuffer_upper_threshold: 0 -> callgroup: 1 >>>-> pickupgroup: 1 -> msns: none >>>-> ptp: no >>> >>> >>>OS: Debian GNU/Linux 3.1 (Sarge) >>>Kernel: 2.6.8-3-686 >>>Asterisk: 1.2.11 >>>CPU: Pentium III (Katmai) 450Mhz >>> >>># lspci >>>0000:00:00.0 Host bridge: VIA Technologies, Inc. VT82C693A/694x [Apollo >>>PRO133x] (rev 06) >>>0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT82C598/694x [Apollo >>>MVP3/Pro133x AGP] >>>0000:00:07.0 ISA bridge: VIA Technologies, Inc. VT82C596 ISA [Mobile >>>South] (rev 07) >>>0000:00:07.1 IDE interface: VIA Technologies, Inc. >>>VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06) >>>0000:00:07.3 Host bridge: VIA Technologies, Inc. VT82C596 Power Management >>>0000:00:10.0 Network controller: Cologne Chip Designs GmbH ISDN network >>>controller [HFC-PCI] (rev 02) >>>0000:00:12.0 Network controller: Cologne Chip Designs GmbH ISDN network >>>controller [HFC-PCI] (rev 02) >>>0000:00:13.0 VGA compatible controller: Avance Logic Inc. ALG-2302 >>>0000:00:14.0 Ethernet controller: Realtek Semiconductor Co., Ltd. >>>RTL-8139/8139C/8139C+ (rev 10) >>> >>> >>>Thanx in advance, >>>Carsten. >>> >>> > >_______________________________________________ >Misdn-asterisk mailing list >[email protected] >http://lists.beronet.com/cgi-bin/mailman/listinfo/misdn-asterisk > > > > _______________________________________________ Misdn-asterisk mailing list [email protected] http://lists.beronet.com/cgi-bin/mailman/listinfo/misdn-asterisk
