Asterisk Users and Peers
Here is a list of my current VSP settings. Since installing Asterisk 1.6.x I have found that my peers and trunk configuration had to be changed.
Asterisk 1.6.x
Templates
|
[exten-set](!)
type=friend
qualify=yes
port=5060
callgroup=1
pickupgroup=1
host=dynamic
dtmfmode=rfc2833
canreinvite=no
context=internal
|
|
[lan-codec](!)
disallow=all
allow=ulaw
[wan-codec](!)
disallow=all
allow=g729
|
SIP Configuration
GoTalk
|
Peer |
|
User |
|
;GoTalk Outbound
[GoTalk](wan-codec)
defaultuser=username
fromuser=username
type=peer
secret=password
qualify=yes
host=sip.gotalk.com
;insecure=very
dtmfmode=rfc2833 |
|
;GoTalk Inbound
[username](wan-codec)
defaultuser=username
type=user
secret=password
context=from-vsp
canredirect=no |
|
|
|
Registration |
|
|
|
register=username:password@sip.gotalk.com/username |
|
|
|
NOTE:
Username is not your DID but you GoTalk 09 number. Also the DTMF settings on an ATA or IP Phone should be set to AVT |
PennyTel
|
Peer |
|
User |
|
;PennyTel Outbound
[PennyTel](wan-codec)
defaultuser=username
type=peer
secret=password
qualify=yes
;insecure=very
host=sip.pennytel.com
canreinvite=no
canredirect=no |
|
;PennyTel Inbound
[username](wan-codec)
defaultuser=username
type=user
secret=secret
;fromuser=username
context=from-vsp
canredirect=no
canreinvite=no
context=from-vsp |
|
|
|
Registration |
|
|
|
register=username:password@sip.pennytel.com/username |
BBPGlobal
|
Peer |
|
User |
|
[BBPGlobal](wan-codec)
defaultuser=username
secret=password
type=peer
call-limit=1
qualify=yes
maxexpiry=3600
;insecure=very
host=sip2.bbpglobal.com
fromuser=username
fromdomain=sip2.bbpglobal.com
authuser=username |
|
;BBP Global inbound
[1104848](wan-codec)
defaultuser=username
type=user
secret=password
;insecure=very
fromuser=username
context=from-vsp |
|
|
|
Registration |
|
|
|
register=username:password@sip2.bbpglobal.com/username |
Free World Dialpoint
|
Peer |
|
User |
|
[WorldDialPoint](wan-codec)
defaultuser=username
type=peer
secret=password
qualify=yes
host=202.168.56.133 |
|
;;Free World Dial Inbound
[username](wan-codec)
defaultuser=username
type=user
secret=password
;insecure=very
fromuser=username
context=from-vsp
canreinvite=no |
|
|
|
Registration |
|
|
|
register=username:password@202.168.56.133 |
MyNetFone
|
Peer |
|
User |
|
;MyNetFone Outbound
[MyNetFone](wan-codec)
type=friend
secret=password
defaultuser=username
fromuser=username
host=sip.myfone.com.au
qualify=yes
dtmfmode=rfc2833
canreinvite=no |
|
[;MyNetFone Inbound
[username](wan-codec)
type=username
secret=password
defaultuser=password
nat=yes
dtmfmode=rfc2833
canreinvite=no
context=from-vsp |
|
|
|
Registration |
|
|
|
register=09xxxxxx:yyyyyyyy@sip00.mynetfone.com.au/09xxxxxx |
For some reason MNF will only operate as a type=friend rather than setting an inbound and outbound context.
fwdOUT
|
Peer & User |
|
[fwdOUT]
type=friend
username=username
secret=password
host=iax.fwdOUT.com
context=fromfwdOUT
auth=rsa
inkeys=freeworlddialup
disallow=all
allow=ilbc
allow=ulaw |
|
|
|
Registration |
|
register=username:password@iax.fwdout.com |
|
|
|
[internal]
;fwdOUT
exten => _01X.,1,Set(CALLERID(all)="Klaverstyn" <6173???????>)
exten => _01X.,n,Dial(IAX2/username@fwdOUT/${EXTEN:2},60)
exten => _01X.,n,Congestion
[fromfwdOUT]
exten => _61[2378]XXXXXXXX,1,Dial(SIP/GoTalk/0${EXTEN:2},60)
exten => _61[2378]XXXXXXXX,n,HangUp
exten => _614XXXXXXXX,1,Dial(SIP/GoTalk/0${EXTEN:2},60L(1800000:1790000))
exten => _614XXXXXXXX,n,HangUp
exten => _611800XXXXXX,1,Dial(SIP/GoTalk/${EXTEN:2},60)
exten => _611800XXXXXX,n,HangUp |
Asterisk 1.4.x
IAX Configuration
FWD (Free World Dialup)
|
Peer |
|
User |
|
[fwd]
CallerID="David" <username>
username=username
type=peer
secret=password
qualify=yes
host=iax2.fwdnet.net
disallow=all
allow=ulaw
auth=md5 |
|
[iaxfwd]
username=username
secret=password
type=user
auth=rsa
inkeys=freeworlddialup
context=from-vsp |
|
|
|
Registration |
|
|
|
register=username:password@iax2.fwdnet.net |
SIP Configuration
GoTalk
|
Peer |
|
User |
|
[GoTalk]
username=username
fromuser=username
type=peer
secret=password
qualify=yes
host=sip.gotalk.com
disallow=all
allow=g729
insecure=very
dtmfmode=rfc2833 |
|
;GoTalk Inbound
[username]
username=username
type=user
secret=password
context=from-vsp
canredirect=no |
|
|
|
Registration |
|
|
|
register=username:password@sip.gotalk.com/username |
|
|
|
NOTE:
Username is not your DID but you GoTalk 09 number. Also the DTMF settings on an ATA or IP Phone should be set to AVT |
PennyTel
|
Peer |
|
User |
|
[PennyTel]
username=username
type=peer
secret=password
qualify=yes
insecure=very
host=sip.pennytel.com
disallow=all
canreinvite=no
canredirect=no
allow=g729
|
|
;PennyTel Inbound
[username]
username=username
type=user
secret=password
fromuser=username
context=from-vsp
canredirect=no |
|
|
|
Registration |
|
|
|
register=username:password@sip.pennytel.com/username |
BBPGlobal
|
Peer |
|
User |
|
[BBPGlobal]
username=username
secret=password
type=peer
call-limit=1
qualify=yes
maxexpiry=3600
insecure=very
host=sip2.bbpglobal.com
fromuser=username
fromdomain=sip2.bbpglobal.com
disallow=all
allow=g729
authuser=password
|
|
;BBP Global inbound
[username]
username=username
type=user
secret=password
insecure=very
fromuser=username
context=from-vsp |
|
|
|
Registration |
|
|
|
register=username:password@sip2.bbpglobal.com/username |
Free World Dialpoint
|
Peer |
|
User |
|
[WorldDialPoint]
username=username
type=peer
secret=password
qualify=yes
host=202.168.56.133
disallow=all
allow=g729
|
|
;Wold Dial Point Inbound
[username]
username=username
type=user
secret=password
insecure=very
fromuser=username
context=from-vsp
canreinvite=no |
|
|
|
Registration |
|
|
|
register=username:password@202.168.56.133 |
MyNetFone
|
Peer & User |
|
[MyNetFone]
type=friend
secret=yyyyyyyy
username=09xxxxxx
fromuser=09xxxxxx
authname=09xxxxxx
host=sip.myfone.com.au
insecure=very
nat=yes
disallow=all
allow=g729
qualify=yes
dtmfmode=rfc2833
canreinvite=no
context=from-vsp |
|
|
|
Registration |
|
register=09xxxxxx:yyyyyyyy@sip00.mynetfone.com.au/09xxxxxx |
For some reason MNF will only operate as a type=friend rather than setting an inbound and outbound context.
fwdOUT
|
Peer & User |
|
[fwdOUT]
type=friend
username=16121
secret=22IxVZq7obU2
host=iax.fwdOUT.com
context=fromfwdOUT
auth=rsa
inkeys=freeworlddialup
disallow=all
allow=ilbc
allow=ulaw |
|
|
|
Registration |
|
register=username:password@iax.fwdout.com |