I made VOIP App.For that i am using PushKit and Callkit with pjsip.
When app in background get notification of call and based on this i open callkit screen and after click on accept call connect using pjsip.
1) call End issue
but when call hangout pjsip call hangout successfully but then callkit give me following error:
error domain=com.apple.callkit.error.requesttransaction code=4
For that i checked answer and end call uuid also same but again not end call.I spent lot of time but not get any solution.
Any one have solution then please help me.
2) Audio issue After Accept call
After Accept call audio is not configure.Audio session give me following error :
audio session error: Error Domain=NSOSStatusErrorDomain Code=561017449 "(null)" [aurioc] 892: failed: '!pri' (enable 3, outf< 1 ch, 44100 Hz, Int16> inf< 1 ch, 44100 Hz, Int16>)
For above error any one have solution then give me.
Thank you.
I fixed it by making the class which contains the CallKit functions as a singleton and never allocate a new instance of it. You can take a look at this helper class:
https://github.com/naandonov-mm/iOS-10-Sampler/tree/master/CallKit