Cannot Play Audio or Vibrate iPhone while in call

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ashraf-

> OK thanks for the quick reply..
>
> We can live without vibrating the device but I need at least a way to play
> back and audiable DTMF tone to the use when they press keys.. I tried both
> AudioToolBox and AVPlayer and both failed to play any sound when I was
> during a call..

It's not the most elegant, but you could replace Rx RTP payloads with required tone data.  I assume your using G711,
if so this would be relatively easy to try.

-Jeff

> -----Original Message-----
> From: Ming
> Sent: Tuesday, February 21, 2012 12:17 AM
> To: pjsip list
> Subject: Re: Cannot Play Audio or Vibrate iPhone while in call
>
> Hi guys,
>
> "However, the device does not vibrate if your app?s audio session is
> configured with the AVAudioSessionCategoryPlayAndRecord or
> AVAudioSessionCategoryRecord audio session category. This ensures that
> vibration doesn?t interfere with audio recording."
> (Ref:
> https://developer.apple.com/library/ios/#documentation/AudioToolbox/Reference/SystemSoundServicesReference/Reference/reference.html#//apple_ref/c/func/AudioServicesPlayAlertSound
> )
>
> On Tue, Feb 21, 2012 at 8:40 AM, Fujihara Mauro <mfujihara at gmail.com> wrote:
>> Ashraf, is right.
>> I got the same issues. After a call be established you can't use
>> AudioToolbox to play sounds or vibrate.
>>
>>
>> On Feb 21, 2012, at 8:57 AM, Ashraf Jaddo wrote:
>>
>>> To Play sound I use AudiTool box --> AudioServicesPlaySystemSound(
>>> soundID)
>>>
>>>
>>> and to vibrate I use AudioServicesPlaySystemSound(kSystemSoundID_Vibrate)
>>>
>>> -----Original Message----- From: Florian Sent: Monday, February 20, 2012
>>> 4:58 PM To: pjsip list Subject: Re: Cannot Play Audio or Vibrate
>>> iPhone while in call
>>> which iOS API do you use to vibrate?
>>> Florian
>>>
>>> On 2/20/2012 9:48 PM, Ashraf Jaddo wrote:
>>>> All,
>>>> I am trying to play an audible DTMF sound and vibrate the device when
>>>> I send a DTMF tone to the server.
>>>> I am using pjsua_cal_dial_dtmf() to send the tone I know it is working
>>>> because I tested it with couple of voice mails and 1 800 numbers..
>>>> Every time I am in a call my audio player and my API to vibrate the
>>>> device stops working. when I hang up and I use the same code it plays
>>>> fine and vibrates the device as expected.
>>>> Is there any limitations with PJSIP or am I doing the wrong thing?
>>>> I am using PJSIP 1.2 and testing on iPhone 4, 4s with iOS 5.
>>>> Best Regards,




[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux