I have clarified the semantics of the OnUserInputTone() call back function, and made sure RFC2833 receiver, and the H.323/H.245 signal/signalUpdate handling, follows those semantics. In particular, getting a call back at "tone start" and one at "tone end". You should also get the actual duration of the tone as indicated in the RFC2833 packets.
Please note, as I said before, not everyone sends the correct information in RFC2833, so unless interoperability is not an important requirement for you, you may have problems doing anything that relies on the tone duration.
*Robert Jongbloed*
/OPAL/OpenH323/PTLib Architect and Co-founder./
Commercial support at http://www.voxlucida.com.au
On 4/02/2014 1:50 AM, Kruck, Wolfgang wrote:
>
> Hello,
>
> I'm using a 64-Bit version of opal and PTLib (v2.12.7) on Windows 7
> (v6.1.7601-AMD64).
>
> The callback function OnUserInputTone() has always the same value as
> duration. So it is not possible to detect when a user input start an
> when it ends.
>
> CallManager::OnUserInputTone(): tone: 3; duration: 100
>
> CallManager::OnUserInputString(): User input "3" received from "172221143"
>
> 0:31.491 Event Pool:4896 LocalCon SendUserInputString(3)
>
> CallManager::OnUserInputTone(): tone: 3; duration: 100
>
> CallManager::OnUserInputString(): User input "3" received from "172221143"
>
> 0:31.531 Event Pool:4896 LocalCon SendUserInputString(3)
>
> CallManager::OnUserInputTone(): tone: 3; duration: 100
>
> CallManager::OnUserInputString(): User input "3" received from "172221143"
>
> 0:31.551 Event Pool:4896 LocalCon SendUserInputString(3)
>
> CallManager::OnUserInputTone(): tone: 3; duration: 100
>
> CallManager::OnUserInputString(): User input "3" received from "172221143"
>
> 0:31.573 Event Pool:4896 LocalCon SendUserInputString(3)
>
> CallManager::OnUserInputTone(): tone: 3; duration: 100
>
> CallManager::OnUserInputString(): User input "3" received from "172221143"
>
> 0:31.591 Event Pool:4896 LocalCon SendUserInputString(3)
>
> CallManager::OnUserInputTone(): tone: 3; duration: 100
>
> CallManager::OnUserInputString(): User input "3" received from "172221143"
>
> MfG
>
> Wolfgang Kruck
>
> --
>
> LeuTek GmbH | Wolfgang Kruck | Software-Entwicklung
>
> Stadionstr. 4-6 | 70771 Leinfelden-Echterdingen | Deutschland
>
> Tel.: +49 711 94707-45 | Fax: +49 711 799177
>
> E-Mail: mailto:wol...@le... <mailto:wk...@le...> | Web:
> _http://www.leutek.de_
>
> Geschäftsführer: Jürgen Frey, Claus Mohoric
> Handelsregister: Stuttgart HRB 224464
>
>
>
> ------------------------------------------------------------------------------
> Managing the Performance of Cloud-Based Applications
> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
> Read the Whitepaper.
> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>
>
> _______________________________________________
> Opalvoip-user mailing list
> Opa...@li...
> https://lists.sourceforge.net/lists/listinfo/opalvoip-user
|