Peers & Trunks: Difference between revisions

From KlavoWiki
Jump to navigationJump to search
 
(4 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">&nbsp;</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>
&nbsp;</td>
<td width="35">&nbsp;</td>
<td valign="top">[lan-codec](!)<br>
disallow=all<br>
allow=ulaw<br>
[wan-codec](!)<br>
disallow=all<br>
allow=g729<br>
&nbsp;</td>
</tr>
</table>
== SIP Configuration ==
=== GoTalk ===
<table border="0" cellspacing="0" cellpadding="0" width="500">
<tr>
<td width="120">&nbsp;</td>
<td align="center"><b>Peer</b></td>
<td align="center" width="35">&nbsp;</td>
<td align="center"><b>User</b></td>
</tr>
<tr>
<td width="120">&nbsp;</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">&nbsp;</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">&nbsp;</td>
<td valign="top" colspan="3"><hr></td>
</tr>
<tr>
<td width="120">&nbsp;</td>
<td valign="top">Registration</td>
<td valign="top">&nbsp;</td>
<td valign="top">&nbsp;</td>
</tr>
<tr>
<td width="120">&nbsp;</td>
<td valign="top" colspan="3">register=username:password@sip.gotalk.com/username</td>
</tr>
<tr>
<td width="120">&nbsp;</td>
<td valign="top" colspan="3">&nbsp;</td>
</tr>
<tr>
<td width="120">&nbsp;</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">&nbsp;</td>
<td align="center"><b>Peer</b></td>
<td align="center" width="35">&nbsp;</td>
<td align="center"><b>User</b></td>
</tr>
<tr>
<td width="120">&nbsp;</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">&nbsp;</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">&nbsp;</td>
<td valign="top" colspan="3"><hr></td>
</tr>
<tr>
<td width="120">&nbsp;</td>
<td valign="top">Registration</td>
<td valign="top">&nbsp;</td>
<td valign="top">&nbsp;</td>
</tr>
<tr>
<td width="120">&nbsp;</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">&nbsp;</td>
<td align="center"><b>Peer</b></td>
<td align="center" width="35">&nbsp;</td>
<td align="center"><b>User</b></td>
</tr>
<tr>
<td width="120">&nbsp;</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">&nbsp;</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">&nbsp;</td>
<td valign="top" colspan="3"><hr></td>
</tr>
<tr>
<td width="120">&nbsp;</td>
<td valign="top">Registration</td>
<td valign="top">&nbsp;</td>
<td valign="top">&nbsp;</td>
</tr>
<tr>
<td width="120">&nbsp;</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">&nbsp;</td>
<td align="center"><b>Peer</b></td>
<td align="center" width="35">&nbsp;</td>
<td align="center"><b>User</b></td>
</tr>
<tr>
<td width="120">&nbsp;</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">&nbsp;</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">&nbsp;</td>
<td valign="top" colspan="3"><hr></td>
</tr>
<tr>
<td width="120">&nbsp;</td>
<td valign="top">Registration</td>
<td valign="top">&nbsp;</td>
<td valign="top">&nbsp;</td>
</tr>
<tr>
<td width="120">&nbsp;</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">&nbsp;</td>
<td align="center"><b>Peer</b></td>
<td align="center" width="35">&nbsp;</td>
<td align="center"><b>User</b></td>
</tr>
<tr>
<td width="120">&nbsp;</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">&nbsp;</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">&nbsp;</td>
<td valign="top" colspan="3"><hr></td>
</tr>
<tr>
<td width="120">&nbsp;</td>
<td valign="top">Registration</td>
<td valign="top">&nbsp;</td>
<td valign="top">&nbsp;</td>
</tr>
<tr>
<td width="120">&nbsp;</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">&nbsp;</td>
<td align="center"><b>Peer &amp; User</b></td>
</tr>
<tr>
<td width="120">&nbsp;</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">&nbsp;</td>
<td valign="top"><hr></td>
</tr>
<tr>
<td width="120">&nbsp;</td>
<td valign="top">Registration</td>
</tr>
<tr>
<td width="120">&nbsp;</td>
<td valign="top">
register=username:password@iax.fwdout.com</td>
</tr>
<tr>
<td width="120">&nbsp;</td>
<td valign="top"></td>
</tr>
<tr>
<td width="120">&nbsp;</td>
<td valign="top">
[internal]<br>
;fwdOUT<br>
exten =&gt; _01X.,1,Set(CALLERID(all)=&quot;Klaverstyn&quot; &lt;6173???????&gt;)<br>
exten =&gt; _01X.,n,Dial(IAX2/username@fwdOUT/${EXTEN:2},60)<br>
exten =&gt; _01X.,n,Congestion<br>
<br>
[fromfwdOUT]<br>
exten =&gt; _61[2378]XXXXXXXX,1,Dial(SIP/GoTalk/0${EXTEN:2},60)<br>
exten =&gt; _61[2378]XXXXXXXX,n,HangUp<br>
<br>
exten =&gt; _614XXXXXXXX,1,Dial(SIP/GoTalk/0${EXTEN:2},60L(1800000:1790000))<br>
exten =&gt; _614XXXXXXXX,n,HangUp<br>
<br>
exten =&gt; _611800XXXXXX,1,Dial(SIP/GoTalk/${EXTEN:2},60)<br>
exten =&gt; _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">

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
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