Author Topic: embedding Yateclient with rmanager controls  (Read 4278 times)

brad

  • Newbie
  • *
  • Posts: 1
    • View Profile
embedding Yateclient with rmanager controls
« on: November 28, 2017, 10:01:26 PM »
I'm embedding yateclient in a small Linux headless machine.  I can use rmanager via telnet to initiate calls (using call) and status cdrbuild to watch for incoming calls.  I'd prefer to not 'auto answer' inbound calls, rather, I'd like to be able to control when and if the call is answered via rmanager.   

Is there a parameter that I can set via the rmanager interface to change the current cdr status from 'ringing' to 'answered'?

marian

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: embedding Yateclient with rmanager controls
« Reply #1 on: November 29, 2017, 02:36:10 AM »
I suppose you are routing incoming calls to an audio device module (alsachan).
You may add an autoanswer=no parameter when routing the call.

You need some logic to anwer calls on demand.
You may write a javascript script to track calls (you may use call.cdr for that, 'chan' parameter is what you need.
The script should implement a command to answer (just send a chan.masquerade message with call,answered) a specific channel id.