Hangup behavior different between the received incoming and


#1

Hello.

Hangup behavior different between the received incoming and outgoing calls.

I do not know if this is a configuration error or a bug in dahdi driver

If a incomming call to asterisk is answerd adn then only th asterisk juser hangs up the line will stay up until the external party do hangoup.

If an outgoing call from asterisk is answerd and then only the asterisk user hangs up the line is auto disconnected.

The switch is placed in sweden. Reverse polarity for answer and hangup.

Asterisk version is 1.6.2.18
Dahdi version is. 2.4.1.2

/Fjonson

part of logs.

dahdi: Telephony Interface Registered on major 196
dahdi: Version: 2.4.1.2
ACPI: PCI Interrupt 0000:05:00.0[A] -> GSI 21 (level, low) -> IRQ 82
wctdm24xxp 0000:05:00.0: VoiceDAA System: 05
wctdm24xxp 0000:05:00.0: voicedaa: card 1 new timeslot: 0
wctdm24xxp 0000:05:00.0: ISO-Cap is now up, line side: 03 rev 06
wctdm24xxp 0000:05:00.0: setting FXO tx gain for card=0 to 0
wctdm24xxp 0000:05:00.0: setting FXO rx gain for card=0 to 0
wctdm24xxp 0000:05:00.0: DEBUG fxotxgain:0.0 fxorxgain:0.0
wctdm24xxp 0000:05:00.0: Port 1: Installed – AUTO FXO (SWEDEN mode)
wctdm24xxp 0000:05:00.0: Trying port 2 with alternate chip select
wctdm24xxp 0000:05:00.0: Port 2: Not installed
wctdm24xxp 0000:05:00.0: ProSLIC on module 2, product 3, version 15
wctdm24xxp 0000:05:00.0: Port 3: Not installed
eth0: no IPv6 routers present
wctdm24xxp 0000:05:00.0: Port 4: Not installed
wctdm24xxp 0000:05:00.0: fixup_analog: x=0, y=0 modtype=2, s->chans[0]=c2170000
wctdm24xxp 0000:05:00.0: fixup_analog: x=1, y=1 modtype=0, s->chans[1]=f77d9000
wctdm24xxp 0000:05:00.0: fixup_analog: x=2, y=2 modtype=0, s->chans[2]=f715c000
wctdm24xxp 0000:05:00.0: fixup_analog: x=3, y=3 modtype=0, s->chans[3]=f77e9000
wctdm24xxp 0000:05:00.0: voicedaa: card 1 new timeslot: 0
wctdm24xxp 0000:05:00.0: Found a Wildcard TDM: Wildcard TDM410P (0 BRI spans, 1 analog channel)
wctdm24xxp 0000:05:00.0: 4294729781 Polarity reversed (0 -> 1)
wctdm24xxp 0000:05:00.0: BATTERY on 1/1 (+)!

Incomming call
Sep 30 20:31:55 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: -48 Debounce 0

Sep 30 20:31:58 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: 51 Debounce 0
Sep 30 20:31:58 localhost kernel: wctdm24xxp 0000:05:00.0: 554117001 Polarity reversed (-1 -> 1)
Sep 30 20:31:58 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: 50 Debounce 0
Sep 30 20:32:00 localhost kernel: wctdm24xxp 0000:05:00.0: 554119269 Polarity reversed (1 -> -1)
Sep 30 20:32:00 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: -49 Debounce 0
Sep 30 20:32:00 localhost kernel: wctdm24xxp 0000:05:00.0: FW RING on 1/1!
Sep 30 20:32:00 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: -128 Debounce 0
Sep 30 20:32:00 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: 18 Debounce 0
Sep 30 20:32:00 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: -90 Debounce 0
Sep 30 20:32:00 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: -48 Debounce 0
Sep 30 20:32:00 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: -18 Debounce 0
Sep 30 20:32:00 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: -128 Debounce 0
Sep 30 20:32:01 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: 46 Debounce 0
Sep 30 20:32:01 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: -128 Debounce 0
Sep 30 20:32:01 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: 59 Debounce 0
Sep 30 20:32:01 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: -128 Debounce 0
Sep 30 20:32:01 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: -51 Debounce 0
Sep 30 20:32:01 localhost kernel: wctdm24xxp 0000:05:00.0: FW NO RING on 1/1!
Sep 30 20:32:01 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: -48 Debounce 0

Sep 30 20:32:06 localhost kernel: wctdm24xxp 0000:05:00.0: FW RING on 1/1!
Sep 30 20:32:06 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: -108 Debounce 0
Sep 30 20:32:06 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: 34 Debounce 0
Sep 30 20:32:06 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: -128 Debounce 0
Sep 30 20:32:06 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: 60 Debounce 0
Sep 30 20:32:06 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: -128 Debounce 0
Sep 30 20:32:07 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: 40 Debounce 0
Sep 30 20:32:07 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: -124 Debounce 0
Sep 30 20:32:07 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: -20 Debounce 0
Sep 30 20:32:07 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: -57 Debounce 0
Sep 30 20:32:07 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: -44 Debounce 0
Sep 30 20:32:07 localhost kernel: wctdm24xxp 0000:05:00.0: FW NO RING on 1/1!
Sep 30 20:32:07 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: -49 Debounce 0

Sep 30 20:32:10 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: 10 Debounce 0
Sep 30 20:32:10 localhost kernel: wctdm24xxp 0000:05:00.0: 554129153 Polarity reversed (-1 -> 1)
Sep 30 20:32:10 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: 7 Debounce 0

Asterisk user hangup
Sep 30 20:32:20 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: 50 Debounce 0

Sep 30 20:32:27 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: 30 Debounce 0
Caller manual hangup
Sep 30 20:32:27 localhost kernel: wctdm24xxp 0000:05:00.0: 554146665 Polarity reversed (1 -> -1)
Sep 30 20:32:27 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: -49 Debounce 0

Outgoing call

Sep 30 20:32:46 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: -49 Debounce 0
*********************************** Dial Out **********************************************
Sep 30 20:32:46 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: -4 Debounce 0

Sep 30 20:33:00 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: -6 Debounce 0
****************************** Exteral user answer *************************************
Sep 30 20:33:00 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: 7 Debounce 0
Sep 30 20:33:00 localhost kernel: wctdm24xxp 0000:05:00.0: 554179249 Polarity reversed (-1 -> 1)
Sep 30 20:33:00 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: 7 Debounce 0

Sep 30 20:33:06 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: 7 Debounce 0
Sep 30 20:33:06 localhost last message repeated 3 times
***************************** Asterisk user hangup ****************************************
***************************** External user auto disconnected******************************
Sep 30 20:33:07 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: 48 Debounce 0
Sep 30 20:33:07 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: 50 Debounce 0
Sep 30 20:33:07 localhost last message repeated 2 times
Sep 30 20:33:07 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: 49 Debounce 0
Sep 30 20:33:07 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: 50 Debounce 0
Sep 30 20:33:07 localhost last message repeated 3 times
Sep 30 20:33:07 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: 49 Debounce 0
Sep 30 20:33:08 localhost last message repeated 2 times
Sep 30 20:33:08 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: 50 Debounce 0
Sep 30 20:33:08 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: 49 Debounce 0
Sep 30 20:33:08 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: 50 Debounce 0
Sep 30 20:33:08 localhost last message repeated 4 times
Sep 30 20:33:08 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: 49 Debounce 0
Sep 30 20:33:09 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: 49 Debounce 0
Sep 30 20:33:09 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: -48 Debounce 0
Sep 30 20:33:09 localhost kernel: wctdm24xxp 0000:05:00.0: 554188093 Polarity reversed (1 -> -1)
Sep 30 20:33:09 localhost kernel: wctdm24xxp 0000:05:00.0: Port 1: Voltage: -48 Debounce 0


#2

This is intended network behaviour for the UK phone network at least for landline calls on simple lines. I imagine it is intended behaviour in other countries as well.

Normally you need ISDN type access to to be able to force a release and achieve a called party clear. For simple lines, only the calling party can release the call. (It is also possible that earth start lines, intended for PABX use, will also have called party clearing.)

The reason it is done this way is so that the called party can put down one phone and then pick up another phone on the same line, without losing the call.


#3

Is there any posibillity to change the behaviour. We don’t wont asterisk to keep the line open, hangup directly is prefered.

I did try to change to ground start, and the dahdi driver did not load.

Running dahdi_cfg: DAHDI_CHANCONFIG failed on channel 1: Invalid argument (22)
Selected signaling not supported
Possible causes:
FXS signaling is being used on a FXS interface (use a FXO signaling variant)
RBS signaling is being used on a E1 CCS span
Signaling is being assigned to channel 16 of an E1 CAS span


#4

You need to talk to your PTT. Even ground start is primarily a change at their end, although it does require a suitable line card at your end.

You need to ask them if they are able to enable called party clearing on your lines. If not, you will probably have to switch to ISDN digital presentation.

NB I don’t have the experience to guarantee that even that will help.