Re: [asterisk-users] Conneting Asterisk to Swyx pri

2008-10-12 Thread Geraint Lee
For the purposes of google since i'm sure someone is going encounter the
same problem at some point in time...

I have now fixed the problem, it seems asterisk and swyx refuse to talk
properly with euroisdn.. it now works by changing it to use qsig... on the
swyx side:
windows device manager > select the isdn card (sx2 dualpri) > advanced >
isdn parameters > tick use additional d-channel features > tick enable q.sig
restart the server

asterisk side:
modify /etc/asterisk/zapata.conf and set switchtype=qsig for your swyx
trunks

and one more thing... for wanpipe you need to set tdmv_dchan = 0 instead of
16

job done!

Geraint

2008/10/7 Geraint Lee <[EMAIL PROTECTED]>

> I don't mean to be a pain, but i could really do with a heads up on this...
> does anyone have ANY ideas? I've trawled through google and come up with
> nothing except for questions with no answers...
>
> Cheers
>
> Geraint
>
> 2008/10/6 Geraint Lee <[EMAIL PROTECTED]>
>
> Hi all, I've done this a few times with other PBX's but swyx has stumped
>> me! I'm having some trouble getting Asterisk connected to a Swyx system
>> using a sangoma A104dx... currently the setup is:
>> BT <-> Swyx
>>
>> The above setup works fine... what i'm trying to achieve is
>> BT & SIP Trunks <-> Asterisk <-> Swyx
>>
>> I have connected to our BT (2 x ISDN30 UK) with asterisk and have no
>> errors and can make and receive calls and it never dies... the problem comes
>> when i try and connect asterisk to swyx...
>> I can make calls from asterisk to the swyx system with no problems or
>> errors, but... when i try and place a call from Swyx to asterisk i receive
>> the following error:
>> [Oct  6 10:56:20] ERROR[9794]: chan_zap.c:8250 zt_pri_error: !! Unexpected
>> Channel selection 3
>>
>> The call does complete as normal but after about 2 or 3 hours of calls
>> passing through this setup i start receiving errors like the following:
>> [Oct  6 10:55:25] WARNING[9794]: chan_zap.c:8074 pri_fixup_principle:
>> Can't fix up channel from 63 to 92 because 92 is already in use
>> [Oct  6 10:55:25] WARNING[9794]: chan_zap.c:9245 pri_dchannel: Hangup on
>> bad channel 0/30 on span 3
>> [Oct  6 10:55:55] WARNING[9794]: chan_zap.c:8074 pri_fixup_principle:
>> Can't fix up channel from 63 to 92 because 92 is already in use
>>
>> And eventually no more calls can be placed from swyx to asterisk... time
>> for some configs... and before anyone says something about wanpipe3 and 4
>> having dchan=0, i tried with dchan=16 and no calls can be placed...
>>
>> I hope someone can point me in the right direction as we're trying to get
>> rid of swyx since we're tied down by limiting software and excessive
>> licensing costs.
>>
>> Thanks!
>>
>> Geraint
>>
>> pri show spans shows all spans as up and active.
>> zap show status shows all as ok
>> wanrouter status shows all as connected
>>
>> wanpipe1 and 2:
>> [devices]
>> wanpipe1 = WAN_AFT_TE1, Comment
>>
>> [interfaces]
>> w1g1 = wanpipe1, , TDM_VOICE, Comment
>>
>> [wanpipe1]
>> CARD_TYPE   = AFT
>> S514CPU = A
>> CommPort= PRI
>> AUTO_PCISLOT= NO
>> PCISLOT = 1
>> PCIBUS  = 16
>> FE_MEDIA= E1
>> FE_LCODE= HDB3
>> FE_FRAME= CRC4
>> FE_LINE = 1
>> TE_CLOCK= NORMAL
>> TE_REF_CLOCK= 0
>> TE_SIG_MODE = CCS
>> TE_HIGHIMPEDANCE= NO
>> LBO = 120OH
>> FE_TXTRISTATE   = NO
>> MTU = 1500
>> UDPPORT = 9000
>> TTL = 255
>> IGNORE_FRONT_END = NO
>> TDMV_SPAN   = 1
>> TDMV_DCHAN  = 16
>> TDMV_HW_DTMF= NO
>>
>> [w1g1]
>> ACTIVE_CH   = ALL
>> TDMV_ECHO_OFF   = NO
>> TDMV_HWEC   = YES
>>
>>
>> wanpipe3 and 4:
>> [devices]
>> wanpipe3 = WAN_AFT_TE1, Comment
>>
>> [interfaces]
>> w3g1 = wanpipe3, , TDM_VOICE, Comment
>>
>> [wanpipe3]
>> CARD_TYPE   = AFT
>> S514CPU = A
>> CommPort= PRI
>> AUTO_PCISLOT= NO
>> PCISLOT = 1
>> PCIBUS  = 16
>> FE_MEDIA= E1
>> FE_LCODE= HDB3
>> FE_FRAME= CRC4
>> FE_LINE = 3
>> TE_CLOCK= MASTER
>> TE_REF_CLOCK= 1
>> TE_SIG_MODE = CCS
>> TE_HIGHIMPEDANCE= NO
>> LBO = 120OH
>> FE_TXTRISTATE   = NO
>> MTU = 1500
>> UDPPORT = 9000
>> TTL = 255
>> IGNORE_FRONT_END = NO
>> TDMV_SPAN   = 3
>> TDMV_DCHAN  = 0
>> TDMV_HW_DTMF= NO
>>
>> [w3g1]
>> ACTIVE_CH   = ALL
>> TDMV_ECHO_OFF   = NO
>> TDMV_HWEC   = YES
>>
>> zaptel.conf:
>> loadzone=uk
>> defaultzone=uk
>>
>> #Sangoma A104 port 1 [slot:1 bus:16 span:1] 
>> span=1,0,0,ccs,hdb3,crc4
>> bchan=1-15,17-31
>> hardhdlc=16
>>
>> #Sangoma A104 port 2 [slot:1 bus:16 span:2] 
>> span=2,0,0,ccs,hdb3,crc4
>> bchan=32-46,48-62
>> hardhdlc=47
>>
>> #Sangoma A104 port 3 [slot:1 bus:16 span:3] 
>> span=3,0,0,ccs,hdb3,crc4
>> bchan=63-77,79-93
>> dchan=78
>>
>> #Sangoma A104 port 4 [slot:1 bus:16 span:4] 
>> span=4,0,0,ccs,hdb3,crc4
>> bchan=94-108,110-124
>> dchan=109
>>
>> I have also t

Re: [asterisk-users] Conneting Asterisk to Swyx pri

2008-10-07 Thread Geraint Lee
I don't mean to be a pain, but i could really do with a heads up on this...
does anyone have ANY ideas? I've trawled through google and come up with
nothing except for questions with no answers...

Cheers

Geraint

2008/10/6 Geraint Lee <[EMAIL PROTECTED]>

> Hi all, I've done this a few times with other PBX's but swyx has stumped
> me! I'm having some trouble getting Asterisk connected to a Swyx system
> using a sangoma A104dx... currently the setup is:
> BT <-> Swyx
>
> The above setup works fine... what i'm trying to achieve is
> BT & SIP Trunks <-> Asterisk <-> Swyx
>
> I have connected to our BT (2 x ISDN30 UK) with asterisk and have no errors
> and can make and receive calls and it never dies... the problem comes when i
> try and connect asterisk to swyx...
> I can make calls from asterisk to the swyx system with no problems or
> errors, but... when i try and place a call from Swyx to asterisk i receive
> the following error:
> [Oct  6 10:56:20] ERROR[9794]: chan_zap.c:8250 zt_pri_error: !! Unexpected
> Channel selection 3
>
> The call does complete as normal but after about 2 or 3 hours of calls
> passing through this setup i start receiving errors like the following:
> [Oct  6 10:55:25] WARNING[9794]: chan_zap.c:8074 pri_fixup_principle: Can't
> fix up channel from 63 to 92 because 92 is already in use
> [Oct  6 10:55:25] WARNING[9794]: chan_zap.c:9245 pri_dchannel: Hangup on
> bad channel 0/30 on span 3
> [Oct  6 10:55:55] WARNING[9794]: chan_zap.c:8074 pri_fixup_principle: Can't
> fix up channel from 63 to 92 because 92 is already in use
>
> And eventually no more calls can be placed from swyx to asterisk... time
> for some configs... and before anyone says something about wanpipe3 and 4
> having dchan=0, i tried with dchan=16 and no calls can be placed...
>
> I hope someone can point me in the right direction as we're trying to get
> rid of swyx since we're tied down by limiting software and excessive
> licensing costs.
>
> Thanks!
>
> Geraint
>
> pri show spans shows all spans as up and active.
> zap show status shows all as ok
> wanrouter status shows all as connected
>
> wanpipe1 and 2:
> [devices]
> wanpipe1 = WAN_AFT_TE1, Comment
>
> [interfaces]
> w1g1 = wanpipe1, , TDM_VOICE, Comment
>
> [wanpipe1]
> CARD_TYPE   = AFT
> S514CPU = A
> CommPort= PRI
> AUTO_PCISLOT= NO
> PCISLOT = 1
> PCIBUS  = 16
> FE_MEDIA= E1
> FE_LCODE= HDB3
> FE_FRAME= CRC4
> FE_LINE = 1
> TE_CLOCK= NORMAL
> TE_REF_CLOCK= 0
> TE_SIG_MODE = CCS
> TE_HIGHIMPEDANCE= NO
> LBO = 120OH
> FE_TXTRISTATE   = NO
> MTU = 1500
> UDPPORT = 9000
> TTL = 255
> IGNORE_FRONT_END = NO
> TDMV_SPAN   = 1
> TDMV_DCHAN  = 16
> TDMV_HW_DTMF= NO
>
> [w1g1]
> ACTIVE_CH   = ALL
> TDMV_ECHO_OFF   = NO
> TDMV_HWEC   = YES
>
>
> wanpipe3 and 4:
> [devices]
> wanpipe3 = WAN_AFT_TE1, Comment
>
> [interfaces]
> w3g1 = wanpipe3, , TDM_VOICE, Comment
>
> [wanpipe3]
> CARD_TYPE   = AFT
> S514CPU = A
> CommPort= PRI
> AUTO_PCISLOT= NO
> PCISLOT = 1
> PCIBUS  = 16
> FE_MEDIA= E1
> FE_LCODE= HDB3
> FE_FRAME= CRC4
> FE_LINE = 3
> TE_CLOCK= MASTER
> TE_REF_CLOCK= 1
> TE_SIG_MODE = CCS
> TE_HIGHIMPEDANCE= NO
> LBO = 120OH
> FE_TXTRISTATE   = NO
> MTU = 1500
> UDPPORT = 9000
> TTL = 255
> IGNORE_FRONT_END = NO
> TDMV_SPAN   = 3
> TDMV_DCHAN  = 0
> TDMV_HW_DTMF= NO
>
> [w3g1]
> ACTIVE_CH   = ALL
> TDMV_ECHO_OFF   = NO
> TDMV_HWEC   = YES
>
> zaptel.conf:
> loadzone=uk
> defaultzone=uk
>
> #Sangoma A104 port 1 [slot:1 bus:16 span:1] 
> span=1,0,0,ccs,hdb3,crc4
> bchan=1-15,17-31
> hardhdlc=16
>
> #Sangoma A104 port 2 [slot:1 bus:16 span:2] 
> span=2,0,0,ccs,hdb3,crc4
> bchan=32-46,48-62
> hardhdlc=47
>
> #Sangoma A104 port 3 [slot:1 bus:16 span:3] 
> span=3,0,0,ccs,hdb3,crc4
> bchan=63-77,79-93
> dchan=78
>
> #Sangoma A104 port 4 [slot:1 bus:16 span:4] 
> span=4,0,0,ccs,hdb3,crc4
> bchan=94-108,110-124
> dchan=109
>
> I have also tried with hardhdlc=109 and have the same problem.
>
> zapata.conf:
> [channels]
> language=en
> usecallerid=yes
> hidecallerid=no
> callwaiting=no
> callwaitingcallerid=yes
> restrictcid=no
> usecallingpres=no
> threewaycalling=yes
> callreturn=yes
> transfer=yes
> cancallforward=yes
> musiconhold=default
> rxgain=0.0
> txgain=0.0
> immediate=no
>
> ; BT
> switchtype=euroisdn
> group=1
> context=from-bt
> signalling=pri_cpe
>
> ; Port 1 - BT
> channel => 1-15,17-31
>
> ; Port 2 - BT
> channel => 32-46,48-62
>
> ; Swyx
> overlapdial=yes
> group=2
> context=from-swyx
> signalling=pri_net
>
> ; Port 3 - Swyx
> channel => 63-77,79-93
>
> ; Port 4 - Swyx
> channel => 94-108,110-124
>
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 2

Re: [asterisk-users] Conneting Asterisk to Swyx pri

2008-10-06 Thread Geraint Lee
brilliant idea - except it would be a sunday morning and another problem
the handsets that come with swyx aren't sip compatible :S

Cheers

Geraint

2008/10/6 Gordon Henderson
<[EMAIL PROTECTED]<[EMAIL PROTECTED]>
>

> On Mon, 6 Oct 2008, Geraint Lee wrote:
>
> > Hi all, I've done this a few times with other PBX's but swyx has stumped
> me!
> > I'm having some trouble getting Asterisk connected to a Swyx system using
> a
> > sangoma A104dx... currently the setup is:
> > BT <-> Swyx
> >
> > The above setup works fine... what i'm trying to achieve is
> > BT & SIP Trunks <-> Asterisk <-> Swyx
> >
> > I have connected to our BT (2 x ISDN30 UK) with asterisk and have no
> errors
> > and can make and receive calls and it never dies... the problem comes
> when i
> > try and connect asterisk to swyx...
> > I can make calls from asterisk to the swyx system with no problems or
> > errors, but... when i try and place a call from Swyx to asterisk i
> receive
> > the following error:
> > [Oct  6 10:56:20] ERROR[9794]: chan_zap.c:8250 zt_pri_error: !!
> Unexpected
> > Channel selection 3
> >
> > The call does complete as normal but after about 2 or 3 hours of calls
> > passing through this setup i start receiving errors like the following:
> > [Oct  6 10:55:25] WARNING[9794]: chan_zap.c:8074 pri_fixup_principle:
> Can't
> > fix up channel from 63 to 92 because 92 is already in use
> > [Oct  6 10:55:25] WARNING[9794]: chan_zap.c:9245 pri_dchannel: Hangup on
> bad
> > channel 0/30 on span 3
> > [Oct  6 10:55:55] WARNING[9794]: chan_zap.c:8074 pri_fixup_principle:
> Can't
> > fix up channel from 63 to 92 because 92 is already in use
> >
> > And eventually no more calls can be placed from swyx to asterisk... time
> for
> > some configs... and before anyone says something about wanpipe3 and 4
> having
> > dchan=0, i tried with dchan=16 and no calls can be placed...
> >
> > I hope someone can point me in the right direction as we're trying to get
> > rid of swyx since we're tied down by limiting software and excessive
> > licensing costs.
>
> So go in one Saturday morning, wire it up as you want (BT -> Asterisk) and
> the re-configure all the SIP phones to talk directly to the asterisk box
> and not the swyx box, then arrange the the swyx box to misteriously die,
> then tell everyone what a good job it was that you were in on the weekend
> to re-configure the phones to use the asterisk box ;-)
>
> Gordon
>
> ___
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> 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 --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

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

Re: [asterisk-users] Conneting Asterisk to Swyx pri

2008-10-06 Thread Gordon Henderson
On Mon, 6 Oct 2008, Geraint Lee wrote:

> Hi all, I've done this a few times with other PBX's but swyx has stumped me!
> I'm having some trouble getting Asterisk connected to a Swyx system using a
> sangoma A104dx... currently the setup is:
> BT <-> Swyx
>
> The above setup works fine... what i'm trying to achieve is
> BT & SIP Trunks <-> Asterisk <-> Swyx
>
> I have connected to our BT (2 x ISDN30 UK) with asterisk and have no errors
> and can make and receive calls and it never dies... the problem comes when i
> try and connect asterisk to swyx...
> I can make calls from asterisk to the swyx system with no problems or
> errors, but... when i try and place a call from Swyx to asterisk i receive
> the following error:
> [Oct  6 10:56:20] ERROR[9794]: chan_zap.c:8250 zt_pri_error: !! Unexpected
> Channel selection 3
>
> The call does complete as normal but after about 2 or 3 hours of calls
> passing through this setup i start receiving errors like the following:
> [Oct  6 10:55:25] WARNING[9794]: chan_zap.c:8074 pri_fixup_principle: Can't
> fix up channel from 63 to 92 because 92 is already in use
> [Oct  6 10:55:25] WARNING[9794]: chan_zap.c:9245 pri_dchannel: Hangup on bad
> channel 0/30 on span 3
> [Oct  6 10:55:55] WARNING[9794]: chan_zap.c:8074 pri_fixup_principle: Can't
> fix up channel from 63 to 92 because 92 is already in use
>
> And eventually no more calls can be placed from swyx to asterisk... time for
> some configs... and before anyone says something about wanpipe3 and 4 having
> dchan=0, i tried with dchan=16 and no calls can be placed...
>
> I hope someone can point me in the right direction as we're trying to get
> rid of swyx since we're tied down by limiting software and excessive
> licensing costs.

So go in one Saturday morning, wire it up as you want (BT -> Asterisk) and 
the re-configure all the SIP phones to talk directly to the asterisk box 
and not the swyx box, then arrange the the swyx box to misteriously die, 
then tell everyone what a good job it was that you were in on the weekend 
to re-configure the phones to use the asterisk box ;-)

Gordon

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

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


[asterisk-users] Conneting Asterisk to Swyx pri

2008-10-06 Thread Geraint Lee
Hi all, I've done this a few times with other PBX's but swyx has stumped me!
I'm having some trouble getting Asterisk connected to a Swyx system using a
sangoma A104dx... currently the setup is:
BT <-> Swyx

The above setup works fine... what i'm trying to achieve is
BT & SIP Trunks <-> Asterisk <-> Swyx

I have connected to our BT (2 x ISDN30 UK) with asterisk and have no errors
and can make and receive calls and it never dies... the problem comes when i
try and connect asterisk to swyx...
I can make calls from asterisk to the swyx system with no problems or
errors, but... when i try and place a call from Swyx to asterisk i receive
the following error:
[Oct  6 10:56:20] ERROR[9794]: chan_zap.c:8250 zt_pri_error: !! Unexpected
Channel selection 3

The call does complete as normal but after about 2 or 3 hours of calls
passing through this setup i start receiving errors like the following:
[Oct  6 10:55:25] WARNING[9794]: chan_zap.c:8074 pri_fixup_principle: Can't
fix up channel from 63 to 92 because 92 is already in use
[Oct  6 10:55:25] WARNING[9794]: chan_zap.c:9245 pri_dchannel: Hangup on bad
channel 0/30 on span 3
[Oct  6 10:55:55] WARNING[9794]: chan_zap.c:8074 pri_fixup_principle: Can't
fix up channel from 63 to 92 because 92 is already in use

And eventually no more calls can be placed from swyx to asterisk... time for
some configs... and before anyone says something about wanpipe3 and 4 having
dchan=0, i tried with dchan=16 and no calls can be placed...

I hope someone can point me in the right direction as we're trying to get
rid of swyx since we're tied down by limiting software and excessive
licensing costs.

Thanks!

Geraint

pri show spans shows all spans as up and active.
zap show status shows all as ok
wanrouter status shows all as connected

wanpipe1 and 2:
[devices]
wanpipe1 = WAN_AFT_TE1, Comment

[interfaces]
w1g1 = wanpipe1, , TDM_VOICE, Comment

[wanpipe1]
CARD_TYPE   = AFT
S514CPU = A
CommPort= PRI
AUTO_PCISLOT= NO
PCISLOT = 1
PCIBUS  = 16
FE_MEDIA= E1
FE_LCODE= HDB3
FE_FRAME= CRC4
FE_LINE = 1
TE_CLOCK= NORMAL
TE_REF_CLOCK= 0
TE_SIG_MODE = CCS
TE_HIGHIMPEDANCE= NO
LBO = 120OH
FE_TXTRISTATE   = NO
MTU = 1500
UDPPORT = 9000
TTL = 255
IGNORE_FRONT_END = NO
TDMV_SPAN   = 1
TDMV_DCHAN  = 16
TDMV_HW_DTMF= NO

[w1g1]
ACTIVE_CH   = ALL
TDMV_ECHO_OFF   = NO
TDMV_HWEC   = YES


wanpipe3 and 4:
[devices]
wanpipe3 = WAN_AFT_TE1, Comment

[interfaces]
w3g1 = wanpipe3, , TDM_VOICE, Comment

[wanpipe3]
CARD_TYPE   = AFT
S514CPU = A
CommPort= PRI
AUTO_PCISLOT= NO
PCISLOT = 1
PCIBUS  = 16
FE_MEDIA= E1
FE_LCODE= HDB3
FE_FRAME= CRC4
FE_LINE = 3
TE_CLOCK= MASTER
TE_REF_CLOCK= 1
TE_SIG_MODE = CCS
TE_HIGHIMPEDANCE= NO
LBO = 120OH
FE_TXTRISTATE   = NO
MTU = 1500
UDPPORT = 9000
TTL = 255
IGNORE_FRONT_END = NO
TDMV_SPAN   = 3
TDMV_DCHAN  = 0
TDMV_HW_DTMF= NO

[w3g1]
ACTIVE_CH   = ALL
TDMV_ECHO_OFF   = NO
TDMV_HWEC   = YES

zaptel.conf:
loadzone=uk
defaultzone=uk

#Sangoma A104 port 1 [slot:1 bus:16 span:1] 
span=1,0,0,ccs,hdb3,crc4
bchan=1-15,17-31
hardhdlc=16

#Sangoma A104 port 2 [slot:1 bus:16 span:2] 
span=2,0,0,ccs,hdb3,crc4
bchan=32-46,48-62
hardhdlc=47

#Sangoma A104 port 3 [slot:1 bus:16 span:3] 
span=3,0,0,ccs,hdb3,crc4
bchan=63-77,79-93
dchan=78

#Sangoma A104 port 4 [slot:1 bus:16 span:4] 
span=4,0,0,ccs,hdb3,crc4
bchan=94-108,110-124
dchan=109

I have also tried with hardhdlc=109 and have the same problem.

zapata.conf:
[channels]
language=en
usecallerid=yes
hidecallerid=no
callwaiting=no
callwaitingcallerid=yes
restrictcid=no
usecallingpres=no
threewaycalling=yes
callreturn=yes
transfer=yes
cancallforward=yes
musiconhold=default
rxgain=0.0
txgain=0.0
immediate=no

; BT
switchtype=euroisdn
group=1
context=from-bt
signalling=pri_cpe

; Port 1 - BT
channel => 1-15,17-31

; Port 2 - BT
channel => 32-46,48-62

; Swyx
overlapdial=yes
group=2
context=from-swyx
signalling=pri_net

; Port 3 - Swyx
channel => 63-77,79-93

; Port 4 - Swyx
channel => 94-108,110-124
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

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