[asterisk-users] Weird Behavior with DAHDI

Andrew Thomas andy at datavox.co.uk
Wed Sep 29 10:54:44 CDT 2010


Downgrade your LibPri instead (1.4.10.2 is fine).

See https://issues.asterisk.org/view.php?id=17270 for more info.



-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Danny Dias
Sent: 29 September 2010 13:39
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] Weird Behavior with DAHDI


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!


 If you have received this communication in error we would appreciate
you advising us either by telephone or return of e-mail. The contents
of this message, and any attachments, are the property of DataVox,
and are intended for the confidential use of the named recipient only.
If you are not the intended recipient, employee or agent responsible
for delivery of this message to the intended recipient, take note that
any dissemination, distribution or copying of this communication and
its attachments is strictly prohibited, and may be subject to civil or
criminal action for which you may be liable.
Every effort has been made to ensure that this e-mail or any attachments
are free from viruses. While the company has taken every reasonable
precaution to minimise this risk, neither company, nor the sender can
accept liability for any damage which you sustain as a result of viruses.
It is recommended that you should carry out your own virus checks
before opening any attachments. 

Registered in England. No. 27459085.





More information about the asterisk-users mailing list