[asterisk-bugs] [Asterisk 0016346]: chan_dahdi uses 1-2 for second port on one span

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Dec 16 18:25:06 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16346 
====================================================================== 
Reported By:                seandarcy
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16346
Category:                   Channels/chan_dahdi
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           1.6.1.10 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-11-29 19:31 CST
Last Modified:              2009-12-16 18:25 CST
====================================================================== 
Summary:                    chan_dahdi uses 1-2 for second port on one span
Description: 
I've set up group 0 for ports 1 and 2 for my only card TDM-400.

But if port 1 is busy, Dial g0 dials DAHDI/1-2, which as I understand it,
is port 1 on span 2, which doesn't exist.


====================================================================== 

---------------------------------------------------------------------- 
 (0115352) dant (reporter) - 2009-12-16 18:25
 https://issues.asterisk.org/view.php?id=16346#c115352 
---------------------------------------------------------------------- 
DAHDI/1-2 would be call waiting for DAHDI/1-1...

If you had two TDM400/410s, the first card would have DAHDI/1,2,3,4 and
the second would have DAHDI/5,6,7,8... So, the first channel on the second
card would be DAHDI/5... First call on each channel would be -1, if call
waiting was enabled and a call came in or break was used to make another
call, that channel would be -2...

/g0 does mean ring an available/non busy channel in group 0... With call
waiting enabled the channel is not busy...

There was a hint to solution in dialplan to your problem in response to
your emails to the asterisk-users mailing list in May where you had already
identified DAHDI/1-2 was call waiting... 

Does it work as you'd expect if you don't set callwaiting = yes?

Have you tried working around this issue by checking the channel status,
i.e. using the DEVICE_STATE function?
e.g.
exten => 100,1,GotoIf($[${DEVICE_STATE(DAHDI/1)} = INUSE]?lineonebusy)
exten => 100,n,Dial(DAHDI/1)
exten => 100,n,Hangup
exten => 100,n(lineonebusy),Dial(DAHDI/2)
exten => 100,n,Hangup

All that said, it would probably be good if you could skip INUSE DAHDI
channels when using groups even if call waiting is enabled... perhaps it
would be better to go for that as a new feature... 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-12-16 18:25 dant           Note Added: 0115352                          
======================================================================




More information about the asterisk-bugs mailing list