I am not sure I follow what you are saying.. is there any code example about this? Best Regards, -----Original Message----- From: Jeff Brower Sent: Tuesday, February 21, 2012 2:04 PM To: Ashraf Jaddo Cc: pjsip at lists.pjsip.org Subject: Re: Cannot Play Audio or Vibrate iPhone while in call Ashraf- > We are using GSM now.. and I am not sure if we can force > the client to switch to G711. Ok, in that case you can find where GSM is decoded; i.e. just before it's sent to the AudioServices play API, and replace the payload data with your required tone data. -Jeff > -----Original Message----- > From: Jeff Brower > Sent: Tuesday, February 21, 2012 12:28 PM > To: Ashraf Jaddo > Cc: pjsip at lists.pjsip.org > Subject: Re: Cannot Play Audio or Vibrate iPhone while in call > > 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, > >