Asterisk IAX2 - VoIP.ms Wiki

Check out our YouTube channel to watch our simple tutorials that will help you set up most of our features.

Asterisk IAX2

From VoIP.ms Wiki

(Difference between revisions)
Jump to: navigation, search
[quality revision][quality revision]
 
(2 intermediate revisions not shown)
Line 3: Line 3:
  <nowiki>
  <nowiki>
[general]
[general]
-
register => 100000:[email protected]
+
register => 100000:[email protected]:4569
[voipms]
[voipms]
type=friend
type=friend
-
username=100000 (Replace with your 6 digit Main SIP Account User ID or Sub Account username, i.e. 123456 or 123456_sub)
+
username=100000 ;(Replace with your 6 digit Main SIP Account User ID or Sub Account username, i.e. 123456 or 123456_sub)
secret=johnspassword ;your password
secret=johnspassword ;your password
context=mycontext
context=mycontext
-
host=atlanta.voip.ms (one of our multiple servers, you can choose the one closer to your location)
+
host=atlanta.voip.ms ;(one of our multiple servers, you can choose the one closer to your location)
disallow=all
disallow=all
allow=ulaw
allow=ulaw
; allow=g729 ; uncomment if you support it
; allow=g729 ; uncomment if you support it
insecure=port,invite  
insecure=port,invite  
-
requirecalltoken=no
+
requirecalltoken=yes
</nowiki>
</nowiki>
-
 
===extensions.conf===
===extensions.conf===

Latest revision as of 14:18, 26 July 2021

iax.conf

[general]
register => 100000:[email protected]:4569

[voipms]
type=friend
username=100000 ;(Replace with your 6 digit Main SIP Account User ID or Sub Account username, i.e. 123456 or 123456_sub)
secret=johnspassword ;your password
context=mycontext
host=atlanta.voip.ms ;(one of our multiple servers, you can choose the one closer to your location)
disallow=all
allow=ulaw
; allow=g729 ; uncomment if you support it
insecure=port,invite 
requirecalltoken=yes

extensions.conf

[mycontext]
; Make sure to include inbound prior to outbound because the _NXXNXXXXXX handler will match the incoming call and create a loop
include => voipms-inbound
include => voipms-outbound

[voipms-outbound]
exten => _1NXXNXXXXXX,1,Dial(IAX2/voipms/${EXTEN})
exten => _1NXXNXXXXXX,n,Hangup()
exten => _NXXNXXXXXX,1,Dial(IAX2/voipms/1${EXTEN})
exten => _NXXNXXXXXX,n,Hangup()
exten => _011.,1,Dial(IAX2/voipms/${EXTEN})
exten => _011.,n,Hangup()
exten => _00.,1,Dial(IAX2/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






Personal tools
Namespaces
Variants
Actions
VoIP.ms Wiki
Guides 🇨🇦
Guías 🇲🇽