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

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Jan 20 01:39:52 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:                   major
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.8.1.1 
JIRA:                        
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-01-20 01:39 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.



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

---------------------------------------------------------------------- 
 (0130765) arjankroon (reporter) - 2011-01-20 01:39
 https://issues.asterisk.org/view.php?id=18603#c130765 
---------------------------------------------------------------------- 
Hi,

I tried the following:
exten => s,n,NoOp(Masterchannel = ${MASTER_CHANNEL(CHANNEL)})

If I called this dialplan, I see in in the CLI the following:
  NoOp("DAHDI/i8/0655871460-5", "Masterchannel = DAHDI/i8/0655871460-5")
in new stack

When I look at on which dahdi channel this call came in I see that it is
Nr 248

asterisk25*CLI> dahdi show channels
  1            incoming default In Service
etc
248 0303003127 incoming default In Service


I tried to look on the internet if I can see more information on the
different option you can choose in MASTER_CHANNEL, but I can't find
anything on it. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-01-20 01:39 arjankroon     Note Added: 0130765                          
======================================================================




More information about the asterisk-bugs mailing list