ios 10 no audio

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

 



Hi,

I still have issues with audio after reading this post:


I've compiled pjsip 2.5.5 today. After reading this: https://trac.pjsip.org/repos/ticket/1941 We're still working on a CallKit solution, but before we finish that, we would like to have the app just run without it. I would like to know if we're forgetting something.

This is what we've done so far:

Steps:

pjsua_start();

// disabling sound:
pjsua_set_no_snd_dev();

When starting call, before calling pjsua_make_call(), I run this code:

NSError *audioSessionCategoryError;
    [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayAndRecord withOptions:AVAudioSessionCategoryOptionAllowBluetooth error:&audioSessionCategoryError]; // no error

    if (audioSessionCategoryError) {
        DDLogError(@"Error setting the correct AVAudioSession category"); 
    }

    NSError *audioSessionModeError;
    [[AVAudioSession sharedInstance] setMode:AVAudioSessionModeVoiceChat error:&audioSessionModeError]; // no error

    if (audioSessionModeError) {
        DDLogError(@"Error setting the correct AVAudioSession mode");
    }

    pj_status_t status;
    status = pjsua_set_snd_dev(PJMEDIA_AUD_DEFAULT_CAPTURE_DEV, PJMEDIA_AUD_DEFAULT_PLAYBACK_DEV); // Error: pjsua_aud.c  .Error retrieving default audio device parameters: Unable to find default audio device (PJMEDIA_EAUD_NODEFDEV) [status=420006]

Part of the logging:

2016-11-01 16:03:58.869904 VialerSIPLib_Example[1773:370077] Creating new PJSIP Endpoint instance.
16:03:58.872 os_core_unix.c !pjlib 2.5.5-svn for POSIX initialized
16:03:58.875 sip_endpoint.c  .Creating endpoint instance...
16:03:58.879          pjlib  .select() I/O Queue created (0x102c430d8)
16:03:58.879 sip_endpoint.c  .Module "mod-msg-print" registered
16:03:58.879 sip_transport.  .Transport manager created.
16:03:58.880   pjsua_core.c  .PJSUA state changed: NULL --> CREATED
2016-11-01 16:03:58:868 VialerSIPLib_Example[1773:369830] Creating new PJSIP Endpoint instance.
2016-11-01 16:03:58.884128 VialerSIPLib_Example[1773:370075] sip_endpoint.c  .Module "mod-pjsua-log" registered
2016-11-01 16:03:58:881 VialerSIPLib_Example[1773:369830] sip_endpoint.c  .Module "mod-pjsua-log" registered
2016-11-01 16:03:58.884846 VialerSIPLib_Example[1773:370077] sip_endpoint.c  .Module "mod-tsx-layer" registered
2016-11-01 16:03:58:881 VialerSIPLib_Example[1773:369830] sip_endpoint.c  .Module "mod-tsx-layer" registered
2016-11-01 16:03:58.885181 VialerSIPLib_Example[1773:370075] sip_endpoint.c  .Module "mod-stateful-util" registered
2016-11-01 16:03:58:882 VialerSIPLib_Example[1773:369830] sip_endpoint.c  .Module "mod-stateful-util" registered
2016-11-01 16:03:58.889003 VialerSIPLib_Example[1773:370077] sip_endpoint.c  .Module "mod-ua" registered
2016-11-01 16:03:58:883 VialerSIPLib_Example[1773:369830] sip_endpoint.c  .Module "mod-ua" registered
2016-11-01 16:03:58.889308 VialerSIPLib_Example[1773:370075] sip_endpoint.c  .Module "mod-100rel" registered
2016-11-01 16:03:58:883 VialerSIPLib_Example[1773:369830] sip_endpoint.c  .Module "mod-100rel" registered
2016-11-01 16:03:58.889447 VialerSIPLib_Example[1773:370077] sip_endpoint.c  .Module "mod-pjsua" registered
2016-11-01 16:03:58:883 VialerSIPLib_Example[1773:369830] sip_endpoint.c  .Module "mod-pjsua" registered
2016-11-01 16:03:58.889620 VialerSIPLib_Example[1773:370075] sip_endpoint.c  .Module "mod-invite" registered
2016-11-01 16:03:58:884 VialerSIPLib_Example[1773:369830] sip_endpoint.c  .Module "mod-invite" registered
2016-11-01 16:03:58.889888 VialerSIPLib_Example[1773:370077]          pjlib  ..select() I/O Queue created (0x124040e28)
2016-11-01 16:03:58:887 VialerSIPLib_Example[1773:369830]          pjlib  ..select() I/O Queue created (0x124040e28)
WARNING: no real random source present!
2016-11-01 16:03:58.896354 VialerSIPLib_Example[1773:370075] sip_endpoint.c  .Module "mod-evsub" registered
2016-11-01 16:03:58:896 VialerSIPLib_Example[1773:369830] sip_endpoint.c  .Module "mod-evsub" registered
2016-11-01 16:03:58.896841 VialerSIPLib_Example[1773:370077] sip_endpoint.c  .Module "mod-presence" registered
2016-11-01 16:03:58:896 VialerSIPLib_Example[1773:369830] sip_endpoint.c  .Module "mod-presence" registered
2016-11-01 16:03:58.897160 VialerSIPLib_Example[1773:370075] sip_endpoint.c  .Module "mod-mwi" registered
2016-11-01 16:03:58:896 VialerSIPLib_Example[1773:369830] sip_endpoint.c  .Module "mod-mwi" registered
2016-11-01 16:03:58.897387 VialerSIPLib_Example[1773:370077] sip_endpoint.c  .Module "mod-refer" registered
2016-11-01 16:03:58:896 VialerSIPLib_Example[1773:369830] sip_endpoint.c  .Module "mod-refer" registered
2016-11-01 16:03:58.899189 VialerSIPLib_Example[1773:370077] sip_endpoint.c  .Module "mod-pjsua-pres" registered
2016-11-01 16:03:58:897 VialerSIPLib_Example[1773:369830] sip_endpoint.c  .Module "mod-pjsua-pres" registered
2016-11-01 16:03:58.899343 VialerSIPLib_Example[1773:370075] sip_endpoint.c  .Module "mod-pjsua-im" registered
2016-11-01 16:03:58:897 VialerSIPLib_Example[1773:369830] sip_endpoint.c  .Module "mod-pjsua-im" registered
2016-11-01 16:03:58.899514 VialerSIPLib_Example[1773:370077] sip_endpoint.c  .Module "mod-pjsua-options" registered
2016-11-01 16:03:58:897 VialerSIPLib_Example[1773:369830] sip_endpoint.c  .Module "mod-pjsua-options" registered
2016-11-01 16:03:58.899696 VialerSIPLib_Example[1773:370075]   pjsua_core.c  .1 SIP worker threads created
2016-11-01 16:03:58:897 VialerSIPLib_Example[1773:369830]   pjsua_core.c  .1 SIP worker threads created
2016-11-01 16:03:58.899823 VialerSIPLib_Example[1773:370077]   pjsua_core.c  .pjsua version 2.5.5-svn for iOS-10.1/arm-iPhone7,1/iOS-SDK-10.1 initialized
2016-11-01 16:03:58:897 VialerSIPLib_Example[1773:369830]   pjsua_core.c  .pjsua version 2.5.5-svn for iOS-10.1/arm-iPhone7,1/iOS-SDK-10.1 initialized
2016-11-01 16:03:58.940620 VialerSIPLib_Example[1773:370075]   pjsua_core.c  .PJSUA state changed: CREATED --> INIT
2016-11-01 16:03:58:897 VialerSIPLib_Example[1773:369830]   pjsua_core.c  .PJSUA state changed: CREATED --> INIT
2016-11-01 16:03:58.945573 VialerSIPLib_Example[1773:370077]    tcptp:58940  SIP TCP listener ready for incoming connections at 192.168.22.186:58940
2016-11-01 16:03:58:907 VialerSIPLib_Example[1773:369830]    tcptp:58940  SIP TCP listener ready for incoming connections at 192.168.22.186:58940
2016-11-01 16:03:58.946091 VialerSIPLib_Example[1773:370075]   pjsua_core.c  SIP UDP socket reachable at 192.168.22.186:55656
2016-11-01 16:03:58:907 VialerSIPLib_Example[1773:369830]   pjsua_core.c  SIP UDP socket reachable at 192.168.22.186:55656
2016-11-01 16:03:58:907 VialerSIPLib_Example[1773:369830] udp0x123d19f70  SIP UDP transport started, published address is 192.168.22.186:55656
2016-11-01 16:03:58.955995 VialerSIPLib_Example[1773:370075] udp0x123d19f70  SIP UDP transport started, published address is 192.168.22.186:55656
2016-11-01 16:03:58:907 VialerSIPLib_Example[1773:369830]   pjsua_core.c  PJSUA state changed: INIT --> STARTING
2016-11-01 16:03:58.956514 VialerSIPLib_Example[1773:370075]   pjsua_core.c  PJSUA state changed: INIT --> STARTING
2016-11-01 16:03:58:908 VialerSIPLib_Example[1773:369830] sip_endpoint.c  .Module "mod-unsolicited-mwi" registered
2016-11-01 16:03:58.956831 VialerSIPLib_Example[1773:370075] sip_endpoint.c  .Module "mod-unsolicited-mwi" registered
2016-11-01 16:03:58.956956 VialerSIPLib_Example[1773:370075]   pjsua_core.c  .PJSUA state changed: STARTING --> RUNNING
2016-11-01 16:03:58:908 VialerSIPLib_Example[1773:369830]   pjsua_core.c  .PJSUA state changed: STARTING --> RUNNING
2016-11-01 16:03:58.957162 VialerSIPLib_Example[1773:370077] PJSIP Endpoint started succesfully
2016-11-01 16:03:58:908 VialerSIPLib_Example[1773:369830] PJSIP Endpoint started succesfully
2016-11-01 16:04:04.553837 VialerSIPLib_Example[1773:370085]    pjsua_aud.c  Set sound device: capture=-1, playback=-2
2016-11-01 16:04:04:553 VialerSIPLib_Example[1773:369830]    pjsua_aud.c  Set sound device: capture=-1, playback=-2
2016-11-01 16:04:04.555336 VialerSIPLib_Example[1773:370074]    pjsua_aud.c  .Error retrieving default audio device parameters: Unable to find default audio device (PJMEDIA_EAUD_NODEFDEV) [status=420006]
2016-11-01 16:04:04:554 VialerSIPLib_Example[1773:369830]    pjsua_aud.c  .Error retrieving default audio device parameters: Unable to find default audio device (PJMEDIA_EAUD_NODEFDEV) [status=420006]

Kind regards,

Bob Voorneveld
_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[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