Picture of Christoph Künkel (innovaphone)
Moderator Registered 15 years 125 days
Christoph Künkel (innovaphone) Monday, 4 May 2020, 04:05 PM in response to Pierre 3641
Re: Trigger on call
Pierre,

  • create a PBX (edit: user) that is allowed to monitor all users your are interested in (active in group where others are also group members but not active)
  • call Initialize() on this user
  • start a loop where you call Poll() forever
  • when a result is returned
    • look at the UserInfo. If there is an info regarding that you have not done a UserInitialize for yet, call UserInitialize
    • look at the CallInfos. Do whatever you need to do with that information
  • once in a while, call Echo(). When it fails, close all your connections and restart
You might think to use the Calls() function. Would work but you run the risk to miss some call information in between 2 calls.

Christoph

PS: You might be even better off looking at the PBX CDRs. Depends on what you intend to do.
← You can define your color theme preference here