Android: Answer phone call, play audio to caller, capture caller input









up vote
1
down vote

favorite












I've been looking for the better part of a day for the answers but can only find parts of what I'm looking to do, so throwing it out here to see if anyone can answer, I'm not looking for code examples, just the right direction to look so that I can determine the viability of an idea, so classed or methods that could be used are perfect.



Would like to be able to do the following using Android M (API Level 23/minSdkVersion 23)



  1. Automatically answer an inbound call on android (found multiple ways
    to do this)

  2. Play dynamic audio("Please enter the following numbers n
    n n n") to the caller as a background service, so the person being called doesn't know there is even a call yet.

  3. Capture the typed keys from the caller and validate(how do you capture inbound keys)

  4. Ring the phone similar to a normal call if the caller entered the same numbers as stated in the dynamic audio

Any help or pointers in the right direction are greatly appreciated!










share|improve this question





















  • If you wanted to do this, you'd need to replace the phone's dialer and SIP app with your own. There's no way to do it short of that. Which is a LOT of work
    – Gabe Sechan
    Nov 11 at 2:03











  • @GabeSechan I'm aware of how to replace the dialer (pretty easy stuff with the right permissions etc.) now so sure about the requirement for the SIP please see the following app which does everything i'm trying to do i just don't know how they are doing it play.google.com/store/apps/…
    – William Worley
    Nov 11 at 21:02














up vote
1
down vote

favorite












I've been looking for the better part of a day for the answers but can only find parts of what I'm looking to do, so throwing it out here to see if anyone can answer, I'm not looking for code examples, just the right direction to look so that I can determine the viability of an idea, so classed or methods that could be used are perfect.



Would like to be able to do the following using Android M (API Level 23/minSdkVersion 23)



  1. Automatically answer an inbound call on android (found multiple ways
    to do this)

  2. Play dynamic audio("Please enter the following numbers n
    n n n") to the caller as a background service, so the person being called doesn't know there is even a call yet.

  3. Capture the typed keys from the caller and validate(how do you capture inbound keys)

  4. Ring the phone similar to a normal call if the caller entered the same numbers as stated in the dynamic audio

Any help or pointers in the right direction are greatly appreciated!










share|improve this question





















  • If you wanted to do this, you'd need to replace the phone's dialer and SIP app with your own. There's no way to do it short of that. Which is a LOT of work
    – Gabe Sechan
    Nov 11 at 2:03











  • @GabeSechan I'm aware of how to replace the dialer (pretty easy stuff with the right permissions etc.) now so sure about the requirement for the SIP please see the following app which does everything i'm trying to do i just don't know how they are doing it play.google.com/store/apps/…
    – William Worley
    Nov 11 at 21:02












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I've been looking for the better part of a day for the answers but can only find parts of what I'm looking to do, so throwing it out here to see if anyone can answer, I'm not looking for code examples, just the right direction to look so that I can determine the viability of an idea, so classed or methods that could be used are perfect.



Would like to be able to do the following using Android M (API Level 23/minSdkVersion 23)



  1. Automatically answer an inbound call on android (found multiple ways
    to do this)

  2. Play dynamic audio("Please enter the following numbers n
    n n n") to the caller as a background service, so the person being called doesn't know there is even a call yet.

  3. Capture the typed keys from the caller and validate(how do you capture inbound keys)

  4. Ring the phone similar to a normal call if the caller entered the same numbers as stated in the dynamic audio

Any help or pointers in the right direction are greatly appreciated!










share|improve this question













I've been looking for the better part of a day for the answers but can only find parts of what I'm looking to do, so throwing it out here to see if anyone can answer, I'm not looking for code examples, just the right direction to look so that I can determine the viability of an idea, so classed or methods that could be used are perfect.



Would like to be able to do the following using Android M (API Level 23/minSdkVersion 23)



  1. Automatically answer an inbound call on android (found multiple ways
    to do this)

  2. Play dynamic audio("Please enter the following numbers n
    n n n") to the caller as a background service, so the person being called doesn't know there is even a call yet.

  3. Capture the typed keys from the caller and validate(how do you capture inbound keys)

  4. Ring the phone similar to a normal call if the caller entered the same numbers as stated in the dynamic audio

Any help or pointers in the right direction are greatly appreciated!







java android android-studio






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 10 at 23:18









William Worley

479510




479510











  • If you wanted to do this, you'd need to replace the phone's dialer and SIP app with your own. There's no way to do it short of that. Which is a LOT of work
    – Gabe Sechan
    Nov 11 at 2:03











  • @GabeSechan I'm aware of how to replace the dialer (pretty easy stuff with the right permissions etc.) now so sure about the requirement for the SIP please see the following app which does everything i'm trying to do i just don't know how they are doing it play.google.com/store/apps/…
    – William Worley
    Nov 11 at 21:02
















  • If you wanted to do this, you'd need to replace the phone's dialer and SIP app with your own. There's no way to do it short of that. Which is a LOT of work
    – Gabe Sechan
    Nov 11 at 2:03











  • @GabeSechan I'm aware of how to replace the dialer (pretty easy stuff with the right permissions etc.) now so sure about the requirement for the SIP please see the following app which does everything i'm trying to do i just don't know how they are doing it play.google.com/store/apps/…
    – William Worley
    Nov 11 at 21:02















If you wanted to do this, you'd need to replace the phone's dialer and SIP app with your own. There's no way to do it short of that. Which is a LOT of work
– Gabe Sechan
Nov 11 at 2:03





If you wanted to do this, you'd need to replace the phone's dialer and SIP app with your own. There's no way to do it short of that. Which is a LOT of work
– Gabe Sechan
Nov 11 at 2:03













@GabeSechan I'm aware of how to replace the dialer (pretty easy stuff with the right permissions etc.) now so sure about the requirement for the SIP please see the following app which does everything i'm trying to do i just don't know how they are doing it play.google.com/store/apps/…
– William Worley
Nov 11 at 21:02




@GabeSechan I'm aware of how to replace the dialer (pretty easy stuff with the right permissions etc.) now so sure about the requirement for the SIP please see the following app which does everything i'm trying to do i just don't know how they are doing it play.google.com/store/apps/…
– William Worley
Nov 11 at 21:02












1 Answer
1






active

oldest

votes

















up vote
0
down vote













2) this is the most important thing but cannot be achieved because it's not possible to "inject" Audio on the voicecall "channel", so the "solution" could be to play an audio file loudly that will be used from the Microphone, but in this way all Ambient Noise will be heard from the caller (privacy issue?).



3) keys use DTMF tones, so the solution is to record inbound Voice and analize the spectrum by searching right frequencies. Even this way is quite not-possible because Caller Ambient Noise could ruin the spectrum detector.






share|improve this answer




















  • Thanks for the insight from your perspective. I'm pretty sure that your not correct as there are a few apps which already do EXACTLY what i'm asking i just don't know how they are doing it. play.google.com/store/apps/…
    – William Worley
    Nov 11 at 21:22










  • I suppose you didn't read the description from that PlayStore link. The App is a NORMAL Visual Voicemail Manager where calls, texts and other things should be redirected/forwarded to a different phone number where there is a "real computer" that does all the job (auto-answer, play a message, record the call and send it to your visual voicemail manager App). The App does nothing more than display some data and few other easy things.
    – emandt
    Nov 11 at 21:58










  • I guess you didn't install the app and have no clue what it really does as it DOESN'T just forward to carrier or other services and DOES play audio that is selected by the phone user or plays the callers name to the caller which the app gets from the name that is in the phone being called contact record.
    – William Worley
    Nov 12 at 1:40










  • I cannot install the App because "my carrier doesn't supports it" it's written in the Play Store. However the bottom text reports this: "(1) To use YouMail, you must forward missed calls to YouMail with carrier-specific forwarding codes. (2) If YouMail doesn’t fit your needs, deactivate forwarding BEFORE you delete the app, otherwise your voicemail will NOT be re-routed back to your carrier", so the App works ONLY if we forward voicecall to another number. This procedure is common in all apps of this kind, and it means the App doesn't nothing by its own but all the work is done elsewhere
    – emandt
    Nov 12 at 7:15










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53244364%2fandroid-answer-phone-call-play-audio-to-caller-capture-caller-input%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













2) this is the most important thing but cannot be achieved because it's not possible to "inject" Audio on the voicecall "channel", so the "solution" could be to play an audio file loudly that will be used from the Microphone, but in this way all Ambient Noise will be heard from the caller (privacy issue?).



3) keys use DTMF tones, so the solution is to record inbound Voice and analize the spectrum by searching right frequencies. Even this way is quite not-possible because Caller Ambient Noise could ruin the spectrum detector.






share|improve this answer




















  • Thanks for the insight from your perspective. I'm pretty sure that your not correct as there are a few apps which already do EXACTLY what i'm asking i just don't know how they are doing it. play.google.com/store/apps/…
    – William Worley
    Nov 11 at 21:22










  • I suppose you didn't read the description from that PlayStore link. The App is a NORMAL Visual Voicemail Manager where calls, texts and other things should be redirected/forwarded to a different phone number where there is a "real computer" that does all the job (auto-answer, play a message, record the call and send it to your visual voicemail manager App). The App does nothing more than display some data and few other easy things.
    – emandt
    Nov 11 at 21:58










  • I guess you didn't install the app and have no clue what it really does as it DOESN'T just forward to carrier or other services and DOES play audio that is selected by the phone user or plays the callers name to the caller which the app gets from the name that is in the phone being called contact record.
    – William Worley
    Nov 12 at 1:40










  • I cannot install the App because "my carrier doesn't supports it" it's written in the Play Store. However the bottom text reports this: "(1) To use YouMail, you must forward missed calls to YouMail with carrier-specific forwarding codes. (2) If YouMail doesn’t fit your needs, deactivate forwarding BEFORE you delete the app, otherwise your voicemail will NOT be re-routed back to your carrier", so the App works ONLY if we forward voicecall to another number. This procedure is common in all apps of this kind, and it means the App doesn't nothing by its own but all the work is done elsewhere
    – emandt
    Nov 12 at 7:15














up vote
0
down vote













2) this is the most important thing but cannot be achieved because it's not possible to "inject" Audio on the voicecall "channel", so the "solution" could be to play an audio file loudly that will be used from the Microphone, but in this way all Ambient Noise will be heard from the caller (privacy issue?).



3) keys use DTMF tones, so the solution is to record inbound Voice and analize the spectrum by searching right frequencies. Even this way is quite not-possible because Caller Ambient Noise could ruin the spectrum detector.






share|improve this answer




















  • Thanks for the insight from your perspective. I'm pretty sure that your not correct as there are a few apps which already do EXACTLY what i'm asking i just don't know how they are doing it. play.google.com/store/apps/…
    – William Worley
    Nov 11 at 21:22










  • I suppose you didn't read the description from that PlayStore link. The App is a NORMAL Visual Voicemail Manager where calls, texts and other things should be redirected/forwarded to a different phone number where there is a "real computer" that does all the job (auto-answer, play a message, record the call and send it to your visual voicemail manager App). The App does nothing more than display some data and few other easy things.
    – emandt
    Nov 11 at 21:58










  • I guess you didn't install the app and have no clue what it really does as it DOESN'T just forward to carrier or other services and DOES play audio that is selected by the phone user or plays the callers name to the caller which the app gets from the name that is in the phone being called contact record.
    – William Worley
    Nov 12 at 1:40










  • I cannot install the App because "my carrier doesn't supports it" it's written in the Play Store. However the bottom text reports this: "(1) To use YouMail, you must forward missed calls to YouMail with carrier-specific forwarding codes. (2) If YouMail doesn’t fit your needs, deactivate forwarding BEFORE you delete the app, otherwise your voicemail will NOT be re-routed back to your carrier", so the App works ONLY if we forward voicecall to another number. This procedure is common in all apps of this kind, and it means the App doesn't nothing by its own but all the work is done elsewhere
    – emandt
    Nov 12 at 7:15












up vote
0
down vote










up vote
0
down vote









2) this is the most important thing but cannot be achieved because it's not possible to "inject" Audio on the voicecall "channel", so the "solution" could be to play an audio file loudly that will be used from the Microphone, but in this way all Ambient Noise will be heard from the caller (privacy issue?).



3) keys use DTMF tones, so the solution is to record inbound Voice and analize the spectrum by searching right frequencies. Even this way is quite not-possible because Caller Ambient Noise could ruin the spectrum detector.






share|improve this answer












2) this is the most important thing but cannot be achieved because it's not possible to "inject" Audio on the voicecall "channel", so the "solution" could be to play an audio file loudly that will be used from the Microphone, but in this way all Ambient Noise will be heard from the caller (privacy issue?).



3) keys use DTMF tones, so the solution is to record inbound Voice and analize the spectrum by searching right frequencies. Even this way is quite not-possible because Caller Ambient Noise could ruin the spectrum detector.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 11 at 8:44









emandt

63656




63656











  • Thanks for the insight from your perspective. I'm pretty sure that your not correct as there are a few apps which already do EXACTLY what i'm asking i just don't know how they are doing it. play.google.com/store/apps/…
    – William Worley
    Nov 11 at 21:22










  • I suppose you didn't read the description from that PlayStore link. The App is a NORMAL Visual Voicemail Manager where calls, texts and other things should be redirected/forwarded to a different phone number where there is a "real computer" that does all the job (auto-answer, play a message, record the call and send it to your visual voicemail manager App). The App does nothing more than display some data and few other easy things.
    – emandt
    Nov 11 at 21:58










  • I guess you didn't install the app and have no clue what it really does as it DOESN'T just forward to carrier or other services and DOES play audio that is selected by the phone user or plays the callers name to the caller which the app gets from the name that is in the phone being called contact record.
    – William Worley
    Nov 12 at 1:40










  • I cannot install the App because "my carrier doesn't supports it" it's written in the Play Store. However the bottom text reports this: "(1) To use YouMail, you must forward missed calls to YouMail with carrier-specific forwarding codes. (2) If YouMail doesn’t fit your needs, deactivate forwarding BEFORE you delete the app, otherwise your voicemail will NOT be re-routed back to your carrier", so the App works ONLY if we forward voicecall to another number. This procedure is common in all apps of this kind, and it means the App doesn't nothing by its own but all the work is done elsewhere
    – emandt
    Nov 12 at 7:15
















  • Thanks for the insight from your perspective. I'm pretty sure that your not correct as there are a few apps which already do EXACTLY what i'm asking i just don't know how they are doing it. play.google.com/store/apps/…
    – William Worley
    Nov 11 at 21:22










  • I suppose you didn't read the description from that PlayStore link. The App is a NORMAL Visual Voicemail Manager where calls, texts and other things should be redirected/forwarded to a different phone number where there is a "real computer" that does all the job (auto-answer, play a message, record the call and send it to your visual voicemail manager App). The App does nothing more than display some data and few other easy things.
    – emandt
    Nov 11 at 21:58










  • I guess you didn't install the app and have no clue what it really does as it DOESN'T just forward to carrier or other services and DOES play audio that is selected by the phone user or plays the callers name to the caller which the app gets from the name that is in the phone being called contact record.
    – William Worley
    Nov 12 at 1:40










  • I cannot install the App because "my carrier doesn't supports it" it's written in the Play Store. However the bottom text reports this: "(1) To use YouMail, you must forward missed calls to YouMail with carrier-specific forwarding codes. (2) If YouMail doesn’t fit your needs, deactivate forwarding BEFORE you delete the app, otherwise your voicemail will NOT be re-routed back to your carrier", so the App works ONLY if we forward voicecall to another number. This procedure is common in all apps of this kind, and it means the App doesn't nothing by its own but all the work is done elsewhere
    – emandt
    Nov 12 at 7:15















Thanks for the insight from your perspective. I'm pretty sure that your not correct as there are a few apps which already do EXACTLY what i'm asking i just don't know how they are doing it. play.google.com/store/apps/…
– William Worley
Nov 11 at 21:22




Thanks for the insight from your perspective. I'm pretty sure that your not correct as there are a few apps which already do EXACTLY what i'm asking i just don't know how they are doing it. play.google.com/store/apps/…
– William Worley
Nov 11 at 21:22












I suppose you didn't read the description from that PlayStore link. The App is a NORMAL Visual Voicemail Manager where calls, texts and other things should be redirected/forwarded to a different phone number where there is a "real computer" that does all the job (auto-answer, play a message, record the call and send it to your visual voicemail manager App). The App does nothing more than display some data and few other easy things.
– emandt
Nov 11 at 21:58




I suppose you didn't read the description from that PlayStore link. The App is a NORMAL Visual Voicemail Manager where calls, texts and other things should be redirected/forwarded to a different phone number where there is a "real computer" that does all the job (auto-answer, play a message, record the call and send it to your visual voicemail manager App). The App does nothing more than display some data and few other easy things.
– emandt
Nov 11 at 21:58












I guess you didn't install the app and have no clue what it really does as it DOESN'T just forward to carrier or other services and DOES play audio that is selected by the phone user or plays the callers name to the caller which the app gets from the name that is in the phone being called contact record.
– William Worley
Nov 12 at 1:40




I guess you didn't install the app and have no clue what it really does as it DOESN'T just forward to carrier or other services and DOES play audio that is selected by the phone user or plays the callers name to the caller which the app gets from the name that is in the phone being called contact record.
– William Worley
Nov 12 at 1:40












I cannot install the App because "my carrier doesn't supports it" it's written in the Play Store. However the bottom text reports this: "(1) To use YouMail, you must forward missed calls to YouMail with carrier-specific forwarding codes. (2) If YouMail doesn’t fit your needs, deactivate forwarding BEFORE you delete the app, otherwise your voicemail will NOT be re-routed back to your carrier", so the App works ONLY if we forward voicecall to another number. This procedure is common in all apps of this kind, and it means the App doesn't nothing by its own but all the work is done elsewhere
– emandt
Nov 12 at 7:15




I cannot install the App because "my carrier doesn't supports it" it's written in the Play Store. However the bottom text reports this: "(1) To use YouMail, you must forward missed calls to YouMail with carrier-specific forwarding codes. (2) If YouMail doesn’t fit your needs, deactivate forwarding BEFORE you delete the app, otherwise your voicemail will NOT be re-routed back to your carrier", so the App works ONLY if we forward voicecall to another number. This procedure is common in all apps of this kind, and it means the App doesn't nothing by its own but all the work is done elsewhere
– emandt
Nov 12 at 7:15

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53244364%2fandroid-answer-phone-call-play-audio-to-caller-capture-caller-input%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

How to read a connectionString WITH PROVIDER in .NET Core?

Node.js Script on GitHub Pages or Amazon S3

Museum of Modern and Contemporary Art of Trento and Rovereto