How to register Asterisk server as a SIP client to PortaOne
If you purchased a DID from PortaOne http://www.portaone.com/ and want to use it with Asterisk PBX, there are two ways
First -> to have mapping between your IP and DID
Second one -> to register Asterisk as a SIP client to PortaOne with username and password
This is the second way
(This work with latest SVN version of Asterisk)
I suppose that you have DID (Your-PortaOne-DID) from PortaOne and a password (YourPassword)
in sip.conf
section
[general]
…
register=>Your-PortOne-DID:YourPassword@portasip01.worldline.ca/Your-PortOne-DID
…
peers, and friends lives here 🙂
…….
[Your-PortaOne-DID]
type=friend
qualify=yes
nat=yes
dtmfmode=RFC2833
insecure=port,invite ; This Do The Magic
canreinvite=no
secret=YourPassword
username=Your-PortaOne-DID
fromdomain=portasip01.worldline.ca
host=portasip01.worldline.ca
disallow=all
allow=ulaw
allow=alaw
…
in extensions.conf
[default]
…
exten =>Your-PortaOne-DID,1,Answer
exten => Your-PortaOne-DID,n,Playback(demo-abouttotry); Let them know what’s going on
exten => Your-PortaOne-DID,n,Dial(IAX2/guest@misery.digium.com/s@default) ; Call the Asterisk demo
exten => Your-PortaOne-DID,n,Playback(demo-nogo) ; Couldn’t connect to the demo site
exten => Your-PortaOne-DID,n,Goto(s,6)