Congratulations for this magnific service.
OUTGOING CALLS: I have few GV accounts and I want to try the next when the first one is in use. The rotation mechanism doesn't matter. Of course, I don´t want to wait for the time out.
So, I can save the GV account state (flag it "inuse") to the DB but then I will need to catch the BYE signal to clear the state on the DB (flag it "available").
INCOMING CALLS: Similar to above example ..... also track the GV account state to avoid using this account if an incomming call with that account is in progress.
Do you think it´s possible?
sys.GoogleVoiceCall account state tracking
Re: sys.GoogleVoiceCall account state tracking
There's currently no way to do any processing when a call is hungup. You could check the in progress call count using sys.GetCurrentCallCount() at the start of your dialplan and update your state that way. It's not exactly what you are after but maybe it will be useful.
Regards,
Aaron
Regards,
Aaron