pjsip Digest, Vol 73, Issue 47

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

 



Hi Ming,
Here is a post from another user that better describes the issue I'm seeing:

 Do you plan to handle AVAudioSessionMediaServicesWereResetNotification
( link :
https://developer.apple.com/library/ios/documentation/AVFoundation/Reference/AVAudioSession_ClassReference/Reference/Reference.html#//apple_ref/c/data/AVAudioSessionMediaServicesWereResetNotification
)?

Maybe it is not required based on the WWDC2013 video 602's (titled : What?s
New in Core Audio for iOS) speaker's comments (you can read his coments
below), but if you think so, please implement it's handling.

If you haven't implemented it's handling yet, and you think that it is
required than my question is : When will it be Production Ready?

Here is the speaker's comments from the video :
"One other bit of a housekeeping here : you can make your application more
roboust if you handle MediaServicesReset "correctly". It's a little bit
hard to test this sometimes... ooops... aaaa... but aaaa.... I find my way
back... ammm.... but... if you implement this your application will
survive... hahahahah....

So... when this happens you will find out that all of your inter-app audio
connections have been broken; the component instances have been invalidated.

So in a host application you should dispose your node audio unit AURemoteIO
and in a node application you should also dispose your AURemoteIO; So in
general it's simplest to dispose your entire audio engine including those
Apple Audio Objects and then start over from scratch as if your app has
just been launched. That's the simplest way to roboustly handle the
MediaServicesBeenReset."



On Thu, Sep 19, 2013 at 8:38 AM, <pjsip-request at lists.pjsip.org> wrote:

> Send pjsip mailing list submissions to
>         pjsip at lists.pjsip.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
> or, via email, send a message with subject or body 'help' to
>         pjsip-request at lists.pjsip.org
>
> You can reach the person managing the list at
>         pjsip-owner at lists.pjsip.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of pjsip digest..."
>
>
> Today's Topics:
>
>    1. Re: Issue with changeset 4590 - Unable to open sound device
>       on iphone 5 ios 7 (GM) (Ming)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 19 Sep 2013 13:38:19 +0800
> From: Ming <ming@xxxxxxxxx>
> To: pjsip list <pjsip at lists.pjsip.org>
> Subject: Re: Issue with changeset 4590 - Unable to open sound
>         device on iphone 5 ios 7 (GM)
> Message-ID:
>         <
> CAPimFqAkdd_Svo3s+BLKjAeObt+AvGrM1n-NXv0+KURfA+LYzg at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi Yosi,
>
> I just tried ipjsua on iPhone 4S running iOS7 and it worked fine so have
> you managed to try with the release version?
>
> Please note that with the above changeset, PJSIP no longer calls Audio
> Session API, so application will need to do its own audio session
> management.
> If only for testing basic outgoing/incoming calls, the default audio
> session behavior (i.e. no application-level audio session management) seems
> to be sufficient.
> Reference:
>
> https://developer.apple.com/library/IOS/documentation/Audio/Conceptual/AudioSessionProgrammingGuide/Basics/Basics.html#//apple_ref/doc/uid/TP40007875-CH2-SW4
>
> Regards,
> Ming
>
>
> On Mon, Sep 16, 2013 at 5:47 AM, Yosi Taguri <yosi at taguri.com> wrote:
>
> >
> > Hi,
> > I tracked this issue down to r4590 (
> > http://trac.pjsip.org/repos/changeset/4590) .
> > For some reason the device can't open the sound and shows the following
> > log, it happens only on the device (iphone 5 or ipad mini) running ios7
> GM.
> > It works fine on simulator.
> >
> > 2013-09-16 00:45:48:735 Yalo[323:60b] 972544816020 00:45:48.729
> > pjsua_aud.c  .Set sound device: capture=-1, playback=-2
> >
> >
> > 2013-09-16 00:45:48:746 Yalo[323:60b] 972544816020 00:45:48.735
> > pjsua_aud.c  ..Opening sound device PCM at 16000/1/20ms
> >
> >
> > 2013-09-16 00:45:48:763 Yalo[323:60b] 972544816020 00:45:48.746
> > coreaudio_dev.  ...Using VoiceProcessingIO audio unit
> >
> >
> > 2013-09-16 00:45:49.090 Yalo[323:60b] 00:45:49.090 ERROR:
> [0x3d31818c]
> > 1207: AUIOClient_StartIO failed (560034163)
> >
> > 2013-09-16 00:45:49:098 Yalo[323:60b] 972544816020 00:45:49.092
> > pjsua_aud.c  ..Opening sound device PCM at 44100/1/20ms
> >
> >
> > 2013-09-16 00:45:49:104 Yalo[323:60b] 972544816020 00:45:49.098
> > coreaudio_dev.  ...Using VoiceProcessingIO audio unit
> >
> >
> > 2013-09-16 00:45:49.185 Yalo[323:60b] 00:45:49.185 ERROR:
> [0x3d31818c]
> > 1207: AUIOClient_StartIO failed (560034163)
> >
> > 2013-09-16 00:45:49:192 Yalo[323:60b] 972544816020 00:45:49.187
> > pjsua_aud.c  ..Opening sound device PCM at 48000/1/20ms
> >
> >
> > 2013-09-16 00:45:49:206 Yalo[323:60b] 972544816020 00:45:49.192
> > coreaudio_dev.  ...Using VoiceProcessingIO audio unit
> >
> >
> > 2013-09-16 00:45:49.276 Yalo[323:60b] 00:45:49.276 ERROR:
> [0x3d31818c]
> > 1207: AUIOClient_StartIO failed (560034163)
> >
> > 2013-09-16 00:45:49:284 Yalo[323:60b] 972544816020 00:45:49.278
> > pjsua_aud.c  ..Opening sound device PCM at 32000/1/20ms
> >
> >
> > 2013-09-16 00:45:49:308 Yalo[323:60b] 972544816020 00:45:49.284
> > coreaudio_dev.  ...Using VoiceProcessingIO audio unit
> >
> >
> > 2013-09-16 00:45:49.368 Yalo[323:60b] 00:45:49.368 ERROR:
> [0x3d31818c]
> > 1207: AUIOClient_StartIO failed (560034163)
> >
> > 2013-09-16 00:45:49:379 Yalo[323:60b] 972544816020 00:45:49.370
> > pjsua_aud.c  ..Opening sound device PCM at 16000/1/20ms
> >
> >
> > 2013-09-16 00:45:49:411 Yalo[323:60b] 972544816020 00:45:49.379
> > coreaudio_dev.  ...Using VoiceProcessingIO audio unit
> >
> >
> > 2013-09-16 00:45:49.460 Yalo[323:60b] 00:45:49.460 ERROR:
> [0x3d31818c]
> > 1207: AUIOClient_StartIO failed (560034163)
> >
> > 2013-09-16 00:45:49:471 Yalo[323:60b] 972544816020 00:45:49.462
> > pjsua_aud.c  ..Opening sound device PCM at 8000/1/20ms
> >
> >
> > 2013-09-16 00:45:49:482 Yalo[323:60b] 972544816020 00:45:49.471
> > coreaudio_dev.  ...Using VoiceProcessingIO audio unit
> >
> >
> > 2013-09-16 00:45:49.553 Yalo[323:60b] 00:45:49.553 ERROR:
> [0x3d31818c]
> > 1207: AUIOClient_StartIO failed (560034163)
> >
> > 2013-09-16 00:45:49:561 Yalo[323:60b] 972544816020 00:45:49.554
> > pjsua_aud.c  ..Unable to open sound device: Unknown error -559594163
> > [status=-559594163]
> >
> >
> > 2013-09-16 00:45:49:571 Yalo[323:60b] 972544816020 00:45:49.561
> > call.m  Error making call: Unknown error -559594163 [status=-559594163]
> >
> >
> >
> >
> > _______________________________________________
> > 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
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130919/dbe71803/attachment.html
> >
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>
> ------------------------------
>
> End of pjsip Digest, Vol 73, Issue 47
> *************************************
>



-- 
-- 
Yosi Taguri | Co-Founder | Labgoo | iPhone: http://ahhhpah.com | twitter:
http://twitter.com/yosit | Mobile: +972-54-4816020 | Google Voice US
Mobile: +1 (415) 935-1126 | Email: yosi at taguri.com

*Confidential*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20131004/5bd509e5/attachment-0001.html>


[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