0

I followed the steps given here but I am getting the following errors:

# ec2-authorize default -P udp -p 5060 -O, --aws-access-key AWS_ACCESS_KEY
Required option '-W, --aws-secret-key KEY' missing (-h for usage)
# ec2-authorize default -P udp -p 5060 -O, --aws-access-key AWS_ACCESS_KEY  -W, --aws-secret-key AWS_SECRET_KEY
Client.AuthFailure: AWS was not able to validate the provided access credentials (Service: AmazonEC2; Status Code: 401; Error Code: AuthFailure; Request ID: 005cab49-0620-4740-971c-39804c55750f)

Similar question here has no answers too.

Community
  • 1
  • 1
bluesky
  • 286
  • 2
  • 9

1 Answers1

1

Use -W OR --aws-secret-key option, not both of them. Like this:

ec2-authorize default -P udp -p 5060 -O AWS_ACCESS_KEY -W AWS_SECRET_KEY

(http://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/ApiReference-cmd-AuthorizeSecurityGroupIngress.html)

or you can just open the ports via EC2 Web GUI.

Don't forget about ports for RTP (UDP protocol 16384-32768), or you will not hear the sound.

J C
  • 219
  • 1
  • 7
  • Thank you. I do like that replace AWS_ACCESS_KEY & AWS_SECRET_KEY with the ture strings. after finished.I start freeswitch,but still no voice. – bluesky Dec 10 '14 at 03:48