PauseAudio and SendDtmf advice needed #588
Replies: 2 comments 2 replies
-
The first part of the problem, with the music not pausing, is because the Pause method doesn't do anything other than setting a variable. I'd never really intended for the sipsorcery library to start dealing with media and only added classes like The DTMF tones are a separate issue. The library only supports DTMF via RTP Events (RFC2833) packets. If you're not hearing DTMF tones it may be because the remote peer doesn't support that mechanism or is configured for a different one. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your response Aaron and for your efforts with Sip Sorcery. The code base I am currently working with uses pjsip with a C# wrapper as part of a test library and I was exploring potential alternatives. The PlayDtmf example worked for me but uses WindowsAudioEndPoint. I was hoping to avoid any Windows specific library as the tests will run on Windows and Linux hosts. Perhaps use of WindowsAudioEndPoint is integral? I tried calling AudioExtrasSource.SetSource and it didn’t do anything once the audio had started unless I had created the session using WindowsAudioEndPoint. I take your point on contributing to the library but am not sure I can commit the time. Thanks once again for your efforts. |
Beta Was this translation helpful? Give feedback.
-
Referencing the SIPCallServer example I have created a WPF application that calls Linphone and plays music. The call is initiated on pressing a Start button and ended on clicking a Stop button.
When I press a Dtmf button I want to stop playing the music, play a DTMF tone and resume playing the music. Unfortunately this isn't working; the music does not stop and no DTMF tone is heard. I expect I've forgotten something but I can't spot what. Please can someone point me in the right direction?
Beta Was this translation helpful? Give feedback.
All reactions