PBXs
From VoIP.ms Wiki
Contents |
FreePBX / Trixbox / PBX in a Flash (SIP)
|
canreinvite=nonat |
Register String
|
100000:[email protected]:5060 |
FreePBX / Trixbox / PBX in a Flash (IAX2)
|
type=friend |
Register String
|
100000:[email protected]:5060 |
Asterisk (SIP)
sip.conf
[general] register => 100000:[email protected]:5060 [voipms] canreinvite=no context=mycontext host=atlanta.voip.ms secret=johnspassword ;your password type=friend username=100000 ;your account disallow=all allow=ulaw ; allow=g729 ; Uncomment if you support G729 fromuser=100000 ;your account trustrpid=yes sendrpid=yes insecure=port,invite ; nat=yes ; Uncomment this if your box is behind a NAT
extensions.conf
[mycontext]
include => voipms-outbound
include => voipms-inbound
[voipms-outbound]
exten => _1NXXNXXXXXX,1,Dial(SIP/${EXTEN}@voipms)
exten => _1NXXNXXXXXX,n,Hangup()
exten => _NXXNXXXXXX,1,Dial(SIP/1${EXTEN}@voipms)
exten => _NXXNXXXXXX,n,Hangup()
exten => _011.,1,Dial(SIP/${EXTEN}@voipms)
exten => _011.,n,Hangup()
exten => _00.,1,Dial(SIP/${EXTEN}@voipms)
exten => _00.,n,Hangup()
; inbound context example for your DID numbers, do not add the number 1 in front
[voipms-inbound]
exten => 7863643011,1,Answer() ;your DID
Asterisk IP Auth. (SIP)
sip.conf
Note: You'll need to create a sub account to use IP Auth
[voipms] canreinvite=nonat context=mycontext host=atlanta.voip.ms type=friend disallow=all allow=ulaw ; allow=g729 ; uncomment if you support g729 insecure=port,invite ; nat=yes ; uncommment if behind a nat
extensions.conf
[mycontext]
include => voipms-outbound
include => voipms-inbound
[voipms-outbound]
exten => _1NXXNXXXXXX,1,Dial(SIP/${EXTEN}@voipms)
exten => _1NXXNXXXXXX,n,Hangup()
exten => _011.,1,Dial(SIP/${EXTEN}@voipms)
exten => _011.,n,Hangup()
exten => _00.,1,Dial(SIP/${EXTEN}@voipms)
exten => _00.,n,Hangup()
; inbound context example for your DID numbers, do not add the number 1 in front
[voipms-inbound]
exten => 7863643011,1,Answer() ;your DID
Asterisk (IAX2)
iax.conf
register => 100000:[email protected] [voipms] type=friend username=100000 ;your account secret=johnspassword ;your password context=mycontext host=atlanta.voip.ms disallow=all allow=ulaw ; allow=g729 ; uncomment if you support it insecure=port,invite requirecalltoken=no
extensions.conf
[mycontext]
include => inbound
include => outbound
[outbound]
exten => _1NXXNXXXXXX,1,Dial(IAX2/109799@voipms/${EXTEN})
exten => _1NXXNXXXXXX,n,Hangup()
exten => _011.,1,Dial(IAX2/109799@voipms/${EXTEN})
exten => _011.,n,Hangup()
exten => _00.,1,Dial(IAX2/109799@voipms/${EXTEN})
exten => _00.,n,Hangup()
; inbound context example for your DID numbers, do not add the number 1 in front
[voipms-inbound]
exten => 7863643011,1,Answer() ;your DID
