Hi,
I tried to set up a Twilio SIP trunk on my FreePBX. I have some issues with placing calls.
Once I call any number from my Zoiper which is registered with the FreePBX, it shows that it is dialing. I hear ringing tone after one minute. But it never rings the recipient’s phone.
Here is my VOIP architecture:
Server operating system: CentOS 7 hosted on AWS EC2 instance
FreePBX 13.0.169
Asterisk 13.10.0
SIP Phone: Zoiper 3.9
Here is my FreePBX configuration:
Trunk Settings:
Trunk Name: Twilio_SIP_Trunk
Hide CallerID: No
Outbound CallerID: Not set
CID Options: Allow Any CID
Maximum Channels: Not set
Asterisk Trunk Dial Options: System
Continue if Busy: No
Disable Trunk: No
Dial Number Manipulation Rules: Not set
SIP Setting - Outgoining
Trunk Name: TwilioOut
PEER Details
host=mycompnay.pstn.twilio.com
username=mytwiliocredentialusername
secret=mytwiliocredentialpassword
type=peer
disallow=all
allow=ulaw
dtmfmode=rfc2833
canreinvite=no
SIP Setting - Incoming
USER Context : TwilioIn
USER Details:
host=mycompany.pstn.twilio.com
type=peer
context=from-trunk
disallow=all
allow=ulaw
==================
Inbound Route Settings
Description: TwilioInbound
DID Number: +myDIDNumber
CallerID Number : Not Set
CID Priority Route: No
Alert Info: Not Set
CID name prefix : Not Set
Music On Hold: Default
Set Destination : Extension: 101
Signal RINGING: Yes
Reject Reverse Charges: No
Pause Before Answer: Not Set
Privacy Manager: No
Max attempts: 3
Min Length: 10
Call Recording: Force
====================
Outbound Route
Route Name: TwilioOut
Route CID: Not Set
Override Extension: No
Route Password: Not Set
Route Type: Not Set
Music On Hold?: Default
Route Position : No Change
Trunk Sequence for Matched Routes: Twilio_SIP_Trunk
Optional Destination on Congestion: Not set
Dial Patterns:
prepend() prefix(+) match patern (X.) CallerID ()
prepend() prefix(00) match patern (X.) CallerID ()
Call Recording: Force
===============
Zoiper Account Settings
Domain:myfreepbxurl
Username: 101
Password: secret
Selected Audio Codec: u-law
I appreciate it if somebody can help me to correct my settings and make my outbound calls working properly.