-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implement a wav play into pcap #98
base: develop
Are you sure you want to change the base?
Conversation
- need to add mu-law encoding
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very cool! Thank you for the contribution, this feature is something I wanted for a long time, but never got around to figuring out. Kudos!
I've left some comments that will need to be addressed prior to merging this. Let me know if you need any more suggestions or feedback.
* Change: Call limits (`number_of_calls`, `concurrent_max` and `calls_per_second`) no longer have default values for simplicity of UAS scenarios. The value of `to_user` now defaults to the SIPp default of `s`. | ||
* Feature: Support for setting rate scaling independently of reporting frequency via the new `calls_per_second_interval` option. See also https://github.com/SIPp/sipp/pull/107 and https://github.com/SIPp/sipp/pull/126. | ||
* Change: Call limits (`number_of_calls`, `concurrent_max` and `call_rate`) no longer have default values for simplicity of UAS scenarios. The value of `to_user` now defaults to the SIPp default of `s`. | ||
* Feature: Support for setting rate scaling independently of reporting frequency via the new `call_rate_interval` option. See also https://github.com/SIPp/sipp/pull/107 and https://github.com/SIPp/sipp/pull/126. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you changing old Changelog entries? It looks like you are changing calls_per_second
to call_rate
to match the other variables as part of this PR. That's fine, but the change note belongs in the current release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry for late reply. I changed the command for my own need, but didn't rollback when make PR. sorry for that, and will change it soon. Thanks for review!
- need spandsp library for encoidng a-law and u-law | ||
* Debug the DTMF packet generation (end of event) | ||
- reduce the duration to 200 milliseconds | ||
- change obsolete rfc2833 to rfc4733 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To merge this into the main branch, would you move these notes into appropriate areas of the README?
module SippyCup | ||
module G711 | ||
extend FFI::Library | ||
ffi_lib 'spandsp' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This new dependency on spandsp needs a couple of things:
- Document how and where a person can get spandsp, if they don't already have it
- Ensure sippy_cup continues to work the way it did before if spandsp is not available
iptr = FFI::MemoryPointer.new(:int16, samples.size) | ||
optr = FFI::MemoryPointer.new(:uint8, samples.size) | ||
|
||
#puts samples.join(' ') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dead code should be removed
Hello @jinserk
Do you happen to know how this could be fixed? Or what I could do to make it work? Maybe downgrade? Sorry for asking this here, but I couldn't add an issue to your fork. |
Please consider this code updated as: