Asterisk sequencial Dial

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,

  1. it should only call number “abc”.
  2. if no one picks up the call on “abc”, then it should call “xyz”
  3. if no one picks up the call on “xyz”, then it should call “mno”
  4. 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.

exten => s,1,Dial(first destinatoin)
same => n, Dial(second)

etc.

This assumes that the phone uses a technology that intrinsically starts the call on going offhook, or which allows a call to be est up with no dialled digits.

SIP phones may fall into neither class, but I think you can often configure them to dial a fixed number.