[asterisk-bugs] [Asterisk 0017683]: [patch] I could not find an easy way to access DAHDI channel and span number from the dialplan.

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Mar 1 17:11:14 CST 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17683 
====================================================================== 
Reported By:                mrwho
Assigned To:                rmudgett
====================================================================== 
Project:                    Asterisk
Issue ID:                   17683
Category:                   Channels/chan_dahdi/NewFeature
Reproducibility:            always
Severity:                   tweak
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
JIRA:                       SWP-2859 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 274530 
Request Review:              
====================================================================== 
Date Submitted:             2010-07-22 05:52 CDT
Last Modified:              2011-03-01 17:11 CST
====================================================================== 
Summary:                    [patch] I could not find an easy way to access 
DAHDI channel and span number from the dialplan.
Description: 
  I could not find an easy way to access from the dialplan the span and the
PRI channel being used by an Asterisk channel. As a quick solution I
patched chan_dahdi so that it will populate - if applicable - two
variables:

  PRI_CHANNEL: the PRI channel number
  PRI_SPAN: the PRI span number

  These variables can then be used in the dialplan. The patch it's pretty
simple, even if I don't know how much it could be needed by others.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0018603 Get Real Channel of a Dahdi Call
====================================================================== 

---------------------------------------------------------------------- 
 (0132502) rmudgett (administrator) - 2011-03-01 17:11
 https://issues.asterisk.org/view.php?id=17683#c132502 
---------------------------------------------------------------------- 
Attached issue17683_v1.8.patch file.  I started with the
chan_dahdi-channel.patch and changed:
CHANNEL(pri_channel) --> CHANNEL(dahdi_channel)
CHANNEL(pri_span) --> CHANNEL(dahdi_span)
because the value is applicable to chan_dahdi as a whole instead of just
PRI channels.

I added CHANNEL(dahdi_type) so the dialplan can determine what kind of
DAHDI channel it is so CHANNEL(no_media_path) can be used without
generating a warning in mixed DAHDI channel type environments. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-03-01 17:11 rmudgett       Note Added: 0132502                          
======================================================================




More information about the asterisk-bugs mailing list