[asterisk-bugs] [Zaptel 0012241]: [patch] New Ztdynamic driver for Redfone Communications foneBRIDGE 2 platform

noreply at bugs.digium.com noreply at bugs.digium.com
Thu Mar 20 13:53:39 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12241 
====================================================================== 
Reported By:                brettcar
Assigned To:                
====================================================================== 
Project:                    Zaptel
Issue ID:                   12241
Category:                   NewFeature
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     new
Zaptel Version:             1.4.9.2 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             03-17-2008 12:50 CDT
Last Modified:              03-20-2008 13:53 CDT
====================================================================== 
Summary:                    [patch] New Ztdynamic driver for Redfone
Communications foneBRIDGE 2 platform
Description: 
Attached is the current production code used for Redfone's foneBRIDGE 2
platform that utilizes multiframe ztdynamic/ztd-eth packets. Makefiles et
cetera not included but could be provided if needed -- it's just a standard
module like ztd-eth.
====================================================================== 

---------------------------------------------------------------------- 
 brettcar - 03-20-08 13:53  
---------------------------------------------------------------------- 
tzafrir,
  The procedure I use is as follows. Suppose the spans are running on
device eth0.

(For loading a new version of the module)
  # ifconfig eth0 down
  # ztcfg -s
  # rmmod ztd-ethmf
  # rmmod ztdynamic
  (Make changes to zaptel.conf)
  # modprobe ztd-ethmf
  # ifconfig eth0 up

OR  (just for zaptel.conf changes)

  # ifconfig eth0 down
  # ztcfg -s
  (Make changes to zaptel.conf)
  # ztcfg
  # ifconfig eth0 up

Allow me to explain. `ztcfg -s' will remove the dynamic spans that are
currently running. This lets you unload the modules or edit zaptel.conf.
Running `ztcfg' again will create the new spans. 

In the first example I only list `modeprobe ztd-ethmf'. This is
intentional. Running `ztcfg' without the right modules loaded will load the
modules and then load the spans. However, some installations have module
loading hooks that run `ztcfg' when a Zaptel module is loaded. This results
in `ztcfg' getting called twice and can create a race condition where
multiple (identical) spans are instantiated. 

Finally, it is important to bring the Ethernet interface down when
removing the spans with `ztcfg -s'. Removing the spans while processing
packets will cause the system to hang. (This should probably be filed as a
separate bug. I don't have the resources to tackle it right now and it
exists with ztd-eth as well.) 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
03-20-08 13:53  brettcar       Note Added: 0084346                          
======================================================================




More information about the asterisk-bugs mailing list