Desktop version

Main > Forum > Learning > 1C Senior Developer Course > Mobile Get CallerID?

Forum

Search UsersRules
Mobile Get CallerID?
#1
Just came
Points:: 0
Joined:: Nov 4, 2020

How can i get caller id for incoming call ?

Profile
#2
Active user
Points:: 0
Joined:: May 8, 2013

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

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.