So, in my dialplan, I have this as the operative line for a two line GV incoming (including the commented out DTMF line):
;exten => s,n,SendDTMF(1)
exten => s,n,Goto(from-trunk,gv-incoming-${CUT(ALERTNAME,@,1)},1)
To adapt this new logic, I am stumped. I have two GV incoming lines that will ring a ring group for either line. The ring groups have two extensions each.
exten => s,1,Dial(SIP/mypeer&SIP/mypeer2&SIP/mypeer3,20,D(:1))
Here is my newly created extensions_custom.conf (pulled from a PIAF forum post):
[googlein]
exten => blah@gmail.com,1,Wait(1)
exten => blah@gmail.com,n,Set(ALERTNAME=blah@gmail.com)
exten => blah@gmail.com,n,JABBERSend(asterisk,${ALERTNAME},Incoming Google Voice Call: ${CALLERID(name):2:10})
exten => blah@gmail.com,n,Set(CALLERID(number)=${CALLERID(name):2:10})
exten => blah@gmail.com,n,Set(CALLERID(name)=${CALLERID(number)})
exten => blah@gmail.com,n,GotoIf(${DB_EXISTS(gv_dialout_account1/channel)}?bridged)
exten => blah@gmail.com,n,Goto(s,regcall)
exten => blah@gmail.com,n(bridged),Bridge(${DB_DELETE(gv_dialout_account1/channel)})
exten => blah2@gmail.com,1,Wait(1)
exten => blah2@gmail.com,n,Set(ALERTNAME=blah2@gmail.com)
exten => blah2@gmail.com,n,JABBERSend(asterisk2,${ALERTNAME},Incoming Google Voice Call: ${CALLERID(name):2:10})
exten => blah2@gmail.com,n,Set(CALLERID(number)=${CALLERID(name):2:10})
exten => blah2@gmail.com,n,Set(CALLERID(name)=${CALLERID(number)})
exten => blah2@gmail.com,n,GotoIf(${DB_EXISTS(gv_dialout_account2/channel)}?bridged)
exten => blah2@gmail.com,n,Goto(s,regcall)
exten => blah2@gmail.com,n(bridged),Bridge(${DB_DELETE(gv_dialout_account2/channel)})
exten => s,1,Wait(1)
exten => s,n,Set(ALERTNAME=blah@gmail.com)
;exten => _X.,n,Set(STATUS=${JABBER_STATUS(asterisk,${ALERTNAME})});
;exten => _X.,n,NoOp(Gvoice/Jabber Status: ${STATUS})
exten => s,n,JABBERSend(asterisk,${ALERTNAME},Incoming Google Voice Call: ${CALLERID(name):2:10})
exten => s,n,Set(CALLERID(number)=${CALLERID(name):2:10})
exten => s,n,Set(CALLERID(name)=${CALLERID(number)})
exten => s,n(regcall),Answer
;exten => blah@gmail.com,n,Dial(SIP/101,60, D(:1))
;exten => blah@gmail.com,n,Hangup()
;exten => s,n,SendDTMF(1)
exten => s,n,Goto(from-trunk,gv-incoming-${CUT(ALERTNAME,@,1)},1)