[asterisk-users] Weird Behavior with DAHDI

Danny Dias ing.diasdanny at gmail.com
Wed Sep 29 07:39:14 CDT 2010


Hello,

I'm experiencing some weird problems on my server:

- 1) The following messages are filling up my logs:


[Sep 29 08:24:59] WARNING[7077]: chan_dahdi.c:2789 pri_find_dchan: No
D-channels available!  Using Primary channel 140 as D-channel anyway!
[Sep 29 08:24:59] WARNING[7078]: chan_dahdi.c:2789 pri_find_dchan: No
D-channels available!  Using Primary channel 171 as D-channel anyway!
[Sep 29 08:24:59] WARNING[7075]: chan_dahdi.c:2789 pri_find_dchan: No
D-channels available!  Using Primary channel 78 as D-channel anyway!
[Sep 29 08:24:59] WARNING[7079]: chan_dahdi.c:2789 pri_find_dchan: No
D-channels available!  Using Primary channel 202 as D-channel anyway!
[Sep 29 08:24:59] WARNING[7073]: chan_dahdi.c:2789 pri_find_dchan: No
D-channels available!  Using Primary channel 16 as D-channel anyway!
[Sep 29 08:24:59] WARNING[7080]: chan_dahdi.c:2789 pri_find_dchan: No
D-channels available!  Using Primary channel 233 as D-channel anyway!
[Sep 29 08:24:59] WARNING[7074]: chan_dahdi.c:2789 pri_find_dchan: No
D-channels available!  Using Primary channel 47 as D-channel anyway!

In the Asterisk CLI>, i'm watching these messages constantly

2) I've plugged in a real E1 PRI ISDN:

root at Sangoma-Testing:/usr/src# asterisk -rx 'pri show spans'
PRI span 1/0: Provisioned, In Alarm, Down, Active
PRI span 2/0: Provisioned, In Alarm, Down, Active
PRI span 3/0: Provisioned, In Alarm, Down, Active
*PRI span 4/0: Provisioned, Up, Active*
PRI span 5/0: Provisioned, In Alarm, Down, Active
PRI span 6/0: Provisioned, In Alarm, Down, Active
PRI span 7/0: Provisioned, In Alarm, Down, Active
PRI span 8/0: Provisioned, In Alarm, Down, Active

Seems to be OK! but i can't make a call:

    -- Executing [691918892 at pbx1:1] Dial("SIP/xtravoip200-021a47e0",
"DAHDI/g4/691918892|30|m") in new stack
[Sep 29 08:29:51] WARNING[7338]: channel.c:3170 ast_request: No translator
path exists for channel type DAHDI (native 76) to 256
[Sep 29 08:29:51] WARNING[7338]: app_dial.c:1237 dial_exec_full: *Unable to
create channel of type 'DAHDI'* (cause 58 - Bearer capability not available)
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [691918892 at pbx1:2] Hangup("SIP/xtravoip200-021a47e0", "")
in new stack
  == Spawn extension (pbx1, 691918892, 2) exited non-zero on
'SIP/xtravoip200-021a47e0'

What is happening?

Could you let me know how to debug or to understand the output from "pri
intense debug span 4"?

> TEI: 0 State 7(Multi-frame established)
> V(A)=30, V(S)=30, V(R)=30
> K=7, RC=0, l3initiated=0, reject_except=0, ack_pend=0
> T200_id=0, N200=3, T203_id=0
> [ 00 01 01 3d ]
> Supervisory frame:
> SAPI: 00  C/R: 0 EA: 0
>  TEI: 000        EA: 1
> Zero: 0     S: 0 01: 1  [ RR (receive ready) ]
> N(R): 030 P/F: 1
> 0 bytes of data
-- Starting T200 timer
Sangoma-Testing*CLI>
< TEI: 0 State 8(Timer recovery)
< V(A)=30, V(S)=30, V(R)=30
< K=7, RC=0, l3initiated=0, reject_except=0, ack_pend=0
< T200_id=1, N200=3, T203_id=0
< [ 02 01 01 3d ]
< Supervisory frame:
< SAPI: 00  C/R: 1 EA: 0
<  TEI: 000        EA: 1
< Zero: 0     S: 0 01: 1  [ RR (receive ready) ]
< N(R): 030 P/F: 1
< 0 bytes of data

> TEI: 0 State 8(Timer recovery)
> V(A)=30, V(S)=30, V(R)=30
> K=7, RC=0, l3initiated=0, reject_except=0, ack_pend=0
> T200_id=1, N200=3, T203_id=0
> [ 02 01 01 3d ]
 Supervisory frame:>
> SAPI: 00  C/R: 1 EA: 0
>  TEI: 000        EA: 1
> Zero: 0     S: 0 01: 1  [ RR (receive ready) ]
> N(R): 030 P/F: 1
> 0 bytes of data
-- Got ACK for N(S)=30 to (but not including) N(S)=30
Done handling message for SAPI/TEI=0/0
Sangoma-Testing*CLI>
< TEI: 0 State 8(Timer recovery)
< V(A)=30, V(S)=30, V(R)=30
< K=7, RC=0, l3initiated=0, reject_except=0, ack_pend=0
< T200_id=1, N200=3, T203_id=0
< [ 00 01 01 3d ]
< Supervisory frame:
< SAPI: 00  C/R: 0 EA: 0
<  TEI: 000        EA: 1
< Zero: 0     S: 0 01: 1  [ RR (receive ready) ]
< N(R): 030 P/F: 1
< 0 bytes of data
-- Got ACK for N(S)=30 to (but not including) N(S)=30
-- Stopping T200 timer
-- Starting T203 timer

What should i check on the above span debug? what's important there? the
timers? the ACK? SAPI? TEI? is there any place to learn how to understand
this output?

Hope you can help me

Verions of my server:

libpri version: 1.4.11.4
Asterisk 1.4.24.1
DAHDI Version: 2.4.0
WANPIPE Release: 3.5.15.4

Please don't ask me to upgrade my Asterisk Version, the idea is to test this
environment

Best Regards!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100929/62a7a784/attachment.htm 


More information about the asterisk-users mailing list