[asterisk-users] No D-channels available! Using Primary channel 16 as D-channel anyway!

2007-01-23 Thread Kong Zhen Shin

Dear Gurus,

i am facing some unknown problem here..

first, let me describe my case.

my office is using a nortel merridian option 11c PBX. and it is 
connected to the provider thru a E1 card, which is working fine with no 
problem.


my plan it to slot in a server with 2 TE11XP card to intercept the 
outgoing calls.


Provider --te11xp--- asterisk ---te11xp-- nortel merridian 
option 11c


i had my asterisk set up with these configuration.

zaptel.conf
---
loadzone=uk
defaultzone=uk


span=1,1,1,ccs,hdb3,crc4,yellow
span=2,0,1,ccs,hdb3,crc4,yellow

bchan=1-15,32-46
dchan=16,47
bchan=17-31,48-62
---
where span 1 is to the provider and span 2 is to the PBX

zapata.conf
-
context=from-pstn
switchtype=dms100
signalling=pri_cpe
callerid=asreceived
group=1
callgroup=1
pickupgroup=1
rxgain=0.0
txgain=0.0
channel=1-15,17-31

context=from-pstn
switchtype=dms100
signalling=pri_cpe
callerid=asreceived
group=2
callgroup=2
pickupgroup=2
rxgain=0.0
txgain=0.0
channel=32-46,48-62


able to start asterisk. Span 2 loaded beautifully, no problem or errors,
but i get this
WARNING[13655]: chan_zap.c:2287 pri_find_dchan: No D-channels 
available!  Using Primary channel 16 as D-channel anyway!

warning message from span 1. which i have no idea what happened..

the funny part is, i am able to receive calls, no problem at all. CID 
and DID are pass thru (for incoming).
but when i try to make a outgoing calls, i got errors PRI HANGUP CAUSE 1 
from the provider.



i did a pri debug span 1 for the call i dialed, below are the msg.
-
   -- Accepting call from '124' to '42707898' on channel 0/21, span 2
   -- Executing Set(Zap/52-1, CALLERID(number)=50399100) in new stack
   -- Executing NoOp(Zap/52-1, 50399100) in new stack
   -- Executing Dial(Zap/52-1, ZAP/g0/42707898||) in new stack
-- Making new call for cr 32771
   -- Requested transfer capability: 0x00 - SPEECH
 Protocol Discriminator: Q.931 (8)  len=39
 Call Ref: len= 2 (reference 3/0x3) (Originator)
 Message type: SETUP (5)
 [04 03 80 90 a3]
 Bearer Capability (len= 5) [ Ext: 1  Q.931 Std: 0  Info transfer 
capability: Speech (0)
  Ext: 1  Trans mode/rate: 64kbps, 
circuit-mode (16)

  Ext: 1  User information layer 1: A-Law (35)
 [18 03 a9 83 81]
 Channel ID (len= 5) [ Ext: 1  IntID: Implicit, PRI Spare: 0, 
Exclusive Dchan: 0

ChanSel: Reserved
   Ext: 1  Coding: 0   Number Specified   Channel 
Type: 3

   Ext: 1  Channel: 1 ]
 [6c 0a 21 80 35 30 33 39 39 31 30 30]
 Calling Number (len=12) [ Ext: 0  TON: National Number (2)  NPI: 
ISDN/Telephony Numbering Plan (E.164/E.163) (1)
   Presentation: Presentation permitted, user 
number not screened (0) '50399100' ]

 [70 09 a1 34 32 37 30 37 38 39 38]
 Called Number (len=11) [ Ext: 1  TON: National Number (2)  NPI: 
ISDN/Telephony Numbering Plan (E.164/E.163) (1) '42707898' ]

 [a1]w*CLI
 Sending Complete (len= 1)
   -- Called g0/42707898
 Protocol Discriminator: Q.931 (8)  len=10
 Call Ref: len= 2 (reference 3/0x3) (Terminator)
 Message type: CALL PROCEEDING (2)
 [18 03 a9 83 81]
 Channel ID (len= 5) [ Ext: 1  IntID: Implicit, PRI Spare: 0, Exclusive 
Dchan: 0

ChanSel: Reserved
   Ext: 1  Coding: 0   Number Specified   Channel 
Type: 3

   Ext: 1  Channel: 1 ]
-- Processing IE 24 (cs0, Channel Identification)
   -- Zap/1-1 is proceeding passing it to Zap/52-1
 Protocol Discriminator: Q.931 (8)  len=17
 Call Ref: len= 2 (reference 3/0x3) (Terminator)
 Message type: PROGRESS (3)
 [08 02 82 81]
 Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0) 0: 0   
Location: Public network serving the local user (2)
  Ext: 1  Cause: Unallocated (unassigned) number (1), 
class = Normal Event (0) ]

 [1e 02 84 88]
 Progress Indicator (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0) 
0: 0   Location: Public network serving the remote user (4)
   Ext: 1  Progress Description: Inband 
information or appropriate pattern now available. (8) ]

 [1e 02 84 82]
 Progress Indicator (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0) 
0: 0   Location: Public network serving the remote user (4)
   Ext: 1  Progress Description: Called 
equipment is non-ISDN. (2) ]

-- Processing IE 8 (cs0, Cause)
-- Processing IE 30 (cs0, Progress Indicator)
-- Processing IE 30 (cs0, Progress Indicator)
   -- PROGRESS with cause code 1 received
   -- Zap/1-1 is making progress passing it to Zap/52-1
 Protocol Discriminator: Q.931 (8)  len=20
 Call Ref: len= 2 (reference 3/0x3) (Terminator)
 Message type: CONNECT (7)
 [1e 02 84 88]
 Progress Indicator (len= 4) [ Ext: 1  

Re: [asterisk-users] No D-channels available! Using Primary channel 16 as D-channel anyway!

2007-01-23 Thread Kong Zhen Shin
i tried without yellow as well.. and according to zaptel drivers, the 
yellow don't do anything, just put a yellow signal where there is 
nothing from the provider.


and yes, i did put a pri_net on the span 2, the config is a typo.. 
thanks for reminding me..


but still i got those errors :(

Leo Ann Boon wrote:

snip

zaptel.conf
---
loadzone=uk
defaultzone=uk


span=1,1,1,ccs,hdb3,crc4,yellow
span=2,0,1,ccs,hdb3,crc4,yellow
I don't think yellow alarm is necessary unless you've been advised by 
your carrier.


bchan=1-15,32-46
dchan=16,47
bchan=17-31,48-62
---
where span 1 is to the provider and span 2 is to the PBX

zapata.conf
-
context=from-pstn
switchtype=dms100
signalling=pri_cpe
callerid=asreceived
group=1
callgroup=1
pickupgroup=1
rxgain=0.0
txgain=0.0
channel=1-15,17-31

context=from-pstn
switchtype=dms100
signalling=pri_cpe
If you are connecting the second span to the 11c, shouldn't this be 
pri_net? And, since you're using E1 I believe both your switchtype 
should be euroisdn instead of dms100.


Leo



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

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




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

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


Re: [asterisk-users] No D-channels available! Using Primary channel 16 as D-channel anyway!

2007-01-23 Thread Kong Zhen Shin
yes.. did that, still the same.. again, just to highlight again my 
problem... problem is connecting asterisk to the provider. have no 
problem from nortel to asterisk.


i cam route all calls thru SIP. but i wan to route locals calls back to 
the provider.. :(


this really gives me headache..

Leo Ann Boon wrote:

Kong Zhen Shin wrote:
i tried without yellow as well.. and according to zaptel drivers, the 
yellow don't do anything, just put a yellow signal where there is 
nothing from the provider.


and yes, i did put a pri_net on the span 2, the config is a typo.. 
thanks for reminding me..


but still i got those errors :(

Did you change your switchtype as well? Have you tried swapping the 
spans?


Leo

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

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




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

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


Re: [asterisk-users] No D-channels available! Using Primary channel16 as D-channel anyway!

2007-01-23 Thread Kong Zhen Shin
my problem now was with asterisk connecting to the provider..not 
asterisk to PBX..


asterisk to PBX is flawless

anyway, was using what u suggested sometime ago, later found out i can 
collapse into one, then use it from then..


Michael L. Young wrote:

snip
zaptel.conf
---
loadzone=uk
defaultzone=uk


span=1,1,1,ccs,hdb3,crc4,yellow
span=2,0,1,ccs,hdb3,crc4,yellow

bchan=1-15,32-46
dchan=16,47
bchan=17-31,48-62
---
where span 1 is to the provider and span 2 is to the PBX



Not sure if this matters but it sure makes it easier to read:
 
	span=1,1,1,ccs,hdb3,crc4,yellow	|

bchan=1-15,17-31| To provider
dchan=16|

span=2,0,1,ccs,hdb3,crc4,yellow |
bchan=32-46,48-62   | To PBX
dchan=47|

From a programmer's point of view, I would be parsing the config file
looking for span and then the bchan and dchan for that span to follow.  Then
when another span is detected check for the bchan, dchan, fxoks, etc. to
follow.  I don't know if that is the case or not with zaptel drivers.

  

zapata.conf
-
context=from-pstn
switchtype=dms100
signalling=pri_cpe
callerid=asreceived
group=1
callgroup=1
pickupgroup=1
rxgain=0.0
txgain=0.0
channel=1-15,17-31



I would assume that you have an entry declaring a different context and
group for your PBX, i.e.:
context=from-pbx
switchtype=dms100
signalling=pri_net
group=2
callgroup=2
pickupgroup=2
rxgain=0.0
txgain=0.0
channel=32-46,48-62

Hope this points you in the right direction.

Michael

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

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


  


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

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