Re: [asterisk-users] Problem installing FXS module in old digium 4 channel tdm card

2011-02-23 Thread C F
This worked.
Thank you all for your help.

On Wed, Feb 23, 2011 at 1:42 PM, Greg Woods  wrote:
> On Wed, 2011-02-23 at 09:56 -0500, C F wrote:
>> This is the closest thing I was able to find in my wctdm.c file:
>>         if ((blah & 0xf) == 2) {
>>                 /* ProSLIC 3215, not a 3210 */
>>                 wc->flags[card] |= FLAG_3215;
>>         }
>> If I take out the 2 first lines I get errors when compling.
>
>
> Maybe you need to remove the closing brace too?
>
> --Greg
>
>
>
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] Problem installing FXS module in old digium 4 channel tdm card

2011-02-23 Thread Greg Woods
On Wed, 2011-02-23 at 09:56 -0500, C F wrote:
> This is the closest thing I was able to find in my wctdm.c file:
> if ((blah & 0xf) == 2) {
> /* ProSLIC 3215, not a 3210 */
> wc->flags[card] |= FLAG_3215;
> }
> If I take out the 2 first lines I get errors when compling.


Maybe you need to remove the closing brace too?

--Greg




--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] Problem installing FXS module in old digium 4 channel tdm card

2011-02-23 Thread C F
This is the closest thing I was able to find in my wctdm.c file:
if ((blah & 0xf) == 2) {
/* ProSLIC 3215, not a 3210 */
wc->flags[card] |= FLAG_3215;
}
If I take out the 2 first lines I get errors when compling.


On Tue, Feb 22, 2011 at 11:43 PM, Shaun Ruffell  wrote:
> On Tue, Feb 22, 2011 at 11:00:22PM -0500, C F wrote:
>> On Mon, Feb 21, 2011 at 11:23 PM, Shaun Ruffell  wrote:
>> > On 2/21/11 4:46 PM, C F wrote:
>> >> I just installed an FXS module onto a 4 channel tdm thats about 5
>> >> years old and it wont work. Running dmesg I can see the following
>> >> error:
>> >>
>
> [snip]
>
>> >>  ! Init Indirect Registers UNSUCCESSFULLY.
>> >> Indirect Registers failed verification.
>> >> Module 0: FAILED FXS (FCC)
>> >> Module 1: Installed -- AUTO FXO (FCC mode)
>> >> Module 2: Installed -- AUTO FXO (FCC mode)
>> >> Module 3: Installed -- AUTO FXO (FCC mode)
>> >> Found a Wildcard TDM: Wildcard TDM400P REV E/F (3 modules)
>> >>
>> >> Does this have to do with the fact that the module is way newer than the
>> >> card?
>> >>
>> >
>> > Not having much direct experience with the wctdm.c driver, that would be my
>> > guess. You might be able to edit the wctdm_proslic_insane() function to
>> > force the FLAG_3215 on for the card and see if that gives you a different
>> > result.
>> >
>>
>> How/Where would I do that?
>>
>
> Around line 1297 of drivers/dahdi/wctdm.c you could change:
>
>  if (wctdm_getreg(wc, card, 1) & 0x80)
>                /* ProSLIC 3215, not a 3210 */
>                wc->flags[card] |= FLAG_3215;
>
>  to
>
>  wc->flags[card] |= FLAG_3215;
>
> and just skip the read of register 1. I don't know if this will work in your
> case, but it's something to try.
>
> --
> Shaun Ruffell
> Digium, Inc. | Linux Kernel Developer
> 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
> Check us out at: www.digium.com & www.asterisk.org
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] Problem installing FXS module in old digium 4 channel tdm card

2011-02-22 Thread Shaun Ruffell
On Tue, Feb 22, 2011 at 11:00:22PM -0500, C F wrote:
> On Mon, Feb 21, 2011 at 11:23 PM, Shaun Ruffell  wrote:
> > On 2/21/11 4:46 PM, C F wrote:
> >> I just installed an FXS module onto a 4 channel tdm thats about 5
> >> years old and it wont work. Running dmesg I can see the following
> >> error:
> >>

[snip]

> >>  ! Init Indirect Registers UNSUCCESSFULLY.
> >> Indirect Registers failed verification.
> >> Module 0: FAILED FXS (FCC)
> >> Module 1: Installed -- AUTO FXO (FCC mode)
> >> Module 2: Installed -- AUTO FXO (FCC mode)
> >> Module 3: Installed -- AUTO FXO (FCC mode)
> >> Found a Wildcard TDM: Wildcard TDM400P REV E/F (3 modules)
> >>
> >> Does this have to do with the fact that the module is way newer than the
> >> card?
> >>
> >
> > Not having much direct experience with the wctdm.c driver, that would be my
> > guess. You might be able to edit the wctdm_proslic_insane() function to
> > force the FLAG_3215 on for the card and see if that gives you a different
> > result.
> >
>
> How/Where would I do that?
> 

Around line 1297 of drivers/dahdi/wctdm.c you could change:

 if (wctdm_getreg(wc, card, 1) & 0x80)
/* ProSLIC 3215, not a 3210 */
wc->flags[card] |= FLAG_3215;

 to

 wc->flags[card] |= FLAG_3215;

and just skip the read of register 1. I don't know if this will work in your
case, but it's something to try.

-- 
Shaun Ruffell
Digium, Inc. | Linux Kernel Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: www.digium.com & www.asterisk.org

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] Problem installing FXS module in old digium 4 channel tdm card

2011-02-22 Thread C F
How/Where would I do that?

TIA
CF

On Mon, Feb 21, 2011 at 11:23 PM, Shaun Ruffell  wrote:
> On 2/21/11 4:46 PM, C F wrote:
>>
>> I just installed an FXS module onto a 4 channel tdm thats about 5
>> years old and it wont work. Running dmesg I can see the following
>> error:
>>
>> Zapata Telephony Interface Registered on major 196
>> Freshmaker version: 71
>> Freshmaker passed register test
>> !!! LOOP_CLOSE_TRES  iREG 1C = 1  should be 1000
>> !!! RING_TRIP_TRES  iREG 1D = 8000  should be 3600
>> !!! COMMON_MIN_TRES  iREG 1E = 0  should be 1000
>> !!! COMMON_MAX_TRES  iREG 1F = 0  should be 200
>> !!! PWR_ALARM_Q1Q2  iREG 20 = 1480  should be 7C0
>> !!! PWR_ALARM_Q3Q4  iREG 21 = 37C0  should be 2600
>> !!! PWR_ALARM_Q5Q6  iREG 22 = 3D70  should be 1B80
>> !!! LOOP_CLOSURE_FILTER  iREG 23 = 3970  should be 8000
>> !!! RING_TRIP_FILTER  iREG 24 = 78E0  should be 320
>> !!! TERM_LP_POLE_Q1Q2  iREG 25 = 8B60  should be 8C
>> !!! TERM_LP_POLE_Q3Q4  iREG 26 = 6A40  should be 100
>> !!! TERM_LP_POLE_Q5Q6  iREG 27 = 8070  should be 10
>> !!! CM_BIAS_RINGING  iREG 28 =   should be C00
>> !!! DCDC_MIN_V  iREG 29 =   should be C00
>> !!! DCDC_XTRA  iREG 2A =   should be 1000
>> !!! LOOP_CLOSE_TRES_LOW  iREG 2B =   should be 1000
>>  ! Init Indirect Registers UNSUCCESSFULLY.
>> Indirect Registers failed verification.
>> !!! LOOP_CLOSE_TRES  iREG 1C = 1  should be 1000
>> !!! RING_TRIP_TRES  iREG 1D = 8000  should be 3600
>> !!! COMMON_MIN_TRES  iREG 1E = 0  should be 1000
>> !!! COMMON_MAX_TRES  iREG 1F = 0  should be 200
>> !!! PWR_ALARM_Q1Q2  iREG 20 = 1480  should be 7C0
>> !!! PWR_ALARM_Q3Q4  iREG 21 = 37C0  should be 2600
>> !!! PWR_ALARM_Q5Q6  iREG 22 = 3D70  should be 1B80
>> !!! LOOP_CLOSURE_FILTER  iREG 23 = 3970  should be 8000
>> !!! RING_TRIP_FILTER  iREG 24 = 78E0  should be 320
>> !!! TERM_LP_POLE_Q1Q2  iREG 25 = 8B60  should be 8C
>> !!! TERM_LP_POLE_Q3Q4  iREG 26 = 6A40  should be 100
>> !!! TERM_LP_POLE_Q5Q6  iREG 27 = 8070  should be 10
>> !!! CM_BIAS_RINGING  iREG 28 =   should be C00
>> !!! DCDC_MIN_V  iREG 29 =   should be C00
>> !!! DCDC_XTRA  iREG 2A =   should be 1000
>> !!! LOOP_CLOSE_TRES_LOW  iREG 2B =   should be 1000
>>  ! Init Indirect Registers UNSUCCESSFULLY.
>> Indirect Registers failed verification.
>> Module 0: FAILED FXS (FCC)
>> Module 1: Installed -- AUTO FXO (FCC mode)
>> Module 2: Installed -- AUTO FXO (FCC mode)
>> Module 3: Installed -- AUTO FXO (FCC mode)
>> Found a Wildcard TDM: Wildcard TDM400P REV E/F (3 modules)
>>
>> Does this have to do with the fact that the module is way newer than the
>> card?
>>
>
> Not having much direct experience with the wctdm.c driver, that would be my
> guess. You might be able to edit the wctdm_proslic_insane() function to
> force the FLAG_3215 on for the card and see if that gives you a different
> result.
>
> --
> Shaun Ruffell
> Digium, Inc. | Linux Kernel Developer
> 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
> Check us out at: www.digium.com & www.asterisk.org
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>              http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>  http://lists.digium.com/mailman/listinfo/asterisk-users
>

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] Problem installing FXS module in old digium 4 channel tdm card

2011-02-21 Thread Shaun Ruffell

On 2/21/11 4:46 PM, C F wrote:

I just installed an FXS module onto a 4 channel tdm thats about 5
years old and it wont work. Running dmesg I can see the following
error:

Zapata Telephony Interface Registered on major 196
Freshmaker version: 71
Freshmaker passed register test
!!! LOOP_CLOSE_TRES  iREG 1C = 1  should be 1000
!!! RING_TRIP_TRES  iREG 1D = 8000  should be 3600
!!! COMMON_MIN_TRES  iREG 1E = 0  should be 1000
!!! COMMON_MAX_TRES  iREG 1F = 0  should be 200
!!! PWR_ALARM_Q1Q2  iREG 20 = 1480  should be 7C0
!!! PWR_ALARM_Q3Q4  iREG 21 = 37C0  should be 2600
!!! PWR_ALARM_Q5Q6  iREG 22 = 3D70  should be 1B80
!!! LOOP_CLOSURE_FILTER  iREG 23 = 3970  should be 8000
!!! RING_TRIP_FILTER  iREG 24 = 78E0  should be 320
!!! TERM_LP_POLE_Q1Q2  iREG 25 = 8B60  should be 8C
!!! TERM_LP_POLE_Q3Q4  iREG 26 = 6A40  should be 100
!!! TERM_LP_POLE_Q5Q6  iREG 27 = 8070  should be 10
!!! CM_BIAS_RINGING  iREG 28 =   should be C00
!!! DCDC_MIN_V  iREG 29 =   should be C00
!!! DCDC_XTRA  iREG 2A =   should be 1000
!!! LOOP_CLOSE_TRES_LOW  iREG 2B =   should be 1000
  ! Init Indirect Registers UNSUCCESSFULLY.
Indirect Registers failed verification.
!!! LOOP_CLOSE_TRES  iREG 1C = 1  should be 1000
!!! RING_TRIP_TRES  iREG 1D = 8000  should be 3600
!!! COMMON_MIN_TRES  iREG 1E = 0  should be 1000
!!! COMMON_MAX_TRES  iREG 1F = 0  should be 200
!!! PWR_ALARM_Q1Q2  iREG 20 = 1480  should be 7C0
!!! PWR_ALARM_Q3Q4  iREG 21 = 37C0  should be 2600
!!! PWR_ALARM_Q5Q6  iREG 22 = 3D70  should be 1B80
!!! LOOP_CLOSURE_FILTER  iREG 23 = 3970  should be 8000
!!! RING_TRIP_FILTER  iREG 24 = 78E0  should be 320
!!! TERM_LP_POLE_Q1Q2  iREG 25 = 8B60  should be 8C
!!! TERM_LP_POLE_Q3Q4  iREG 26 = 6A40  should be 100
!!! TERM_LP_POLE_Q5Q6  iREG 27 = 8070  should be 10
!!! CM_BIAS_RINGING  iREG 28 =   should be C00
!!! DCDC_MIN_V  iREG 29 =   should be C00
!!! DCDC_XTRA  iREG 2A =   should be 1000
!!! LOOP_CLOSE_TRES_LOW  iREG 2B =   should be 1000
  ! Init Indirect Registers UNSUCCESSFULLY.
Indirect Registers failed verification.
Module 0: FAILED FXS (FCC)
Module 1: Installed -- AUTO FXO (FCC mode)
Module 2: Installed -- AUTO FXO (FCC mode)
Module 3: Installed -- AUTO FXO (FCC mode)
Found a Wildcard TDM: Wildcard TDM400P REV E/F (3 modules)

Does this have to do with the fact that the module is way newer than the card?



Not having much direct experience with the wctdm.c driver, that would be 
my guess. You might be able to edit the wctdm_proslic_insane() function 
to force the FLAG_3215 on for the card and see if that gives you a 
different result.


--
Shaun Ruffell
Digium, Inc. | Linux Kernel Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: www.digium.com & www.asterisk.org

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

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


[asterisk-users] Problem installing FXS module in old digium 4 channel tdm card

2011-02-21 Thread C F
I just installed an FXS module onto a 4 channel tdm thats about 5
years old and it wont work. Running dmesg I can see the following
error:

Zapata Telephony Interface Registered on major 196
Freshmaker version: 71
Freshmaker passed register test
!!! LOOP_CLOSE_TRES  iREG 1C = 1  should be 1000
!!! RING_TRIP_TRES  iREG 1D = 8000  should be 3600
!!! COMMON_MIN_TRES  iREG 1E = 0  should be 1000
!!! COMMON_MAX_TRES  iREG 1F = 0  should be 200
!!! PWR_ALARM_Q1Q2  iREG 20 = 1480  should be 7C0
!!! PWR_ALARM_Q3Q4  iREG 21 = 37C0  should be 2600
!!! PWR_ALARM_Q5Q6  iREG 22 = 3D70  should be 1B80
!!! LOOP_CLOSURE_FILTER  iREG 23 = 3970  should be 8000
!!! RING_TRIP_FILTER  iREG 24 = 78E0  should be 320
!!! TERM_LP_POLE_Q1Q2  iREG 25 = 8B60  should be 8C
!!! TERM_LP_POLE_Q3Q4  iREG 26 = 6A40  should be 100
!!! TERM_LP_POLE_Q5Q6  iREG 27 = 8070  should be 10
!!! CM_BIAS_RINGING  iREG 28 =   should be C00
!!! DCDC_MIN_V  iREG 29 =   should be C00
!!! DCDC_XTRA  iREG 2A =   should be 1000
!!! LOOP_CLOSE_TRES_LOW  iREG 2B =   should be 1000
 ! Init Indirect Registers UNSUCCESSFULLY.
Indirect Registers failed verification.
!!! LOOP_CLOSE_TRES  iREG 1C = 1  should be 1000
!!! RING_TRIP_TRES  iREG 1D = 8000  should be 3600
!!! COMMON_MIN_TRES  iREG 1E = 0  should be 1000
!!! COMMON_MAX_TRES  iREG 1F = 0  should be 200
!!! PWR_ALARM_Q1Q2  iREG 20 = 1480  should be 7C0
!!! PWR_ALARM_Q3Q4  iREG 21 = 37C0  should be 2600
!!! PWR_ALARM_Q5Q6  iREG 22 = 3D70  should be 1B80
!!! LOOP_CLOSURE_FILTER  iREG 23 = 3970  should be 8000
!!! RING_TRIP_FILTER  iREG 24 = 78E0  should be 320
!!! TERM_LP_POLE_Q1Q2  iREG 25 = 8B60  should be 8C
!!! TERM_LP_POLE_Q3Q4  iREG 26 = 6A40  should be 100
!!! TERM_LP_POLE_Q5Q6  iREG 27 = 8070  should be 10
!!! CM_BIAS_RINGING  iREG 28 =   should be C00
!!! DCDC_MIN_V  iREG 29 =   should be C00
!!! DCDC_XTRA  iREG 2A =   should be 1000
!!! LOOP_CLOSE_TRES_LOW  iREG 2B =   should be 1000
 ! Init Indirect Registers UNSUCCESSFULLY.
Indirect Registers failed verification.
Module 0: FAILED FXS (FCC)
Module 1: Installed -- AUTO FXO (FCC mode)
Module 2: Installed -- AUTO FXO (FCC mode)
Module 3: Installed -- AUTO FXO (FCC mode)
Found a Wildcard TDM: Wildcard TDM400P REV E/F (3 modules)

Does this have to do with the fact that the module is way newer than the card?

TIA
C F

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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