GVoice FreePBX Module Issues

Toggle Google Voice auto answer

Everything PiaF and Google is working well. I guess Google just had some issues that afternoon. I have 4 GV accounts registered. The Google Voice FreePBX module makes it easy to set up multiple accounts and does it so that GV responds very well. This GV module installs code to answer the call and sends the “1” bypassing Googles call screening. This is great if you take all calls from PiaF, but, the downside is you no longer have the option to answer from another phone.. If I step away carrying only my cell, I get 1 ring but can not answer the call. I can disable forwarding to Google Chat when I’m out … but why rely on human memory. Google also now allows you to turn off screening from their web portal.

My Android cell is tightly integrated with Google Voice. GV takes the voicemail for both lines. GV rings both cell and forwarded numbers. If I am on another call or don’t answer within 3 rings my cell number forwards to all GV phones. Very handy and I count on this flexibility.

Feature request … add an option to the GV module to toggle this “press 1” feature. To achieve this now … I copied all Google Voice code from extensions_additional.conf then disabled the Google Voice FreePBX module from “Module Admin” then restarted. This removed all related code from extensions_additional.conf but left everything else including trunks, routes, jabber.conf and everything else necessary. I pasted the copied code to extensions_custom.conf, commented out the following 3 lines …
;exten => ***@gmail.com,n,Answer
;exten => ***@gmail.com,n,Wait(1)
;exten => ***@gmail.com,n,SendDTMF(1)
then restarted. Calls are now handled as I prefer and all Google Voice numbers ring. I can toggle this from the Google Voice web portal or by editing the above 3 lines.

My thanks to everyone involved for such a great PBX experience.
 
Eliminate auto answer from Google Voice module

How to use the Google Voice module panel to set up GV accounts from within FreePBX but maintain call screening. The module currently auto answers the call which eliminates forwarding GV to multiple numbers.

Edit “/var/www/html/admin/modules/googlevoice/functions.inc.php.” First back up the original “functions.inc.php” file. Next find and delete the following lines, then save …

if (true) {
$ext->add($incontext, $address, '', new ext_answer('') );
$ext->add($incontext, $address, '', new ext_wait('1') );
$ext->add($incontext, $address, '', new ext_senddtmf('1') );
}

You can still control this feature from your Google Voice account web portal - Options, Voice settings, Calls tab, Call Screening and click on or off. You also have an option to ask unknown callers to say their name.

To toggle screening within FreePBX you could add a custom destination or call flow control to your Inbound Routes.
 
It turns out I did not do enough testing or reading. Google Voice always requires a press 1 for incoming calls through Google Chat. I wanted the new number I registered for PIAF-Purple to ring without call screening and my other numbers to use call screening. To accomplish this using the Google Voice FreePBX module I added the following to extensions_custom.conf -
[custom-googvoice-a1]
exten => s,1,Answer
exten => s,n,Wait(1)
exten => s,n,SendDTMF(1)
exten => s,n,Goto(ext-group,777,1)

; end of [custom-googvoice-a1]

Set up the following in - "custom destinations" -
custom-googvoice-a1,s,1

From - "Inbound Routes" - I can now choose to send it to this custom destination to bypass call screening or any other available option with call screening.
 
So far a great module. Makes things a ton easier for newer users. I've got incoming working great, which was my issue before, but now I don't have outgoing working. here is a copy of my log of when I try a call out.. Not sure what is causing the all circuits are busy.. The outgoing call macro looks different then from before.

[2011-07-10 20:35:20] VERBOSE[3282] pbx.c: -- Executing [1**********@from-internal:1] Macro("SIP/702-00000009", "user-callerid,SKIPTTL,") in new stack
[2011-07-10 20:35:20] VERBOSE[3282] pbx.c: -- Executing [s@macro-user-callerid:1] Set("SIP/702-00000009", "AMPUSER=702") in new stack
[2011-07-10 20:35:20] VERBOSE[3282] pbx.c: -- Executing [s@macro-user-callerid:2] GotoIf("SIP/702-00000009", "0?report") in new stack
[2011-07-10 20:35:20] VERBOSE[3282] pbx.c: -- Executing [s@macro-user-callerid:3] ExecIf("SIP/702-00000009", "1?Set(REALCALLERIDNUM=702)") in new stack
[2011-07-10 20:35:20] VERBOSE[3282] pbx.c: -- Executing [s@macro-user-callerid:4] Set("SIP/702-00000009", "AMPUSER=702") in new stack
[2011-07-10 20:35:20] VERBOSE[3282] pbx.c: -- Executing [s@macro-user-callerid:5] Set("SIP/702-00000009", "AMPUSERCIDNAME=Monkybros-office") in new stack
[2011-07-10 20:35:20] VERBOSE[3282] pbx.c: -- Executing [s@macro-user-callerid:6] GotoIf("SIP/702-00000009", "0?report") in new stack
[2011-07-10 20:35:20] VERBOSE[3282] pbx.c: -- Executing [s@macro-user-callerid:7] Set("SIP/702-00000009", "AMPUSERCID=702") in new stack
[2011-07-10 20:35:20] VERBOSE[3282] pbx.c: -- Executing [s@macro-user-callerid:8] Set("SIP/702-00000009", "CALLERID(all)="Monkybros-office" <702>") in new stack
[2011-07-10 20:35:20] VERBOSE[3282] pbx.c: -- Executing [s@macro-user-callerid:9] ExecIf("SIP/702-00000009", "0?Set(CHANNEL(language)=)") in new stack
[2011-07-10 20:35:20] VERBOSE[3282] pbx.c: -- Executing [s@macro-user-callerid:10] GotoIf("SIP/702-00000009", "1?continue") in new stack
[2011-07-10 20:35:20] VERBOSE[3282] pbx.c: -- Goto (macro-user-callerid,s,19)
[2011-07-10 20:35:20] VERBOSE[3282] pbx.c: -- Executing [s@macro-user-callerid:19] Set("SIP/702-00000009", "CALLERID(number)=702") in new stack
[2011-07-10 20:35:20] VERBOSE[3282] pbx.c: -- Executing [s@macro-user-callerid:20] Set("SIP/702-00000009", "CALLERID(name)=Monkybros-office") in new stack
[2011-07-10 20:35:20] VERBOSE[3282] pbx.c: -- Executing [s@macro-user-callerid:21] NoOp("SIP/702-00000009", "Using CallerID "Monkybros-office" <702>") in new stack
[2011-07-10 20:35:20] VERBOSE[3282] pbx.c: -- Executing [1**********@from-internal:2] NoOp("SIP/702-00000009", "Calling Out Route: Default") in new stack
[2011-07-10 20:35:20] VERBOSE[3282] pbx.c: -- Executing [1**********@from-internal:3] Set("SIP/702-00000009", "MOHCLASS=default") in new stack
[2011-07-10 20:35:20] VERBOSE[3282] pbx.c: -- Executing [1**********@from-internal:4] Set("SIP/702-00000009", "_NODEST=") in new stack
[2011-07-10 20:35:20] VERBOSE[3282] pbx.c: -- Executing [1**********@from-internal:5] Macro("SIP/702-00000009", "record-enable,702,OUT,") in new stack
[2011-07-10 20:35:20] VERBOSE[3282] pbx.c: -- Executing [s@macro-record-enable:1] GotoIf("SIP/702-00000009", "1?check") in new stack
[2011-07-10 20:35:20] VERBOSE[3282] pbx.c: -- Goto (macro-record-enable,s,4)
[2011-07-10 20:35:20] VERBOSE[3282] pbx.c: -- Executing [s@macro-record-enable:4] ExecIf("SIP/702-00000009", "0?MacroExit()") in new stack
[2011-07-10 20:35:20] VERBOSE[3282] pbx.c: -- Executing [s@macro-record-enable:5] GotoIf("SIP/702-00000009", "0?Group:OUT") in new stack
[2011-07-10 20:35:20] VERBOSE[3282] pbx.c: -- Goto (macro-record-enable,s,15)
[2011-07-10 20:35:20] VERBOSE[3282] pbx.c: -- Executing [s@macro-record-enable:15] GotoIf("SIP/702-00000009", "0?IN") in new stack
[2011-07-10 20:35:20] VERBOSE[3282] pbx.c: -- Executing [s@macro-record-enable:16] ExecIf("SIP/702-00000009", "1?MacroExit()") in new stack
[2011-07-10 20:35:20] VERBOSE[3282] pbx.c: -- Executing [1**********@from-internal:6] Macro("SIP/702-00000009", "outisbusy,") in new stack
[2011-07-10 20:35:20] VERBOSE[3282] pbx.c: -- Executing [s@macro-outisbusy:1] Progress("SIP/702-00000009", "") in new stack
[2011-07-10 20:35:20] VERBOSE[3282] pbx.c: -- Executing [s@macro-outisbusy:2] GotoIf("SIP/702-00000009", "0?emergency,1") in new stack
[2011-07-10 20:35:20] VERBOSE[3282] pbx.c: -- Executing [s@macro-outisbusy:3] GotoIf("SIP/702-00000009", "0?intracompany,1") in new stack
[2011-07-10 20:35:20] VERBOSE[3282] pbx.c: -- Executing [s@macro-outisbusy:4] Playback("SIP/702-00000009", "all-circuits-busy-now&pls-try-call-later, noanswer") in new stack
[2011-07-10 20:35:20] VERBOSE[3282] file.c: -- <SIP/702-00000009> Playing 'all-circuits-busy-now.gsm' (language 'en')
[2011-07-10 20:35:22] VERBOSE[3282] file.c: -- <SIP/702-00000009> Playing 'pls-try-call-later.gsm' (language 'en')
[2011-07-10 20:35:24] VERBOSE[3282] app_macro.c: == Spawn extension (macro-outisbusy, s, 4) exited non-zero on 'SIP/702-00000009' in macro 'outisbusy'
[2011-07-10 20:35:24] VERBOSE[3282] pbx.c: == Spawn extension (from-internal, 1**********, 6) exited non-zero on 'SIP/702-00000009'
[2011-07-10 20:35:24] VERBOSE[3282] pbx.c: -- Executing [h@from-internal:1] Macro("SIP/702-00000009", "hangupcall") in new stack
[2011-07-10 20:35:24] VERBOSE[3282] pbx.c: -- Executing [s@macro-hangupcall:1] GotoIf("SIP/702-00000009", "1?skiprg") in new stack
[2011-07-10 20:35:24] VERBOSE[3282] pbx.c: -- Goto (macro-hangupcall,s,4)
[2011-07-10 20:35:24] VERBOSE[3282] pbx.c: -- Executing [s@macro-hangupcall:4] GotoIf("SIP/702-00000009", "1?skipblkvm") in new stack
[2011-07-10 20:35:24] VERBOSE[3282] pbx.c: -- Goto (macro-hangupcall,s,7)
[2011-07-10 20:35:24] VERBOSE[3282] pbx.c: -- Executing [s@macro-hangupcall:7] GotoIf("SIP/702-00000009", "1?theend") in new stack
[2011-07-10 20:35:24] VERBOSE[3282] pbx.c: -- Goto (macro-hangupcall,s,9)
[2011-07-10 20:35:24] VERBOSE[3282] pbx.c: -- Executing [s@macro-hangupcall:9] Hangup("SIP/702-00000009", "") in new stack
[2011-07-10 20:35:24] VERBOSE[3282] app_macro.c: == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/702-00000009' in macro 'hangupcall'
[2011-07-10 20:35:24] VERBOSE[3282] pbx.c: == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/702-00000009'
 
Has anyone successfully removed the incrediblepbx Google Voice integration and has this module working? Can you post yor process, I removed Jabber contents, removed anything to do with Goole voice from the extension-custom.conf, removed trunks and routes. restarted installed new module, restarted and now am stuck. I can recieve calls but am unable to make calls?


The trick to making outbound calls work again is to remove the Default route in your Outbound Routes. Then it works fine.

Reminder: Be sure to issue amportal restart after adding or changing Google Voice DIDs!
 

Members online

No members online now.

Forum statistics

Threads
26,686
Messages
174,406
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top