Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic New feature request (PhonerLite) (Read 2569 times)
Eugene Eremin
YaBB Newbies
*
Offline


Phoner is great!

Posts: 2
Joined: 10. Nov 2022
New feature request (PhonerLite)
10. Nov 2022 at 11:22
Print Post  
It would be great to add an option to the "external programs" menu to launch the program on the "unanswered call" event. This would make it possible to implement, for example, notification of missed calls by sending a message via some messenger (like telegram).
  
Back to top
 
IP Logged
 
Phoner Admin
YaBB Administrator
*****
Offline



Posts: 11389
Location: Germany
Joined: 12. Oct 2003
Gender: Male
Re: New feature request (PhonerLite)
Reply #1 - 10. Nov 2022 at 11:35
Print Post  
That sounds interesting. I will think about it.

Did you realize that PhonerLite has a built in command line interface (CLI)? In the latest beta version sending emails is implemented. You can create a sample script for a simple answering machine with email notification.
Now I think about integrating Telegram notification by that CLI.  Roll Eyes
  
Back to top
WWW  
IP Logged
 
Phoner Admin
YaBB Administrator
*****
Offline



Posts: 11389
Location: Germany
Joined: 12. Oct 2003
Gender: Male
Re: New feature request (PhonerLite)
Reply #2 - 10. Nov 2022 at 12:04
Print Post  
Right now you can do your suggested task without any modification in PhonerLite by using a script. That would like this:
Code
Select All
Print waiting for call
Wait HasCall
If !IsIncoming
  Print wait until outgoing call ends
  Wait !HasCall
  Print outgoing call ended - restart
  Load %LOAD_FILE%
EndIf
Print Incoming call available
Wait !HasCall,StateIsActive
If StateIsActive
  Print incoming call was answered. Wait for call termination
  Wait !HasCall
  Print incoming call ended - restart
  Load %LOAD_FILE%
Else
  Print Call ended unanswered. Put here some action like "Exec myapp.exe %LAST_PEER%"
  Load %LOAD_FILE%
EndIf
 


You can save that in a text file (e.g. "script_unanswered.txt") and in PhonerLite at the CLI prompt you enter "load script_unanswered.txt". You can put the name of the script in the field "Startup script" to load it automatically.
  
Back to top
WWW  
IP Logged
 
Eugene Eremin
YaBB Newbies
*
Offline


Phoner is great!

Posts: 2
Joined: 10. Nov 2022
Re: New feature request (PhonerLite)
Reply #3 - 11. Nov 2022 at 14:21
Print Post  
Thank you! It is the solution!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint