Valentino.b
Member
Hi all
I would like to create an APP to forward an incoming call.
F.e., after working-hours, if the call coming from a specific number or a list of numbers or a prefix, then I need to forward the call to another number.
With this cose I'm able to intercept the call and the caller.
But how can I forward the call to another mobile (or not mobile) number?
I not want for forward ALL incoming calls (using *21** code)
I would like to create an APP to forward an incoming call.
F.e., after working-hours, if the call coming from a specific number or a list of numbers or a prefix, then I need to forward the call to another number.
B4X:
Dim PE As PhoneEvents
Sub PE_PhoneStateChanged (State As String, IncomingNumber As String, Intent As Intent)
Log("Status is " & State & ".")
If State = "RINGING" Then
If IncomingNumber = "++443219876543" and DateTime.Date(DateTime.now) > cTimeStopWork Then
------>FORWARD
End If
End If
End Sub
With this cose I'm able to intercept the call and the caller.
But how can I forward the call to another mobile (or not mobile) number?
I not want for forward ALL incoming calls (using *21** code)