[asterisk-bugs] [Asterisk 0018603]: Get Real Channel of a Dahdi Call

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Feb 24 11:09:53 CST 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18603 
====================================================================== 
Reported By:                arjankroon
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18603
Category:                   Channels/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           SVN 
JIRA:                       SWP-2951 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2011-01-12 06:41 CST
Last Modified:              2011-02-24 11:09 CST
====================================================================== 
Summary:                    Get Real Channel of a Dahdi Call
Description: 
The channel name for DAHDI channels has changed in 1.8.
This is mentioned in
http://downloads.asterisk.org/pub/telephony/asterisk/ChangeLog-1.8-current

The old format was DAHDI/XX-Y where XX was the real channel number. 
It has changed to DAHDI/iZ/XXXXXXXXXX-YYY where XXXXXXXXXX is the
callerid. 
And Z is the number of the span in /etc/dahdi/system.conf

Our channel names look like this
DAHDI/i8/0517383600-229
DAHDI/i1/0031650545840-329
DAHDI/i4/0512515245-20f
DAHDI/i6/0517417488-1fb

But we want to know which channel number of these four channels is used.

Or is there a new VARIABLE where this real CHANNEL found.

With DAHDI SHOW CHANNELS you see the number of channels in Chan pseudo.



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

---------------------------------------------------------------------- 
 (0132362) rmudgett (administrator) - 2011-02-24 11:09
 https://issues.asterisk.org/view.php?id=18603#c132362 
---------------------------------------------------------------------- 
There were several reasons that the channel name had to change.
1) Call completion requires a device state for ISDN phones.  The generic
device state uses the channel name.
2) Calls do not necessarily have B channels.  Calls placed on hold by an
ISDN phone do not have B channels.
3) The B channel a call initially requests may not be the B channel the
call ultimately uses.  Changes to the internal implementation of the
Asterisk master channel list caused deadlock problems for chan_dahdi if it
needed to change the channel name.  Chan_dahdi no longer changes the
channel name.
4) DTMF attended transfers now work with ISDN phones because the channel
name is "dialable" like the chan_sip channel names.

A fairly simple solution to these monitoring applications is to just keep
track of the number of calls on a span.  Isn't the main goal of the
monitoring to see how much traffic is on the spans? 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-02-24 11:09 rmudgett       Note Added: 0132362                          
======================================================================




More information about the asterisk-bugs mailing list