Re: [Asterisk-Users] TDM400P... ignoring hanguponpolarityswitch

2005-06-09 Thread Julian J. M.
I've made a backport of this patch for asterisk stable. You can get it
here: http://www.maxosystem.net/asterisk . The page is in Spanish, but
you just need to download and apply the patch to chan_zap.c. It also
works with bristuff patch applied.

Julian J. M.

On 6/9/05, Neil and Fiona [EMAIL PROTECTED] wrote:
 Is there a list of options that are valid for stable? I downgraded from
 Head to stable when I had IAX trunking problems (one way audio) with a
 VSP. So I am using my conf files from Head, which could be the problem.
 
 I've got a copy of sample config files from 1.07 (Or I think they are, I
 didn't label it well when I archived it). It seems to have the option in
 it.
 
 There has been a patch in Head for the IAX2 trunking problem, so I think
 I could go back to head.
___
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... ignoring hanguponpolarityswitch

2005-06-09 Thread Neil and Fiona
Thanks Julian,

I tried installing cvs-head today but it crashed on compile and the
machine rebooted when I did make clean.

I'll try the patch and see how I go.


On Thu, 2005-06-09 at 08:55 +0100, Julian J. M. wrote:
 I've made a backport of this patch for asterisk stable. You can get it
 here: http://www.maxosystem.net/asterisk . The page is in Spanish, but
 you just need to download and apply the patch to chan_zap.c. It also
 works with bristuff patch applied.
 
 Julian J. M.
 
 On 6/9/05, Neil and Fiona [EMAIL PROTECTED] wrote:
  Is there a list of options that are valid for stable? I downgraded from
  Head to stable when I had IAX trunking problems (one way audio) with a
  VSP. So I am using my conf files from Head, which could be the problem.
  
  I've got a copy of sample config files from 1.07 (Or I think they are, I
  didn't label it well when I archived it). It seems to have the option in
  it.
  
  There has been a patch in Head for the IAX2 trunking problem, so I think
  I could go back to head.

___
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... ignoring hanguponpolarityswitch

2005-06-09 Thread Neil and Fiona
Thanks again Julian.

Quick update. Worked great with 1.07 (Which is good since cvs head gave
me hell today)


On Thu, 2005-06-09 at 08:55 +0100, Julian J. M. wrote:
 I've made a backport of this patch for asterisk stable. You can get it
 here: http://www.maxosystem.net/asterisk . The page is in Spanish, but
 you just need to download and apply the patch to chan_zap.c. It also
 works with bristuff patch applied.
 
 Julian J. M.
 
 On 6/9/05, Neil and Fiona [EMAIL PROTECTED] wrote:
  Is there a list of options that are valid for stable? I downgraded from
  Head to stable when I had IAX trunking problems (one way audio) with a
  VSP. So I am using my conf files from Head, which could be the problem.
  
  I've got a copy of sample config files from 1.07 (Or I think they are, I
  didn't label it well when I archived it). It seems to have the option in
  it.
  
  There has been a patch in Head for the IAX2 trunking problem, so I think
  I could go back to head.

___
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... ignoring hanguponpolarityswitch

2005-06-08 Thread Andrew Kohlsmith
On Wednesday 08 June 2005 10:57, Neil and Fiona wrote:
 I've set hanguponpolarityswitch=yes in zapata.conf

Do you also have the signaling on the channel set to kewlstart?  I don't 
believe polarity detection does anything without this signaling type.

 When I start Asterisk I get ignoring hanguponpolarityswitch
 in /var/log/asterisk/messages

When you start, or when you reload asterisk?

 Any ideas?

Well, you can start by telling us the version of asterisk you're running, and 
the date of the CVS pull if it's from CVS.  You could also post your 
zapata.conf and zaptel.conf files. 

You really didn't leave us a lot to go on.

-A.
___
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... ignoring hanguponpolarityswitch

2005-06-08 Thread Neil and Fiona
On Wed, 2005-06-08 at 11:34 -0400, Andrew Kohlsmith wrote:
 On Wednesday 08 June 2005 10:57, Neil and Fiona wrote:
  I've set hanguponpolarityswitch=yes in zapata.conf
 
 Do you also have the signaling on the channel set to kewlstart?  I don't 
 believe polarity detection does anything without this signaling type.
Yes. singnalling=fxs_ks

4 fxo modlues load in driver successfully.


 
  When I start Asterisk I get ignoring hanguponpolarityswitch
  in /var/log/asterisk/messages
 
 When you start, or when you reload asterisk?
When starting asterisk

/var/log/messages seems to be indicating that the wctdm driver thinks
that the polarity of the line is reversed on start. (ie incorrect
polarity)

Polarity reversed (0 - 1)

I'll check it when I can get physical access. Does anyone know if hangup
detection is disabled if the driver thinks the line polarity is
incorrect?


 
  Any ideas?
 
 Well, you can start by telling us the version of asterisk you're running, and 
 the date of the CVS pull if it's from CVS.  You could also post your 
 zapata.conf and zaptel.conf files. 


Sorry... 

Ver is Asterisk stable 1.07

zapata.conf

;
; Zapata telephony interface
;
; Configuration file

[trunkgroups]
;
; Trunk groups are used for NFAS or GR-303 connections.
;
; Group: Defines a trunk group.  
;group = trunkgroup,dchannel[,backup1...]
;
;trunkgroup  is the numerical trunk group to create
;dchannelis the zap channel which will have the 
;d-channel for the trunk.
;backup1 is an optional list of backup d-channels.
;
;trunkgroup = 1,24,48
;
; Spanmap: Associates a span with a trunk group
;spanmap = zapspan,trunkgroup[,logicalspan]
;
;zapspan is the zap span number to associate
;trunkgroup  is the trunkgroup (specified above) for the mapping
;logicalspan is the logical span number within the trunk group
to use.
;if unspecified, no logical span number is used.
;
;spanmap = 1,1,1
;spanmap = 2,1,2
;spanmap = 3,1,3
;spanmap = 4,1,4

[channels]
;
; Default language
;
;language=en
;
; Default context
;
context=default
;
; Switchtype:  Only used for PRI.
;
; national:   National ISDN 2 (default)
; dms100: Nortel DMS100
; 4ess:   ATT 4ESS
; 5ess:   Lucent 5ESS
; euroisdn:   EuroISDN
; ni1:Old National ISDN 1
;
switchtype=national
;
; Some switches (ATT especially) require network specific facility IE
; supported values are currently 'none', 'sdn', 'megacom', 'accunet'
;
;nsf=none
;
; PRI Dialplan:  Only RARELY used for PRI.
;
; unknown:Unknown
; private:Private ISDN
; local:  Local ISDN
; national:   National ISDN
; international:  International ISDN
;
;pridialplan=national
;
; PRI Local Dialplan:  Only RARELY used for PRI (sets the calling
number's numbering plan)
;
; unknown:Unknown
; private:Private ISDN
; local:  Local ISDN
; national:   National ISDN
; international:  International ISDN
;
;prilocaldialplan=national
;
; PRI callerid prefixes based on the given TON/NPI (dialplan)
; This is especially needed for euroisdn E1-PRIs
; 
; sample 1 for Germany 
;internationalprefix = 00
;nationalprefix = 0
;localprefix = 0711
;privateprefix = 07115678
;unknownprefix = 
;
; sample 2 for Germany 
;internationalprefix = +
;nationalprefix = +49
;localprefix = +49711
;privateprefix = +497115678
;unknownprefix = 
;
; PRI resetinterval: sets the time in seconds between restart of unused
channels, defaults to 3600
; minimum 60 seconds
; some PBXs don't like channel restarts. so set the interval to a very
long interval e.g. 1
;
;resetinterval = 3600 
;
; Overlap dialing mode (sending overlap digits)
;
;overlapdial=yes
;
; PRI Out of band indications.
; Enable this to report Busy and Congestion on a PRI using out-of-band
; notification. Inband indication, as used by Asterisk doesn't seem to
work
; with all telcos.
; 
; outofband:  Signal Busy/Congestion out of band with
RELEASE/DISCONNECT
; inband: Signal Busy/Congestion using in-band tones
;
; priindication = outofband
;
; ISDN Timers
; All of the ISDN timers and counters that are used are configurable.
Specify 
; the timer name, and its value (in ms for timers)
;
; pritimer = t200,1000
; pritimer = t313,4000
;
;
; Signalling method (default is fxs).  Valid values:
; em:  E  M
; em_w:E  M Wink
; featd:   Feature Group D (The fake, Adtran style, DTMF)
; featdmf: Feature Group D (The real thing, MF (domestic, US))
; featb:   Feature Group B (MF (domestic, US))
; fxs_ls:  FXS (Loop Start)
; fxs_gs:  FXS (Ground Start)
; fxs_ks:  FXS (Kewl Start)
; fxo_ls:  FXO (Loop Start)
; fxo_gs:  FXO (Ground Start)
; fxo_ks:  FXO (Kewl Start)
; pri_cpe: PRI signalling, CPE side
; pri_net: PRI signalling, Network side
; gr303fxoks_net: GR-303 Signalling, FXO Loopstart, Network side
; gr303fxsks_cpe: GR-303 Signalling, FXS Loopstart, CPE side
; sf: SF (Inband Tone) 

Re: [Asterisk-Users] TDM400P... ignoring hanguponpolarityswitch

2005-06-08 Thread Andrew Kohlsmith
On Wednesday 08 June 2005 12:00, Neil and Fiona wrote:
 /var/log/messages seems to be indicating that the wctdm driver thinks
 that the polarity of the line is reversed on start. (ie incorrect
 polarity)

 Polarity reversed (0 - 1)

Reverse the tip and ring on the line then.  :-)

 I'll check it when I can get physical access. Does anyone know if hangup
 detection is disabled if the driver thinks the line polarity is
 incorrect?

Could be, it's trivial to flip the tip and ring by accident.

 Sorry...
 Ver is Asterisk stable 1.07

Does stable have this feature?  I know HEAD does.  Do you see any mention of 
that configuration parameter in asterisk/channels/chan_zap.c?

 switchtype=national

Are you on a PRI?  This configuration option is meaningless if not.

 rxgain=11
 txgain=1

Have you actually tuned the system to get these parameters?  I'd use

http://lists.digium.com/pipermail/asterisk-users/2004-November/071301.html

to set these values.

 callerid=555

I'd probably use asreceived but this isn't causing any trouble.

 busydetect=yes

TURN THIS OFF!! unless you have a real reason to use it, do NOT use this... 
it's the #1 source of false hangups and other general weirdness.

It looks more or less fine, but yes, if it's saying it thinks the polarity's 
reversed from the get-go, I'd try to swap the tip and ring and see if that 
fixes things right.

-A.
___
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... ignoring hanguponpolarityswitch

2005-06-08 Thread Julian J. M.
I've used that feature in asterisk HEAD, and it has worked for me (i
needed to apply a little patch for it to work for incoming calls
also), but i also used answeronpolarityswitch=yes. Maybe it's a logic
bug in the code. Try with that option and tell us the results ;)

BTW, it doesn't matter is the module detects the idle polarity as 1 or
-1... The code only checks for the polarity switch event (-11 or
1-1)

Julian.

On 6/8/05, Neil and Fiona [EMAIL PROTECTED] wrote:
 I've just had polarity reversal provisioned by our telco to test hangup
 detect with a TDM400P
 
 I've set hanguponpolarityswitch=yes in zapata.conf
 
 When I start Asterisk I get ignoring hanguponpolarityswitch
 in /var/log/asterisk/messages
 
 I assume that the option is either not valid or conflicts with another
 setting somewhere.
 
 Any ideas?
___
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... ignoring hanguponpolarityswitch

2005-06-08 Thread Rich Adamson
 I've just had polarity reversal provisioned by our telco to test hangup
 detect with a TDM400P
 
 I've set hanguponpolarityswitch=yes in zapata.conf
 
 When I start Asterisk I get ignoring hanguponpolarityswitch
 in /var/log/asterisk/messages
 
 I assume that the option is either not valid or conflicts with another
 setting somewhere.
 
 Any ideas?

That parameter is listed as valid for cvs-head; don't know about Stable.

Which are you running?


___
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... ignoring hanguponpolarityswitch

2005-06-08 Thread Neil and Fiona
On Wed, 2005-06-08 at 12:49 -0400, Andrew Kohlsmith wrote:
 On Wednesday 08 June 2005 12:00, Neil and Fiona wrote:
  /var/log/messages seems to be indicating that the wctdm driver thinks
  that the polarity of the line is reversed on start. (ie incorrect
  polarity)
 
  Polarity reversed (0 - 1)
 
 Reverse the tip and ring on the line then.  :-)
Yep. Will try it. Wish I could do it by ssh :)


 
  I'll check it when I can get physical access. Does anyone know if hangup
  detection is disabled if the driver thinks the line polarity is
  incorrect?
 
 Could be, it's trivial to flip the tip and ring by accident.
 
  Sorry...
  Ver is Asterisk stable 1.07
 
 Does stable have this feature?  I know HEAD does.  Do you see any mention of 
 that configuration parameter in asterisk/channels/chan_zap.c?
I think so. I found the bugtrack submission from the person who wrote
the code for it. I think it was a couple of years ago.

 
  switchtype=national
 
 Are you on a PRI?  This configuration option is meaningless if not.
No. I should comment that out. I assumed that it wouldn't be doing
anything. It actually comes up as ignored in /var/log/asterisk/messages
too.


 
  rxgain=11
  txgain=1
 
 Have you actually tuned the system to get these parameters?  

Yes. Some time ago.

 
  busydetect=yes
 
 TURN THIS OFF!! unless you have a real reason to use it, do NOT use this... 
 it's the #1 source of false hangups and other general weirdness.

It was turned on in absence of polarity reversal. It's actually been
okay. I tuned the busy_min and busy_max values for tone and pause
duration in the source code. Default was 75ms and 1100ms I think.
Australian tone is 375ms, so I set it to 300ms and 450ms.

Thanks for looking through it.

___
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... ignoring hanguponpolarityswitch

2005-06-08 Thread Neil and Fiona
On Wed, 2005-06-08 at 14:58 -0600, Rich Adamson wrote:
  I've just had polarity reversal provisioned by our telco to test hangup
  detect with a TDM400P
  
  I've set hanguponpolarityswitch=yes in zapata.conf
  
  When I start Asterisk I get ignoring hanguponpolarityswitch
  in /var/log/asterisk/messages
  
  I assume that the option is either not valid or conflicts with another
  setting somewhere.
  
  Any ideas?
 
 That parameter is listed as valid for cvs-head; don't know about Stable.
 
 Which are you running?

1.07 Stable. I went back and checked and the code isn't as old as I
thought.

Activity on it from Nov last year to Feb this year.

http://bugs.digium.com/bug_view_page.php?bug_id=0002847

Is there a list of options that are valid for stable? I downgraded from
Head to stable when I had IAX trunking problems (one way audio) with a
VSP. So I am using my conf files from Head, which could be the problem.

I've got a copy of sample config files from 1.07 (Or I think they are, I
didn't label it well when I archived it). It seems to have the option in
it.

There has been a patch in Head for the IAX2 trunking problem, so I think
I could go back to head.

___
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