Yesterday, I came across the baresip program: an extremely basic, command line, SIP client. After messing around a bit with the program, I found that it had major potential to be the client that served the radios. I set up a test which utilized the URIx-Util lib and snagging the stderr of the baresip program. After much cringing at how gross this code was, but proving the concept worked, I was very happy and began to plan how to better get the DTMF events out of the SIP client.
Thus, I began the process of learning a C based module API that has no (real) documentation associated with it (at least that I could find).
After a few hours of poking at it, giving up, realizing a better way to do it, more poking at it, etc., this pull request was born.
Here is the info from the pull request:
DTMFIO Module
Description
Writes received dtmf button presses to a FIFO located at /tmp/dtmf.out.Also, will write an 'E' when a call is established and an 'F' when the call is finished.To Do
- Proper error handling
- Using a dtmf.in file, be able to send DTMF signals
- Use a filename specified by the user in the config file
- Clean up build output so there aren't errors regarding unused vars
No comments:
Post a Comment