MOH for Google outbound waiting

oab2

New Member
Joined
Dec 15, 2010
Messages
7
Reaction score
0
I had a previous (1.7.5.5.3) install that I had patched to get it to work on gvoice outbound calls. I just did a complete new install with 1.7.5.5.5 and noticed that now when I place a call with my gvoice it tells me to wait and then plays a beep.gsm sound before connecting my outbound call.

How can I change it back to playing MOH while the gvoice is being connected? I use gvoice for VmX Locater and the beep tone confuses callers, they think they should leave a message.

Here is my old extensions_custom.conf
Code:
[gvoice-USERID]
exten => _X.,1,System(gvoice -e [email protected] -p PASSWORD call ${EXTEN} [email protected] 9 &)
exten => _X.,n,Set(DB(gv_dialout_USERID/channel)=${CHANNEL})
exten => _X.,n,MusicOnHold(connect-gv,20)
exten => _X.,n,Noop(Never received callback from Google Voice on channel ${DB_DELETE(gv_dialout_USERID/channel)} – exiting)
exten => h,1,GotoIf($["${CHANNEL(state)}" = "Ring"]?:bridged)
exten => h,n,Noop(Hangup on channel ${DB_DELETE(gv_dialout_USERID/channel)})
exten => h,n,System(gvoice -e [email protected] -p PASSWORD cancel &)
exten => h,n,Hangup()
exten => h,n(bridged),Noop(The channel has been bridged successfully)

[gvoice-return-USERID]
exten => s,1,NoCDR()
exten => s,n,Bridge(${DB_DELETE(gv_dialout_USERID/channel)})
New extensions_custom.conf
Code:
[gvoice-USERID]
exten => _X.,1,System(sudo /usr/bin/gvoice -e [email protected] -p PASSWORD call ${EXTEN} [email protected] 9 &)
exten => _X.,n,Background(pls-wait-connect-call)
exten => _X.,n,Set(DB(gv_dialout_USERID/channel)=${CHANNEL})
exten => _X.,n,Wait(30)
exten => _X.,n,Noop(Never received callback from Google Voice on channel ${DB_DELETE(gv_dialout_USERID/channel)} – exiting)
exten => h,1,GotoIf($["${CHANNEL(state)}" = "Ring"]?:bridged)
exten => h,n,Noop(Hangup on channel ${DB_DELETE(gv_dialout_USERID/channel)})
exten => h,n,System(sudo /usr/bin/gvoice -e [email protected] -p PASSWORD cancel &)
exten => h,n,Hangup()
exten => h,n(bridged),Noop(The channel has been bridged successfully)
 
Hmm..The callback method was phased out a while ago. Did you just copy over your configs from the old box?
 
See my posts here for an updated (and verified working) Google Voice configuration. As I said, the callback is no longer needed. Can you please post the output of 'status'?
 
Last edited by a moderator:
Hmm..The callback method was phased out a while ago. Did you just copy over your configs from the old box?

No, the new config is from a clean install of purple today. The "old" configs were from a install back in December. It was then that I had to do a fix to get gvoice working again and that was the fix suggested.
 
I would do a backup of your extensions_custom.conf (Try cp extensions_custom.conf extensions_custom.conf.BAK) and then replace your [gvoice-USERID] section with the [gvoice-USERID] section from my post above and try and see if it works that way. There is no need for a callback anymore, and shouldn't need to wait or have MOH.
 
Last edited by a moderator:
Thanks Ross. I will give this a try and get back to you in the next couple days.

So is the current PIAF Purple not up to date then?
 
Can you please post the output of 'status'?



Code:
        │  Asterisk   = ONLINE  | Dahdi     = ONLINE  | MySQL     = ONLINE    │
        │  SSH        = ONLINE  | Apache    = ONLINE  | Iptables  = ONLINE    │
        │  Fail2ban   = ONLINE  | Internet  = ONLINE  | Ip6Tables = ONLINE    │
        │  BlueTooth  = ONLINE  | Hidd      = ONLINE  | NTPD      = ONLINE    │
        │  SendMail   = ONLINE  | Samba     = OFFLINE | Webmin    = ONLINE    │
        │  Ethernet0  = ONLINE  | Ethernet1 = N/A     | Wlan0     = N/A       │
        │                                                                     │
        │  PBX in a Flash Version   = 1.7.5.5                                 │
        │  FreePBX Version          = 2.8.1.3                                 │
        │  Running Asterisk Version = Asterisk 1.8.3.2                        │
        │  Asterisk Source Version  = 1.8.3.2                                 │
        │  Dahdi Source Version     = 2.4.1.1+2.4.1                           │
        │  Libpri Source Version    = 1.4.11.5                                │
        │  IP Address               = 192.168.1.10 on eth0                    │
        │  Operating System         = CentOS release 5.5 (Final)              │
        │  Kernel Version           = 2.6.18-194.26.1.el5 - 32 Bit            │
        │                                                                     │
 
Well I was able to through your code in and things are working great (and much faster). I did add:
exten => _X.,n,Background(pls-wait-connect-call)

so people know what's going on.

Thanks!
 

Members online

Forum statistics

Threads
26,687
Messages
174,411
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