voximplant / flutter_demos

Voximplant Flutter SDK demos
18 stars 15 forks source link

cannot receive calls. #12

Closed shashoug closed 3 years ago

shashoug commented 3 years ago

Hello guys. I want to use VoxImplant SDK so i can achieve audio calls functionality. i used the demo code and i've tried it. when i tried to implement it on my project i couldn't receive incoming calls. the only functionality that works is making a call. the SDK log: 1 callService(774489783): _onIncomingCall 2 flutter: caller is ***** 3 flutter: [FlutterCallKit:INFO > FCXCallObserver.callChanged: DA1279A6-1BCA-42F3-9F26-000C33000A81] 4 flutter: [FlutterCallKit:INFO > FCXProvider.reportNewIncomingCall] 5 flutter: [FlutterCallKit:INFO > FCXProvider.executeTransaction] 6 flutter: [FlutterCallKit:INFO > FCXTransaction.getActions] 7 flutter: [FlutterCallKit:INFO > FCXProvider.FCXEndCallAction] 8 flutter: -------- call declined ----------- 9 flutter: [FlutterCallKit:INFO > FCXEndCallAction.fulfill] 10 flutter: [FlutterCallKit:INFO > FCXCallObserver.callChanged: DA1279A6-1BCA-42F3-9F26-000C33000A81] [log] CallService(774489783): onCallDisconnected 11 flutter: call ended because FCXCallEndedReason.remoteEnded

it seems like all incoming calls are rejected before incomingCall event launches the widget. any help guys?

VladimirBrejcha commented 3 years ago

@Shashoug it looks like a bug in your application, the incoming call ends somewhere in the code. Since our demo needs to work one call at a time, it always ends calls if there is an active call. You may have forgotten somewhere to clear an old call, so all new calls are terminated immediately

shashoug commented 3 years ago

Thanks for your reply Vladimir. I used the sample code you provided and ends up with the same scenario, cannot make calls from iOS to android with the same result.

On Mon, 1 Mar 2021 at 18:45 Vladimir Korolev notifications@github.com wrote:

@Shashoug https://github.com/Shashoug it looks like a bug in your application, the incoming call ends somewhere in the code. Since our demo needs to work one call at a time, it always ends calls if there is an active call. You may have forgotten somewhere to clear an old call, so all new calls are terminated immediately

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/voximplant/flutter_voximplant/issues/17#issuecomment-788096872, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGZ52ATBFDX6JJWIR4X6B63TBPAC3ANCNFSM4XHBIIEA .

VladimirBrejcha commented 3 years ago

@Shashoug thank you for the feedback! Could you please provide steps to reproduce the error so I can find it

shashoug commented 3 years ago

Thanks in advance Vladimir Can you provide me with the proper me with scenario of receiving and making calls in the dashboard? I looked up online but i think the problem is on my scenario.

On Wed, 3 Mar 2021 at 11:28 Vladimir Korolev notifications@github.com wrote:

@Shashoug https://github.com/Shashoug thank you for the feedback! Could you please provide steps to reproduce the error so I can find it

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/voximplant/flutter_demos/issues/12#issuecomment-789571595, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGZ52AQVIVSIDOU7AQFUOL3TBX6KHANCNFSM4YPBY5MA .

VladimirBrejcha commented 3 years ago

@Shashoug Did you try this one?


VoxEngine.addEventListener(AppEvents.CallAlerting, (e) => {
const newCall = VoxEngine.callUserDirect(
  e.call, 
  e.destination,
  e.callerid,
  e.displayName,
  null
);
VoxEngine.easyProcess(e.call, newCall, ()=>{}, true);
});
VladimirBrejcha commented 3 years ago

Close due to inactivity