App to flash a DAHDI trunk.  
More...
Go to the source code of this file.
App to flash a DAHDI trunk. 
- Author
- Mark Spencer marks.nosp@m.ter@.nosp@m.digiu.nosp@m.m.co.nosp@m.m 
Definition in file app_flash.c.
◆ __reg_module()
  
  | 
        
          | static void __reg_module | ( | void |  | ) |  |  | static | 
 
 
◆ __unreg_module()
  
  | 
        
          | static void __unreg_module | ( | void |  | ) |  |  | static | 
 
 
◆ AST_MODULE_SELF_SYM()
◆ dahdi_wait_event()
  
  | 
        
          | static int dahdi_wait_event | ( | int | fd | ) |  |  | inlinestatic | 
 
Definition at line 67 of file app_flash.c.
   68{
   69    
   70    int i,j=0;
   71    i = DAHDI_IOMUX_SIGEVENT;
   72    if (ioctl(fd, DAHDI_IOMUX, &i) == -1) return -1;
   73    if (ioctl(fd, DAHDI_GETEVENT, &j) == -1) return -1;
   74    return j;
   75}
Referenced by flash_exec().
 
 
◆ flash_exec()
  
  | 
        
          | static int flash_exec | ( | struct ast_channel * | chan, |  
          |  |  | const char * | data |  
          |  | ) |  |  |  | static | 
 
Definition at line 77 of file app_flash.c.
   78{
   79    int res = -1;
   80    int x;
   81    struct dahdi_params dahdip;
   82 
   85        return -1;
   86    }
   87 
   88    memset(&dahdip, 0, sizeof(dahdip));
   90    if (!res) {
   91        if (dahdip.sigtype & __DAHDI_SIG_FXS) {
   92            x = DAHDI_FLASH;
   94            if (!res || (
errno == EINPROGRESS)) {
 
   95                if (res) {
   96                    
   98                }
  101            } else
  103        } else
  105    } else
  107 
  108    return res;
  109}
static int dahdi_wait_event(int fd)
const char * ast_channel_name(const struct ast_channel *chan)
int ast_channel_fd(const struct ast_channel *chan, int which)
int ast_safe_sleep(struct ast_channel *chan, int ms)
Wait for a specified amount of time, looking for hangups.
#define ast_verb(level,...)
Structure to describe a channel "technology", ie a channel driver See for examples:
References ast_channel_fd(), ast_channel_name(), ast_log, ast_safe_sleep(), ast_verb, dahdi_wait_event(), errno, LOG_WARNING, and type.
Referenced by load_module().
 
 
◆ load_module()
  
  | 
        
          | static int load_module | ( | void |  | ) |  |  | static | 
 
 
◆ unload_module()
  
  | 
        
          | static int unload_module | ( | void |  | ) |  |  | static | 
 
 
◆ __mod_info
◆ app
◆ ast_module_info