本帖最後由 ckleea 於 2011-9-27 21:18 編輯
回復 3# 角色
Try this- [from-GV]
- ;exten => _[@Xa-z].,1,Noop(Incoming Google Voice call for ${EXTEN})
- ;exten => _[@Xa-z].,n,Set(CALLERID(number)=${CALLERID(name):2:10}) ; make known of the calling party
- ;exten => _[@Xa-z].,n,Set(CALLERID(name)=${CALLERID(number)})
- ;exten => _[@Xa-z].,n,Answer()
- ;exten => _[@Xa-z].,n,Wait(2)
- ;exten => _[@Xa-z].,n,SendDTMF(1)
- ;exten => _[@Xa-z].,n,Dial(Local/900xxxxxx&SIP/9xxxxxxxx@hkbn2b)
- ;exten => h,1,Hangup()
- exten => account1@gmail.com,1,Set(CALLERID(number)=${CALLERID(name):2:10})
- exten => account1@gmail.com,n,Set(CALLERID(name)=${CALLERID(number)})
- exten => account1@gmail.com,n,Answer()
- exten => account1@gmail.com,n,Wait(2)
- exten => account1@gmail.com,n,SendDTMF(1)
- exten => account1@gmail.com,n,Dial(LOCAL/6100,60,r)
- exten => account2@gmail.com,1,Set(CALLERID(number)=${CALLERID(name):2:10})
- exten => account2@gmail.com,n,Set(CALLERID(name)=${CALLERID(number)})
- exten => account2@gmail.com,n,Answer()
- exten => account2@gmail.com,n,Wait(2)
- exten => account2@gmail.com,n,SendDTMF(1)
- exten => account2@gmail.com,n,Dial(LOCAL/6100,60,r)
- exten => account3@gmail.com,1,Set(CALLERID(number)=${CALLERID(name):2:10})
- exten => account3@gmail.com,n,Set(CALLERID(name)=${CALLERID(number)})
- exten => account3@gmail.com,n,Answer()
- exten => account3@gmail.com,n,Wait(2)
- exten => account3@gmail.com,n,SendDTMF(1)
- exten => account3@gmail.com,n,Dial(LOCAL/6100,60,r)
- exten => account4@gmail.com,1,Set(CALLERID(number)=${CALLERID(name):2:10})
- exten => account4@gmail.com,n,Set(CALLERID(name)=${CALLERID(number)})
- exten => account4@gmail.com,n,Answer()
- exten => account4@gmail.com,n,Wait(2)
- exten => account4@gmail.com,n,SendDTMF(1)
- exten => account4@gmail.com,n,Dial(LOCAL/2006,60,r)
複製代碼 |