Hi Denis,
On Mon, Feb 7, 2011 at 10:05 PM, Denis Kenzior <denk...@gmail.com> wrote: > Hi Andre, > > On 02/07/2011 02:37 PM, andre matos wrote: > > Hi Denis, > > > > On Mon, Feb 7, 2011 at 8:46 PM, Denis Kenzior <denk...@gmail.com > > <mailto:denk...@gmail.com>> wrote: > > > > Hi Andre, > > > > > @@ -1350,11 +1351,12 @@ static DBusMessage > > *manager_transfer(DBusConnection *conn, > > > * implementing the call transfer operation for a call that > is > > > * still dialing/alerting. > > > */ > > > - numactive += voicecalls_num_connecting(vc); > > > + numconn = voicecalls_num_connecting(vc); > > > > > > numheld = voicecalls_num_held(vc); > > > > > > - if ((numactive != 1) && (numheld != 1)) > > > > I don't get it, isn't the above condition taking care of this > already? > > Its been a while but the precondition of ECT is: > > > > Held Call > > Outgoing or an Active call. You cannot have an Outgoing and an > Active > > call at the same time. Hence numactive == 1 && numheld == 1 should > work > > just fine. > > > > > > What you wrote is correct. transfer works when it supposed to work. > > > > The changes i did takes care of the negative cases. > > This means calling transfer should fail if we have: > > multiparty call active and one held call > > if mpty is an active call, then numactive would be > 1 -> fail to invoke > ECT > Are we reading the same code? for this case we have: numactive != 1 ==> true numheld != 1 ==> false (numactive != 1) && (numheld != 1) ==> false in this case "return __ofono_error_failed(msg);" is not called and the at command is sent to modem. I know the correct conditions for ECT. I am avoiding sending to the modem unnecessary commands. Why should i ask the modem to invoke ECT if i already know it is going to fail for a multiparty call. Best regards, André
_______________________________________________ ofono mailing list ofono@ofono.org http://lists.ofono.org/listinfo/ofono