Well you should rewrite your incoming google:

[incoming_google]

exten => AAA@gmail.com,1,Set(CALLERID(number)=${CALLERID(name):2:10})

exten => AAA@gmail.com,n,Set(CALLERID(name)=${CALLERID(number)})

exten => AAA@gmail.com,n,Dial(SIP/avi,20,aD(:1))

exten => AAA@gmail.com,n,Answer()

exten => AAA@gmail.com,n,SendDTMF(1)

exten => AAA@gmail.com,n,VoiceMail(1@default)

exten => AAA@gmail.com,n,Hangup()

[incoming_google]

exten => AAA@gmail.com,1,Set(CALLERID(number)=${CALLERID(name):2:10})

exten => AAA@gmail.com,n,Set(CALLERID(name)=${CALLERID(number)})

exten => AAA@gmail.com,n,Answer()

exten => AAA@gmail.com,n,SendDTMF(1)

exten => AAA@gmail.com,n,Dial(SIP/avi,20,aD(:1))

exten => AAA@gmail.com,n,VoiceMail(1@default)

exten => AAA@gmail.com,n,Hangup()

exten => BBB@gmail.com,1,Set(CALLERID(number)=${CALLERID(name):2:10})

exten => BBB@gmail.com,n,Set(CALLERID(name)=${CALLERID(number)})

exten => BBB@gmail.com,n,Answer()

exten => BBB@gmail.com,n,SendDTMF(1)

exten => BBB@gmail.com,n,Dial(SIP/btkatch,20,aD(:1))

exten => BBB@gmail.com,n,Hangup()

exten => CCC@gmail.com,1,Set(CALLERID(number)=${CALLERID(name):2:10})

exten => CCC@gmail.com,n,Set(CALLERID(name)=${CALLERID(number)})

exten => CCC@gmail.com,n,Answer()

exten => CCC@gmail.com,n,SendDTMF(1)

exten => CCC@gmail.com,n,Goto(local,700,1)

you need to have this line first before dial

exten => BBB@gmail.com,n,Answer()

exten => BBB@gmail.com,n,SendDTMF(1)