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

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Jan 12 08:45:47 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-12 08:45 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.



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

---------------------------------------------------------------------- 
 (0130400) arjankroon (reporter) - 2011-01-12 08:45
 https://issues.asterisk.org/view.php?id=18603#c130400 
---------------------------------------------------------------------- 
DIALPLAN =
exten => _09091369,1,NoOp("in 09091369")
exten => _09091369,n,NoOp(chan = ${CHANNEL(stats)})
exten => _09091369,n,NoOp(1 = ${CHANNEL})
exten => _09091369,n,NoOp(2 = ${MASTER_CHANNEL})
exten => _09091369,n,NoOp(3 = ${HINT})
exten => _09091369,n,Wait(100)

CLI = 
-- Executing [09091369 at incoming:1] NoOp("DAHDI/i1/0031655871460-47d", ""in
09091369"") in new stack
-- Executing [09091369 at incoming:2] NoOp("DAHDI/i1/0031655871460-47d",
"chan = ") in new stack
-- Executing [09091369 at incoming:3] NoOp("DAHDI/i1/0031655871460-47d", "1 =
DAHDI/i1/0031655871460-47d") in new stack
-- Executing [09091369 at incoming:4] NoOp("DAHDI/i1/0031655871460-47d", "2 =
") in new stack
-- Executing [09091369 at incoming:5] NoOp("DAHDI/i1/0031655871460-47d", "3 =
") in new stack
-- Executing [09091369 at incoming:6] Wait("DAHDI/i1/0031655871460-47d",
"100") in new stack


This is done with my mobile phone (0031655871460) 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-01-12 08:45 arjankroon     Note Added: 0130400                          
======================================================================




More information about the asterisk-bugs mailing list