Peers & Trunks: Difference between revisions
No edit summary |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
= Asterisk Users and Peers = | = Asterisk Users and Peers = | ||
Here is a list of my current VSP settings. | 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 == | |||
<table border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="130"> </td> | |||
<td>[exten-set](!)<br> | |||
type=friend<br> | |||
qualify=yes<br> | |||
port=5060<br> | |||
callgroup=1<br> | |||
pickupgroup=1<br> | |||
host=dynamic<br> | |||
dtmfmode=rfc2833<br> | |||
canreinvite=no<br> | |||
context=internal<br> | |||
</td> | |||
<td width="35"> </td> | |||
<td valign="top">[lan-codec](!)<br> | |||
disallow=all<br> | |||
allow=ulaw<br> | |||
[wan-codec](!)<br> | |||
disallow=all<br> | |||
allow=g729<br> | |||
</td> | |||
</tr> | |||
</table> | |||
== SIP Configuration == | |||
=== GoTalk === | |||
<table border="0" cellspacing="0" cellpadding="0" width="500"> | |||
<tr> | |||
<td width="120"> </td> | |||
<td align="center"><b>Peer</b></td> | |||
<td align="center" width="35"> </td> | |||
<td align="center"><b>User</b></td> | |||
</tr> | |||
<tr> | |||
<td width="120"> </td> | |||
<td valign="top">;GoTalk Outbound<br> | |||
[GoTalk](wan-codec)<br> | |||
defaultuser=username<br> | |||
fromuser=username<br> | |||
type=peer<br> | |||
secret=password<br> | |||
qualify=yes<br> | |||
host=sip.gotalk.com<br> | |||
;insecure=very<br> | |||
dtmfmode=rfc2833</td> | |||
<td valign="top"> </td> | |||
<td valign="top">;GoTalk Inbound<br> | |||
[username](wan-codec)<br> | |||
defaultuser=username<br> | |||
type=user<br> | |||
secret=password<br> | |||
context=from-vsp<br> | |||
canredirect=no</td> | |||
</tr> | |||
<tr> | |||
<td width="120"> </td> | |||
<td valign="top" colspan="3"><hr></td> | |||
</tr> | |||
<tr> | |||
<td width="120"> </td> | |||
<td valign="top">Registration</td> | |||
<td valign="top"> </td> | |||
<td valign="top"> </td> | |||
</tr> | |||
<tr> | |||
<td width="120"> </td> | |||
<td valign="top" colspan="3">register=username:password@sip.gotalk.com/username</td> | |||
</tr> | |||
<tr> | |||
<td width="120"> </td> | |||
<td valign="top" colspan="3"> </td> | |||
</tr> | |||
<tr> | |||
<td width="120"> </td> | |||
<td valign="top" colspan="3"><strong>NOTE:</strong><br> | |||
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</td> | |||
</tr> | |||
</table> | |||
=== PennyTel === | |||
<table border="0" cellspacing="0" cellpadding="0" width="500"> | |||
<tr> | |||
<td width="120"> </td> | |||
<td align="center"><b>Peer</b></td> | |||
<td align="center" width="35"> </td> | |||
<td align="center"><b>User</b></td> | |||
</tr> | |||
<tr> | |||
<td width="120"> </td> | |||
<td valign="top">;PennyTel Outbound<br> | |||
[PennyTel](wan-codec)<br> | |||
defaultuser=username<br> | |||
type=peer<br> | |||
secret=password<br> | |||
qualify=yes<br> | |||
;insecure=very<br> | |||
host=sip.pennytel.com<br> | |||
canreinvite=no<br> | |||
canredirect=no</td> | |||
<td valign="top"> </td> | |||
<td valign="top">;PennyTel Inbound<br> | |||
[username](wan-codec)<br> | |||
defaultuser=username<br> | |||
type=user<br> | |||
secret=secret<br> | |||
;fromuser=username<br> | |||
context=from-vsp<br> | |||
canredirect=no<br> | |||
canreinvite=no<br> | |||
context=from-vsp</td> | |||
</tr> | |||
<tr> | |||
<td width="120"> </td> | |||
<td valign="top" colspan="3"><hr></td> | |||
</tr> | |||
<tr> | |||
<td width="120"> </td> | |||
<td valign="top">Registration</td> | |||
<td valign="top"> </td> | |||
<td valign="top"> </td> | |||
</tr> | |||
<tr> | |||
<td width="120"> </td> | |||
<td valign="top" colspan="3">register=username:password@sip.pennytel.com/username</td> | |||
</tr> | |||
</table> | |||
=== BBPGlobal === | |||
<table border="0" cellspacing="0" cellpadding="0" width="500"> | |||
<tr> | |||
<td width="120"> </td> | |||
<td align="center"><b>Peer</b></td> | |||
<td align="center" width="35"> </td> | |||
<td align="center"><b>User</b></td> | |||
</tr> | |||
<tr> | |||
<td width="120"> </td> | |||
<td valign="top">[BBPGlobal](wan-codec)<br> | |||
defaultuser=username<br> | |||
secret=password<br> | |||
type=peer<br> | |||
call-limit=1<br> | |||
qualify=yes<br> | |||
maxexpiry=3600<br> | |||
;insecure=very<br> | |||
host=sip2.bbpglobal.com<br> | |||
fromuser=username<br> | |||
fromdomain=sip2.bbpglobal.com<br> | |||
authuser=username</td> | |||
<td valign="top"> </td> | |||
<td valign="top">;BBP Global inbound<br> | |||
[1104848](wan-codec)<br> | |||
defaultuser=username<br> | |||
type=user<br> | |||
secret=password<br> | |||
;insecure=very<br> | |||
fromuser=username<br> | |||
context=from-vsp</td> | |||
</tr> | |||
<tr> | |||
<td width="120"> </td> | |||
<td valign="top" colspan="3"><hr></td> | |||
</tr> | |||
<tr> | |||
<td width="120"> </td> | |||
<td valign="top">Registration</td> | |||
<td valign="top"> </td> | |||
<td valign="top"> </td> | |||
</tr> | |||
<tr> | |||
<td width="120"> </td> | |||
<td valign="top" colspan="3">register=username:password@sip2.bbpglobal.com/username</td> | |||
</tr> | |||
</table> | |||
=== Free World Dialpoint === | |||
<table border="0" cellspacing="0" cellpadding="0" width="500"> | |||
<tr> | |||
<td width="120"> </td> | |||
<td align="center"><b>Peer</b></td> | |||
<td align="center" width="35"> </td> | |||
<td align="center"><b>User</b></td> | |||
</tr> | |||
<tr> | |||
<td width="120"> </td> | |||
<td valign="top">[WorldDialPoint](wan-codec)<br> | |||
defaultuser=username<br> | |||
type=peer<br> | |||
secret=password<br> | |||
qualify=yes<br> | |||
host=202.168.56.133</td> | |||
<td valign="top"> </td> | |||
<td valign="top">;;Free World Dial Inbound<br> | |||
[username](wan-codec)<br> | |||
defaultuser=username<br> | |||
type=user<br> | |||
secret=password<br> | |||
;insecure=very<br> | |||
fromuser=username<br> | |||
context=from-vsp<br> | |||
canreinvite=no</td> | |||
</tr> | |||
<tr> | |||
<td width="120"> </td> | |||
<td valign="top" colspan="3"><hr></td> | |||
</tr> | |||
<tr> | |||
<td width="120"> </td> | |||
<td valign="top">Registration</td> | |||
<td valign="top"> </td> | |||
<td valign="top"> </td> | |||
</tr> | |||
<tr> | |||
<td width="120"> </td> | |||
<td valign="top" colspan="3">register=username:password@202.168.56.133</td> | |||
</tr> | |||
</table> | |||
=== MyNetFone === | |||
<table border="0" cellspacing="0" cellpadding="0" width="500"> | |||
<tr> | |||
<td width="120"> </td> | |||
<td align="center"><b>Peer</b></td> | |||
<td align="center" width="35"> </td> | |||
<td align="center"><b>User</b></td> | |||
</tr> | |||
<tr> | |||
<td width="120"> </td> | |||
<td valign="top">;MyNetFone Outbound<br> | |||
[MyNetFone](wan-codec)<br> | |||
type=friend<br> | |||
secret=password<br> | |||
defaultuser=username<br> | |||
fromuser=username<br> | |||
host=sip.myfone.com.au<br> | |||
qualify=yes<br> | |||
dtmfmode=rfc2833<br> | |||
canreinvite=no</td> | |||
<td valign="top"> </td> | |||
<td valign="top">[;MyNetFone Inbound<br> | |||
[username](wan-codec)<br> | |||
type=username<br> | |||
secret=password<br> | |||
defaultuser=password<br> | |||
nat=yes<br> | |||
dtmfmode=rfc2833<br> | |||
canreinvite=no<br> | |||
context=from-vsp</td> | |||
</tr> | |||
<tr> | |||
<td width="120"> </td> | |||
<td valign="top" colspan="3"><hr></td> | |||
</tr> | |||
<tr> | |||
<td width="120"> </td> | |||
<td valign="top">Registration</td> | |||
<td valign="top"> </td> | |||
<td valign="top"> </td> | |||
</tr> | |||
<tr> | |||
<td width="120"> </td> | |||
<td valign="top" colspan="3">register=09xxxxxx:yyyyyyyy@sip00.mynetfone.com.au/09xxxxxx</td> | |||
</tr> | |||
</table> | |||
For some reason MNF will only operate as a type=friend rather than setting an inbound and outbound context. | |||
=== fwdOUT === | |||
<table border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="120"> </td> | |||
<td align="center"><b>Peer & User</b></td> | |||
</tr> | |||
<tr> | |||
<td width="120"> </td> | |||
<td valign="top">[fwdOUT]<br> | |||
type=friend<br> | |||
username=username<br> | |||
secret=password<br> | |||
host=iax.fwdOUT.com<br> | |||
context=fromfwdOUT<br> | |||
auth=rsa<br> | |||
inkeys=freeworlddialup<br> | |||
disallow=all<br> | |||
allow=ilbc<br> | |||
allow=ulaw</td> | |||
</tr> | |||
<tr> | |||
<td width="120"> </td> | |||
<td valign="top"><hr></td> | |||
</tr> | |||
<tr> | |||
<td width="120"> </td> | |||
<td valign="top">Registration</td> | |||
</tr> | |||
<tr> | |||
<td width="120"> </td> | |||
<td valign="top"> | |||
register=username:password@iax.fwdout.com</td> | |||
</tr> | |||
<tr> | |||
<td width="120"> </td> | |||
<td valign="top"></td> | |||
</tr> | |||
<tr> | |||
<td width="120"> </td> | |||
<td valign="top"> | |||
[internal]<br> | |||
;fwdOUT<br> | |||
exten => _01X.,1,Set(CALLERID(all)="Klaverstyn" <6173???????>)<br> | |||
exten => _01X.,n,Dial(IAX2/username@fwdOUT/${EXTEN:2},60)<br> | |||
exten => _01X.,n,Congestion<br> | |||
<br> | |||
[fromfwdOUT]<br> | |||
exten => _61[2378]XXXXXXXX,1,Dial(SIP/GoTalk/0${EXTEN:2},60)<br> | |||
exten => _61[2378]XXXXXXXX,n,HangUp<br> | |||
<br> | |||
exten => _614XXXXXXXX,1,Dial(SIP/GoTalk/0${EXTEN:2},60L(1800000:1790000))<br> | |||
exten => _614XXXXXXXX,n,HangUp<br> | |||
<br> | |||
exten => _611800XXXXXX,1,Dial(SIP/GoTalk/${EXTEN:2},60)<br> | |||
exten => _611800XXXXXX,n,HangUp</td> | |||
</tr> | |||
</table> | |||
= Asterisk 1.4.x = | |||
== IAX Configuration == | == IAX Configuration == | ||
=== FWD (Free World Dialup) === | === FWD (Free World Dialup) === | ||
<table border="0" cellspacing="0" cellpadding="0" width="500"> | <table border="0" cellspacing="0" cellpadding="0" width="500"> | ||
Line 288: | Line 611: | ||
<td valign="top"> | <td valign="top"> | ||
register=09xxxxxx:yyyyyyyy@sip00.mynetfone.com.au/09xxxxxx</td> | register=09xxxxxx:yyyyyyyy@sip00.mynetfone.com.au/09xxxxxx</td> | ||
</tr> | |||
</table> | |||
<BR>For some reason MNF will only operate as a type=friend rather than setting an inbound and outbound context. | |||
=== fwdOUT === | |||
<table border="0" cellspacing="0" cellpadding="0" width="500"> | |||
<tr> | |||
<td width="120"> </td> | |||
<td align="center"><b>Peer & User</b></td> | |||
</tr> | |||
<tr> | |||
<td width="120"> </td> | |||
<td valign="top">[fwdOUT]<br> | |||
type=friend<br> | |||
username=16121<br> | |||
secret=22IxVZq7obU2<br> | |||
host=iax.fwdOUT.com<br> | |||
context=fromfwdOUT<br> | |||
auth=rsa<br> | |||
inkeys=freeworlddialup<br> | |||
disallow=all<br> | |||
allow=ilbc<br> | |||
allow=ulaw</td> | |||
</tr> | |||
<tr> | |||
<td width="120"> </td> | |||
<td valign="top"><hr></td> | |||
</tr> | |||
<tr> | |||
<td width="120"> </td> | |||
<td valign="top">Registration</td> | |||
</tr> | |||
<tr> | |||
<td width="120"> </td> | |||
<td valign="top"> | |||
register=username:password@iax.fwdout.com</td> | |||
</tr> | </tr> | ||
</table> | </table> | ||
[[Category : Asterisk]] | [[Category : Asterisk]] |
Latest revision as of 01:52, 16 April 2009
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 |
[lan-codec](!) disallow=all |
SIP Configuration
GoTalk
Peer | User | ||
;GoTalk Outbound [GoTalk](wan-codec) |
;GoTalk Inbound [username](wan-codec) |
||
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) |
;PennyTel Inbound [username](wan-codec) |
||
Registration | |||
register=username:password@sip.pennytel.com/username |
BBPGlobal
Peer | User | ||
[BBPGlobal](wan-codec) defaultuser=username |
;BBP Global inbound [1104848](wan-codec) |
||
Registration | |||
register=username:password@sip2.bbpglobal.com/username |
Free World Dialpoint
Peer | User | ||
[WorldDialPoint](wan-codec) defaultuser=username |
;;Free World Dial Inbound [username](wan-codec) |
||
Registration | |||
register=username:password@202.168.56.133 |
MyNetFone
Peer | User | ||
;MyNetFone Outbound [MyNetFone](wan-codec) |
[;MyNetFone Inbound [username](wan-codec) |
||
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 |
|
Registration | |
register=username:password@iax.fwdout.com | |
[internal] |
Asterisk 1.4.x
IAX Configuration
FWD (Free World Dialup)
Peer | User | ||
[fwd] CallerID="David" <username> |
[iaxfwd] username=username |
||
Registration | |||
register=username:password@iax2.fwdnet.net |
SIP Configuration
GoTalk
Peer | User | ||
[GoTalk] username=username |
;GoTalk Inbound [username] |
||
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 |
;PennyTel Inbound [username] |
||
Registration | |||
register=username:password@sip.pennytel.com/username |
BBPGlobal
Peer | User | ||
[BBPGlobal] username=username |
;BBP Global inbound [username] |
||
Registration | |||
register=username:password@sip2.bbpglobal.com/username |
Free World Dialpoint
Peer | User | ||
[WorldDialPoint] username=username |
;Wold Dial Point Inbound [username] |
||
Registration | |||
register=username:password@202.168.56.133 |
MyNetFone
Peer & User | |
[MyNetFone] type=friend |
|
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 |
|
Registration | |
register=username:password@iax.fwdout.com |