[asterisk-bugs] [Asterisk-GUI 0013332]: Multiple issues regarding transition from zap to dahdi

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Aug 19 04:25:07 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13332 
====================================================================== 
Reported By:                wizzy
Assigned To:                bkruse
====================================================================== 
Project:                    Asterisk-GUI
Issue ID:                   13332
Category:                   General
Reproducibility:            always
Severity:                   block
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 137679 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-08-18 05:36 CDT
Last Modified:              2008-08-19 04:25 CDT
====================================================================== 
Summary:                    Multiple issues regarding transition from zap to
dahdi
Description: 
Last Changed Rev: 3671

asterisk-gui has many changes needed to make the transition to dahdi.

* It uses ztscan instead of dahdi_scan
  - workaround:
  rm /sbin/ztscan ; ln -s /usr/sbin/dahdi_scan /sbin/ztscan

* It writes zapchan into users.conf, instead of dahdichan
  - workaround: global replace of "zapchan" for "dahdichan" in
/var/lib/asterisk/static-http

* An Astribank channel with dahdichan in users.conf is Dial'ed with
"Zap/38" as the hint (??)
  - I am looking for hardcoded references to Zap/ in the asterisk
codebase

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

---------------------------------------------------------------------- 
 (0091543) wizzy (reporter) - 2008-08-19 04:25
 http://bugs.digium.com/view.php?id=13332#c91543 
---------------------------------------------------------------------- 
It is possible the second item is not needed. The following patch to
asterisk fixed things though - I think because there was no hint or
something for the astribank.

Symptom was - from config files generated by asterisk-gui, if I called an
astribank channel, it invoked :-

 Executing [9322 at staff:1] Dial("SIP/9329-082584b0", "Zap/38") in new
stack

Which failed. I needed Dahdi there.

---------------------

--- pbx/pbx_config.c	(revision 138809)
+++ pbx/pbx_config.c	(working copy)
@@ -2478,7 +2478,7 @@
 					start = x;
 				}
 				for (x = start; x <= finish; x++) {
-					snprintf(tmp, sizeof(tmp), "Zap/%d", x);
+					snprintf(tmp, sizeof(tmp), "Dahdi/%d", x);
 					append_interface(iface, sizeof(iface), tmp);
 				}
 				chan = strsep(&c, ","); 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-08-19 04:25 wizzy          Note Added: 0091543                          
======================================================================




More information about the asterisk-bugs mailing list