Re: [Asterisk-Users] TDM400P not detecting hangup and not hanging up

2005-09-09 Thread Soner Tari

Canuck15,

No, I hadn't played with the gains. But I've now done so and no difference
unfortunately. Thanks for the suggestion though.

I have discovered that after Asterisk has answered the call and the remote
caller has hung up, if I lift the receiver on a phone connected to the 
line

(in parallel with Asterisk), Asterisk then DOES instantly hang up.

Would it be reasonable to assume the voltage drop caused by lifting the
receiver causes this? It only happens when I set the BATT_(whatever it 
was)
in wcfxs.c to 8. If I set it to a lower level, Asterisk won't even answer 
at

all and so nothing works.

Also possibly relevant: When I disconnect Asterisk completely from the
equation and just answer the remote caller myself, when the remote caller
hangs up the line does not actually drop: Instead I just get a 
disconnect

(or number unobtainable) tone. Could this be the problem (i.e. there's no
actual voltage drop happening to signal the call has ended)? Or is there
some sort of other change in the line that I wouldn't detect audibly?

Could it be that any inaudible voltage drop might be happening too quickly
for zaptel to detect? What might I change in the source code to see if 
this

is the case?

Does nobody else in the UK use these cards? I'm sure that's not the case. 
So

if you do use them, please stand up and be counted -- did you have to make
any adjustments or did it just work out of the box?

Incidentally, when callprogress=yes, Asterisk goes nuts and keeps 
detecting

strange things happening: Essentially every time the CLI comes through
(polarity reversal) between rings, asterisk picks up and hangs up (though
not physically - the caller hears ringing).


This may or may not be related but have you tried adjusting your RX and TX
gains?  I see both are at the default (0.0) which leads me to believe you
have not.  Search the Asterisk Wiki for the procedure.


Stevanus,

I think the hanguponpolarity switch is relevant to a patch to to Zaptel 
that

may or may not have actually been added to the released version. I'm not
sure. However, thanks for pointing this out -- I've tried it too and 
didn't

get anywhere.


I have similar problems like you.
In the past, I did adjusted my RX and TX gain, but didn't know if it has
been optimal yet.
Fxotune is seemed do not working, perhaps caused of my asterisk's version 
(

I use stable v1.0)..

Just curious, is rx and tx gain really a sole setting option here in order
to make things the way it's meant to be? Or is there others?
FYI, my tdm04b occasionally don't detect call-in as well as hangup signal.

I've searched in the wiki and have activated hanguponpolarity swicth.
But I don't notice any difference at all.

Any help would be greatly appreciated. (I've asked this in another thread,
but got no respon :( )




SUMMARY OF THREAD: hardware=TDM400P 2xFXS, 1xFXO. Location=UK. *ver=1.0.9.
Zaptel 1.0.9.1. Problem: Asterisk does not detect that the remote caller 
has

hung up and carries on as though nothing has happened.


Disconnect Supervision/Hangup Detection has been discussed quite extensively 
on this list. But considering the information you provide and given that you 
tried to play with BATT_THRESH setting, I tend to think that there may be 
other problems. My concern would be the opermode setting of FXO modules.


So I would get a fresh copy of asterisk and zaptel (and would not play with 
BATT_THRESH). I think the default opermode is FCC, so I would change it to 
UK. If it still does not work, I would try hanguponpolarityswitch (perhaps 
your telco provides disconnect supervision). If it still doesn't work, my 
only option would be busydetect.


Hope this helps... 


___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] TDM400P not detecting hangup and not hanging up

2005-09-08 Thread Faris Raouf
Canuck15,

No, I hadn't played with the gains. But I've now done so and no difference
unfortunately. Thanks for the suggestion though.

I have discovered that after Asterisk has answered the call and the remote
caller has hung up, if I lift the receiver on a phone connected to the line
(in parallel with Asterisk), Asterisk then DOES instantly hang up.

Would it be reasonable to assume the voltage drop caused by lifting the
receiver causes this? It only happens when I set the BATT_(whatever it was)
in wcfxs.c to 8. If I set it to a lower level, Asterisk won't even answer at
all and so nothing works.

Also possibly relevant: When I disconnect Asterisk completely from the
equation and just answer the remote caller myself, when the remote caller
hangs up the line does not actually drop: Instead I just get a disconnect
(or number unobtainable) tone. Could this be the problem (i.e. there's no
actual voltage drop happening to signal the call has ended)? Or is there
some sort of other change in the line that I wouldn't detect audibly?

Could it be that any inaudible voltage drop might be happening too quickly
for zaptel to detect? What might I change in the source code to see if this
is the case? 

Does nobody else in the UK use these cards? I'm sure that's not the case. So
if you do use them, please stand up and be counted -- did you have to make
any adjustments or did it just work out of the box?

Incidentally, when callprogress=yes, Asterisk goes nuts and keeps detecting
strange things happening: Essentially every time the CLI comes through
(polarity reversal) between rings, asterisk picks up and hangs up (though
not physically - the caller hears ringing).

This may or may not be related but have you tried adjusting your RX and TX
gains?  I see both are at the default (0.0) which leads me to believe you
have not.  Search the Asterisk Wiki for the procedure.

Stevanus,

I think the hanguponpolarity switch is relevant to a patch to to Zaptel that
may or may not have actually been added to the released version. I'm not
sure. However, thanks for pointing this out -- I've tried it too and didn't
get anywhere.

I have similar problems like you.
In the past, I did adjusted my RX and TX gain, but didn't know if it has
been optimal yet.
Fxotune is seemed do not working, perhaps caused of my asterisk's version (
I use stable v1.0)..

Just curious, is rx and tx gain really a sole setting option here in order
to make things the way it's meant to be? Or is there others?
FYI, my tdm04b occasionally don't detect call-in as well as hangup signal.

I've searched in the wiki and have activated hanguponpolarity swicth. 
But I don't notice any difference at all.

Any help would be greatly appreciated. (I've asked this in another thread,
but got no respon :( )



SUMMARY OF THREAD: hardware=TDM400P 2xFXS, 1xFXO. Location=UK. *ver=1.0.9.
Zaptel 1.0.9.1. Problem: Asterisk does not detect that the remote caller has
hung up and carries on as though nothing has happened.
 




___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] TDM400P not detecting hangup and not hanging up.

2005-09-07 Thread canuck15
This may or may not be related but have you tried adjusting your RX and TX
gains?  I see both are at the default (0.0) which leads me to believe you
have not.  Search the Asterisk Wiki for the procedure.

 

-Original Message-
From: Faris Raouf [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 07, 2005 12:51 PM
To: asterisk-users@lists.digium.com
Subject: [Asterisk-Users] TDM400P not detecting hangup and not hanging up.

Can anyone suggest where I might begin looking for an answer please?

I have just installed a TDM400P (2x FXS and 1x FXO modules installed)

The first problem is that it does not seem to be able to detect if the
remote party has hung up when a call comes through on the FXO. For example,
if someone calls in, and then hangs up at any time after it starts ringing,
Asterisk carries on as though the caller never hung up.

I've tried raising BATT_THRESH to 8 in wcfxs.c and re-compiling zaptel (this
was the only thing that Google came up with to help me, although others do
seems to have had similar problems to mine at various times), but it has
made no difference at all.

The second problem is that Hangup does not hangup. The channel stays open
until I stop asterisk.

Note: When MAKING a call on the FXO, when I terminate the call on my SIP
phone the line does drop correctly. The problem appears to be related to
incoming calls only.

I'm based in the UK. Using RedHat 9 with zaptel-1.0.9.1, asterisk-1.0.9 (and
chan_capi-0.5.4)

Thanks in advance for any ideas.

Faris.

*

Here's my initialisation script:
modprobe zaptel
modprobe wctdm opermode=UK
/sbin/ztcfg -
capiinit
safe_asterisk


zapata.conf
[trunkgroups]
; nothing in here

[channels]
rxwink=300  ; (I tried commenting this out. Make no difference)
usedistinctiveringdetection=no
usecallerid=yes
cidsignalling=v23
cidstart=polarity
hidecallerid=no
callwaiting=no
usecallingpres=no
sendcalleridafter=1
callwaitingcallerid=no
threewaycalling=no
transfer=no
cancallforward=yes
callreturn=no
echocancel=yes
echocancelwhenbridged=no
rxgain=0.0
txgain=0.0
immediate=no
progzone=uk

; module 0 on card is an FXS
signalling=fxo_ks
language=en
context=sip
channel = 1 

; module 1 on card is an FXS
signalling=fxo_ks
language=en
context=sip
channel = 2

; module 2 on card is an FXO
signalling=fxs_ks
language=en
context=faris
channel = 3



zaptel.conf
fxoks=1-2
fxsks=3
loadzone=uk
defaultzone=uk

and in extensions.conf
[faris]
exten = s,1,NoOp(cid=${CALLERID})
exten = s,2,Wait(10)
exten = s,3,Answer
exten = s,4,Wait(1)
exten = s,5,Playback(some-long-message) exten = s,6,Hangup

The long wait(10) is just there to see what happens. Removing it makes no
difference. Basically whenever a call comes in, no matter when the caller
hangs up, Asterisk continues with the call to the end (i.e. plays long
message).

What's more, the Hangup at the end has no effect. The line is not dropped.
The line is not ever dropped in fact.





___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] TDM400P not detecting hangup and not hanging up.

2005-09-07 Thread stevanus

Hi,

I have similar problems like you.
In the past, I did adjusted my RX and TX gain, but didn't know if it has 
been optimal yet.
Fxotune is seemed do not working, perhaps caused of my asterisk's 
version ( I use stable v1.0)..


Just curious, is rx and tx gain really a sole setting option here in 
order to make things the way it's meant to be? Or is there others?

FYI, my tdm04b occasionally don't detect call-in as well as hangup signal.

I've searched in the wiki and have activated hanguponpolarity swicth. 
But I don't notice any difference at all.


Any help would be greatly appreciated. (I've asked this in another 
thread, but got no respon :( )


Best Regards,

Stevanus

canuck15 wrote:


This may or may not be related but have you tried adjusting your RX and TX
gains?  I see both are at the default (0.0) which leads me to believe you
have not.  Search the Asterisk Wiki for the procedure.



-Original Message-
From: Faris Raouf [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 07, 2005 12:51 PM

To: asterisk-users@lists.digium.com
Subject: [Asterisk-Users] TDM400P not detecting hangup and not hanging up.

Can anyone suggest where I might begin looking for an answer please?

I have just installed a TDM400P (2x FXS and 1x FXO modules installed)

The first problem is that it does not seem to be able to detect if the
remote party has hung up when a call comes through on the FXO. For example,
if someone calls in, and then hangs up at any time after it starts ringing,
Asterisk carries on as though the caller never hung up.

I've tried raising BATT_THRESH to 8 in wcfxs.c and re-compiling zaptel (this
was the only thing that Google came up with to help me, although others do
seems to have had similar problems to mine at various times), but it has
made no difference at all.

The second problem is that Hangup does not hangup. The channel stays open
until I stop asterisk.

Note: When MAKING a call on the FXO, when I terminate the call on my SIP
phone the line does drop correctly. The problem appears to be related to
incoming calls only.

I'm based in the UK. Using RedHat 9 with zaptel-1.0.9.1, asterisk-1.0.9 (and
chan_capi-0.5.4)

Thanks in advance for any ideas.

Faris.

*

Here's my initialisation script:
modprobe zaptel
modprobe wctdm opermode=UK
/sbin/ztcfg -
capiinit
safe_asterisk


zapata.conf
[trunkgroups]
; nothing in here

[channels]
rxwink=300  ; (I tried commenting this out. Make no difference)
usedistinctiveringdetection=no
usecallerid=yes
cidsignalling=v23
cidstart=polarity
hidecallerid=no
callwaiting=no
usecallingpres=no
sendcalleridafter=1
callwaitingcallerid=no
threewaycalling=no
transfer=no
cancallforward=yes
callreturn=no
echocancel=yes
echocancelwhenbridged=no
rxgain=0.0
txgain=0.0
immediate=no
progzone=uk

; module 0 on card is an FXS
signalling=fxo_ks
language=en
context=sip
channel = 1 


; module 1 on card is an FXS
signalling=fxo_ks
language=en
context=sip
channel = 2

; module 2 on card is an FXO
signalling=fxs_ks
language=en
context=faris
channel = 3



zaptel.conf
fxoks=1-2
fxsks=3
loadzone=uk
defaultzone=uk

and in extensions.conf
[faris]
exten = s,1,NoOp(cid=${CALLERID})
exten = s,2,Wait(10)
exten = s,3,Answer
exten = s,4,Wait(1)
exten = s,5,Playback(some-long-message) exten = s,6,Hangup

The long wait(10) is just there to see what happens. Removing it makes no
difference. Basically whenever a call comes in, no matter when the caller
hangs up, Asterisk continues with the call to the end (i.e. plays long
message).

What's more, the Hangup at the end has no effect. The line is not dropped.
The line is not ever dropped in fact.





___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

 



___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users