mainUSBB2K-API - Support: sr #105745, DialTone Command Patch

 
 

sr #105745: DialTone Command Patch

Submitter:  Simon Dible <simon_6162>
Submitted:  Tue 23 Jan 2007 06:18:58 PM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 23 Jan 2007 06:18:58 PM UTC, original submission:  

I required access to a command to turn the dialtone on and off from my client program so I have added the following code, any chance you can add it to your version?

I currently have a patched version as part of my kb2kskype program on sourceforge, I hope you don;t mind, it would be nice to merge the changes into your version.

Line 53 of usbb2k-api.h
// added by simon dible 08-01-07
dial tone command signals
#define CMD_DIALTONE_ON 6
#define CMD_DIALTONE_OFF 7
// end add

Add the following to decode command in usbb2k-api.c
  // ---
// added by simon dible 08-01-07
  if (buffcmp(cmd_str,"DIALTONE ON")==0)
{
return CMD_DIALTONE_ON;
  }
  if (buffcmp(cmd_str,"DIALTONE OFF")==0)
  {
return CMD_DIALTONE_OFF;
  }
end add



Add to case statement in client_th in same file

added by simon dible 08-01-07
turn the dial tone on or off based on user command
case CMD_DIALTONE_ON:
start_stop_dialtone = DIAL_TONE_ON;
break;
case CMD_DIALTONE_OFF:
start_stop_dialtone = DIAL_TONE_OFF;
break;
end add


Simon Dible <simon_6162>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by simon_6162 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code