2

I'm trying to merge two GSM calls into conference programmatically.

In Call class is method conference() but I'm not sure how to correctly work with it. I tried several ways but nothing work successfully.

I have class CallService (implements InCallService)

And in method override fun onCallAdded(call: Call)

I tried something like this:

    activeCall.hold()

    secondCall.answer(VideoProfile.STATE_AUDIO_ONLY)

    secondCall.conference(activeCall) 
    secondCall.mergeConference()

But it will not create a conference call (the first call is set as busy). I tried several changes in that code but nothing work.

I also find this how to merge call programmatically in android- conference-call and this How to merge Call programmatically while other call is running (Conference call) but it's not helped (and it's a little old)

Thanks for help

Pepa Zapletal
  • 2,879
  • 3
  • 39
  • 69

1 Answers1

0

You have to use this two method to merge calls. Call.conference and Call.mergeConference method.

You can see the basic examples of inCallService api in this project. https://github.com/HiddenPirates/Dialer

Nur Alam
  • 192
  • 2
  • 8