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, > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org _______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip at lists.pjsip.org http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org