sys.GoogleVoiceCall account state tracking

New features you'd like see on SIP Sorcery
Post Reply
bvebve
Posts: 2
Joined: Wed Jun 18, 2008 12:14 pm

sys.GoogleVoiceCall account state tracking

Post by bvebve » Wed Apr 21, 2010 3:12 pm

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?

Aaron
Site Admin
Posts: 4652
Joined: Thu Jul 12, 2007 12:13 am

Re: sys.GoogleVoiceCall account state tracking

Post by Aaron » Thu Apr 22, 2010 1:13 am

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

Post Reply