Hi guys,
I am working on Asterisk 11. I have configured asterisk to work on google voice. Everything is working fine.
I can make outbound calls and inbound calls without the issue.
Now, I want to restrict the outbound calls.
Question 1:
How can I setup the asterisk so that when I pressed “1” on my asterisk phone, it only calls the given phone number?
Question 2
When person calls from asterisk,
- it should only call number “abc”.
- if no one picks up the call on “abc”, then it should call “xyz”
- if no one picks up the call on “xyz”, then it should call “mno”
- if no one picks up the call on “mno”, then call goes to “voicemail”
my files:
extension.conf:
[general]
static=yes
writeprotect=no
clearglobalvars=no
[globals]
[incoming-local]
include => outgoing-google
include => outgoing-sip
[incoming-analog]
include => outgoing-google
include => outgoing-sip
[incoming-softphone]
include => outgoing-google
include => outgoing-sip
[outgoing-google]
exten => _.,1,Set(CALLERID(name)=12345678900)
exten => _.,2,Dial(Motif/google/${EXTEN}@voice.google.com,20,r)
[incoming-motif]
exten => s,1,NoOp()
same => n,Wait(1)
same => n,Answer()
same => n,SendDTMF(1)
same => n,Dial(dahdi/1,20)
motif.conf
[google]
transport=google-v1
context=incoming-motif
disallow=all
allow=ulaw
connection=google
Any help guys???
Thanks.