|
The easiest way to use VoIP User's phone numbers with the Asterisk PBX is using IAX termination.
After requesting a number, edit the that number.
First click on the selector next to the box for IAX2/ and enter this in the text box:
voipuser:test@pbx.voipuser.org
Where:
voipuser is the username
test is the password/secret
and pbx.voipuser.org is the hostname of the Asterisk PBX
Now, edit iax.conf on your Asterisk PBX:
[voipuser]
username=voipuser
secret=test
type=user
context=inbound-voipuser
..and extensions.conf:
The number will come in, via the international number format so the first 0 is replaced by 44.
[inbound-voipuser]
exten => 44870123456,1,Dial(SIP/myphone,20)
exten => 44870123456,2,Voicemail2(u12)
exten => 44870123456,3,HangUp
This will make myphone ring for 20 seconds and in case of busy/unavailble it will go to voicemail. Obviously you need to change 44870123456 for your number.
If you are behind a NAT/firewall, you'll need port 4569 forwarding in.
The following codec's are supported and known to work:
g711u (ulaw)
g711a (alaw)
gsm
ilbc
If you have any problems getting this setup and working (or any questions/comments) - please feel free to post in the forum.
--ian |