Mobile Get CallerID?

For students who study 1C Senior course.

#1
People who like this:0Yes/0No
Just came
Rating: 0
Joined: Nov 4, 2020
Company:

How can i get caller id for incoming call ?

 
#2
People who like this:0Yes/0No
Active user
1C:Professional
Rating: 6
Joined: May 8, 2013
Company: 1C Company

Hello Orhan,

You need to attach the phone call handler - an event that is triggered every time the mobile device receives a call.

Code
&OnClient
AttachCallHandler(ConnectHandler)
  If NO TelephonyTools.CallsHandlingSupported() Then
    // call processing is not supported
    Return;
  EndIf;
  Handler = New NotifyDescription("CallsProcessing", ThisObject, "Parameters");
  If ProcessCallEvents Then
    TelephonyTools.AttachCallsHandler(Handler);
  Else
    TelephonyTools.DetachCallsHandler();
  EndIf;
EndProcedure

CallHandlerProcedure(PhoneNumber, Date, Event Option, CallType, AdditionalParameters) Export
  // Write your code here
EndProcedure

Edited: Konstantin Rupasov - Nov 07, 2020 04:37 AM
 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.