brain-hacker-antilammer / pygooglevoice

Automatically exported from code.google.com/p/pygooglevoice
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

No way to hang up GV call from PBX #29

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When I make a call using GV using my PBX in a Flash system, if I hang up on 
my end, and I especially see it when I hang up before the call goes through, 
it continues the call anyway.
Is there any way to get it to hang GV up when I hang up a phone?
Thanks.

Original issue reported on code.google.com by ytlev...@gmail.com on 14 Dec 2009 at 2:04

GoogleCodeExporter commented 9 years ago
You could set a hook into asterisk that would execute the gvoice cancel method 
on that 
phone call. Its an easy command to execute, but i have no idea how to hook it 
into 
asterisk.

Original comment by justquick on 14 Dec 2009 at 4:25

GoogleCodeExporter commented 9 years ago
If you are bridging your incoming gv call with the channel that initiated the 
gvdial,
insert a gv cancel command after the bridge finishes execution. This will 
instruct gv
to drop the call.

exten => gv_incoming, n, Set(GVCMD=gvoice --email=${ACCTNAME} 
--password=${ACCTPASS}
-b cancel)
exten => gv_incoming, n, GotoIf($[${CALLERID(num)} = ${GVNUMBER}]?:normalcall)
exten => gv_incoming, n, NoCDR()
exten => gv_incoming, n, Bridge(${DB_DELETE(gv_dialout/channel)})
exten => gv_incoming, n, System(${GVCMD})
exten => gv_incoming, n, Hangup()
exten => gv_incoming,n(normalcall),Dial(SIP/destination)
exten => gv_incoming, n, Hangup()

Original comment by barak.sh...@gmail.com on 23 Dec 2009 at 9:22

GoogleCodeExporter commented 9 years ago
I was told that that code would only work for Asterisk 1.6.
My current PBX in a Flash system uses Asterisk 1.4.
Is there any way to get this code for Asterisk 1.4?
Thanks!

Original comment by ytlev...@gmail.com on 30 Dec 2009 at 1:34

GoogleCodeExporter commented 9 years ago
have u figured out how to get it to work?

Original comment by st3amco0...@gmail.com on 16 Feb 2010 at 9:11

GoogleCodeExporter commented 9 years ago
I haven't...

Original comment by ytlev...@gmail.com on 17 Feb 2010 at 12:06