From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [RFC] voicecall: Allow second stage string on Dial()
Date: Fri, 19 Jul 2013 09:21:27 -0500 [thread overview]
Message-ID: <51E94B67.1040009@gmail.com> (raw)
In-Reply-To: <CAMOw1v5A78BTX7Ds9WdaN8LxO1wG8h7crF32Bm_83vS7-4V10w@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2344 bytes --]
Hi Lucas,
>>
>> AFAIK the original reason this was here was to have the Audio Framework
>> generate the DTMF tones locally. It was not intended for user feedback.
>>
>> The question is how you want your UI to look like. For example, do you want
>> to show the progress of the DTMF tones (e.g. text changing from gray ->
>> black) as they are being dialed?
>
> Could be. Updating one char at a time would cover the feedback from
> the audio framework, but then we need to know what's the tone
> duration.
> I'm just seeing an item in the TODO and brainstorming ideas ;-). I
> have no use case for it.
The tone duration is the troubling bit. In theory all modems should
support the Start/Stop version of DTMF commands. In practice that is
rarely true and they only support +VTS. Perhaps we can do this only on
the hardware that supports the start / stop commands for the first attempt.
The reason this is still a TODO item is that nobody had any clue how to
solve it properly or time to try some things out. So I'm fully open to
new ideas on this one.
>
>>
>>
>>>>
>>>> Another interesting case to consider is what should happen if we have a
>>>> Three-Way call, start a DTMF queue and then swap calls.
>>>
>>>
>>> Right now we continue sending the tones, right? We could change
>>> voicecall.c to associate a queue to the active call and throw it away
>>> when this call change state, setting the property to error as above.
>>>
>>
>> The trouble is DTMFs can be applied to a dialing call as well, though I'll
>> need to do some digging to understand how/why.
>
> Yes, but what I said is that we could throw it away when going *out*
> of ACTIVE... if we started the queue on ACTIVE or DIALING is
> irrelevant in this scenario
>
Fair enough. I'm open to this one. It may be useful if we can check
the behavior of some other devices in this area.
>> The number being dialed is sanitized in voicecall_dial. You do not sanitize
>> the tones at all. tone_queue will reject invalid input, but then you should
>> not even accept an invalid dial string here in the first place.
>
> Adding a function to sanitize the tones part and also call it on
> manager_send_tones() then...
>
manager_tone() is fine. Re-read the code if you're not convinced :)
Regards,
-Denis
prev parent reply other threads:[~2013-07-19 14:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-17 23:23 [RFC] voicecall: Allow second stage string on Dial() Lucas De Marchi
2013-07-18 18:50 ` Denis Kenzior
2013-07-19 5:36 ` Lucas De Marchi
2013-07-19 13:57 ` Denis Kenzior
2013-07-19 14:10 ` Lucas De Marchi
2013-07-19 14:21 ` Denis Kenzior [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51E94B67.1040009@gmail.com \
--to=denkenz@gmail.com \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox