<html>
<head>
<base href="https://wiki.asterisk.org/wiki">
<link rel="stylesheet" href="/wiki/s/2036/1/7/_/styles/combined.css?spaceKey=AST&forWysiwyg=true" type="text/css">
</head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
<h2><a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+SIP+Connections">Asterisk SIP Connections</a></h2>
<h4>Page <b>edited</b> by <a href="https://wiki.asterisk.org/wiki/display/~mdavenport">Malcolm Davenport</a>
</h4>
<br/>
<h4>Changes (1)</h4>
<div id="page-diffs">
<table class="diff" cellpadding="0" cellspacing="0">
<tr><td class="diff-unchanged" >Fishook: We need a single spot to compile the definitive guide to Asterisk's SIP capabilities. <br></td></tr>
<tr><td class="diff-added-lines" style="background-color: #dfd;"> <br>h2. Configuration <br> <br>{info} <br>For starters, here are all of the configuration options for the general section and the configuration of a peer, stripped of comments. It's not a short list <br>{info} <br> <br>{noformat} <br> <br>[general] <br>context=default <br>allowguest=no <br>math_auth_username=yes <br>allowoverlap=yes <br>allowtransfer=yes <br>realm=asterisk <br>domainsasrealm=no <br>udpbindaddr=0.0.0.0:5060 <br>disallowed_methods= <br>tcpenable=yes <br>tcpbindaddr=0.0.0.0:5060 <br>tlsenable=yes <br>tlsbindaddr=0.0.0.0:5061 <br>srvlookup=yes <br>pedantic=yes <br>tos_sip=cs3 <br>tos_audio=ef <br>tos_video=af41 <br>tos_text=af41 <br>cos_sip=3 <br>cos_audio=5 <br>cos_video=4 <br>cos_text=3 <br>maxexpiry=3600 <br>minexpiry=60 <br>defaultexpiry=120 <br>mwiexpiry=3600 <br>maxforwards=70 <br>qualifyfreq=60 <br>qualifygap=100 <br>qualifypeers=1 <br>notifymimetype=text/plain <br>buggymwi=no <br>mwi_from= <br>vmexten=asterisk <br>preferred_codec_only=yes <br>disallow=all <br>allow=ulaw:20,alaw:20,g719,siren14,siren7,g722,slin16,slin:20,g726:20,g726aal2:20,adpcm:20,gsm:20,ilbc:30,speex16,speex:20,lpc10:20,g729:20,g723:30,h264,mpeg4,h263p,h263,h261,png,jpeg,t140,red <br>mohinterpret=default <br>mohsuggest=default <br>parkinglot=plaza <br>language=en <br>relaxdtmf=no <br>trustrpid=yes <br>sendrpid=yes <br>rpid_update=yes <br>prematuremedia=no <br>progressinband=never <br>useragent=Asterisk PBX <br>promiscredir=no <br>usereqphone=no <br>dtmfmode=rfc2833 <br>compactheaders=yes <br>videosupport=yes <br>maxcallbitrate=384 <br>callevents=yes <br>authfailureevents=yes <br>alwaysauthreject=yes <br>auth_options_requests=yes <br>g726nonstandard=no <br>;outboundudpproxy=udp://proxy.provider.domain:5060 <br>;outboundtcpproxy=tcp://proxy.provider.domain:5060 <br>;ouboundtlsproxy=tls://proxy.provider.domain:5061 <br>matchexternaddrlocally=no <br>dynamic_exclude_static=yes <br>contactdeny=0.0.0.0/0.0.0.0 <br>contactpermit=192.168.0.0/255.255.0.0 <br>engine=asterisk <br>regcontext=sipregistrations <br>regextenonqualify=no <br>shrinkcallerid=yes <br>use_q850_reason=no <br>;tlscertfile=/path/to/certificate.pem <br>;tlsprivatekey=/path/to/private.pem <br>;tlscafile=/path/to/certificate.ca <br>;tlscadir=/path/to/ca/dir <br>tlsdontverifyserver=no <br>tlscipher=ALL <br>tlsclientmethod=tlsv1 <br>t1min=100 <br>timert1=500 <br>timerb=32000 <br>rtptimeout=60 <br>rtpholdtimeout=300 <br>rtpkeepalive=0 <br>session-timers=originate <br>session-expires=600 <br>session-minse=90 <br>session-refresher=uas <br>sipdebug=no <br>recordhistory=yes <br>dumphistory=yes <br>allowsubscribe=yes <br>subscribecontext=default <br>notifyringing=yes <br>notifyhold=yes <br>notifycid=yes <br>callcounter=yes <br>t38pt_udptl=yes,fec,maxdatagram=400 <br>faxdetect=yes <br>;register=>[peer?][transport://]user[@domain][:secret[:authuser]]@host[:port][/extension][~expiry] <br>;register=>mypeer?tls://myuser@domain:password:authuser@my.host.com:5060/myextension~600 <br>registertimeout=20 <br>registerattempts=10 <br>;mwi => user[:secret[:authuser]]@host[:port]/mailbox <br>;mwi=>1234:password:authuser@myauthportprovider.com:6969/1234 <br>;localnet=192.168.0.0/255.255.0.0 <br>;externaddr=12.34.56.78:9900 <br>;externtcpport=9900 <br>;externtslport=12600 <br>;externhost=my.host.name <br>;externrefresh=180 <br>nat=no <br>;media_address=172.16.42.1 <br>subscribe_network_change_event=yes <br>directmedia=yes <br>directrtpsetup=no <br>;directmediadeny=0.0.0.0/0 <br>;directmediapermit=192.168.0.0/255.255.0.0 <br>ignoresdpversion=no <br>sdpsession=Asterisk PBX <br>sdpowner=root <br>encryption=no <br>rtcachefriends=yes <br>rtsavesysname=no <br>rtupdate=yes <br>rtautoclear=yes <br>ignoreregexpire=no <br>autodomain=yes <br>allowexternaldomains=no <br>;domain=mydomain.tld,mydomain-incoming <br>;fromdomain=mydomain.tld <br>snom_aoc_enabled=yes <br>jbenable=no <br>jbforce=no <br>jbmaxsize=200 <br>jbresyncthreshold=1000 <br>jbimpl=fixed <br>jbtargetextra=40 <br>jblog=no <br> <br>[authentication] <br>;auth=<user>:<secret>@<realm> <br>;auth=<user>#<md5secret>@<realm> <br> <br>[mypeer] <br>context=default <br>callingpres=allowed_passed_screen <br>deny=0.0.0.0/0.0.0.0 <br>permit=192.168.0.60/255.255.255.0 <br>;secret=AbCdEfG#$! <br>;md5secret= <br>;remotesecret= <br>transport=udp,tcp,tls <br>encrption=no <br>dtmfmode=rfc2833 <br>directmedia=yes <br>nat=no <br>callgroup=1 <br>pickupgroup=1 <br>language=en <br>disallow=all <br>allow=ulaw,alaw,g722 <br>insecure=no <br>trustrpid=yes <br>sendrpid=yes <br>progressinband=never <br>promiscredir=no <br>useclientcode=yes <br>;setvar= <br>callerid=My Peer <800 555 123> <br>;amaflags= <br>callcounter=yes <br>busylevel=2 <br>allowoverlap=yes <br>allowsubscribeyes <br>allowtransfer=yes <br>ignoresdpversion=no <br>subscribecontext=default <br>;template= <br>videosupport=yes <br>maxcallbitrate=384 <br>rfc2833compensate=no <br>mailbox=mypeer@default <br>session-timers=originate <br>session-expires=600 <br>session-minse=90 <br>session-refresher=uas <br>t38pt_usertpsource=no <br>;regexten=1234 <br>;fromdomain=provider.sip.domain <br>;fromuser=yourusername <br>;host=dynamic <br>;port=5060 <br>qualify=yes <br>;defaultip= <br>;defaultuser= <br>rtptimeout=60 <br>rtphodltimeout=300 <br>;outboundproxy=my.proxy.tld <br>;callbackextension=1234 <br>registertrying=100 <br>timert1=500 <br>timerb=32000 <br>qualifyfreq=60 <br>contactdeny=0.0.0.0/0.0.0.0 <br>contactpermit=192.168.0.0/255.255.0.0 <br>;diretmediadeny=0.0.0.0/0 <br>;directmediapermit=192.168.0.0/255.255.0.0 <br>;unsolicited_mailbox=1234@SIP_Remote <br>use_q850_reason=no <br>maxforwards=70 <br>encryption=no <br>{noformat} <br></td></tr>
</table>
</div> <h4>Full Content</h4>
<div class="notificationGreySide">
<p>Fishook: We need a single spot to compile the definitive guide to Asterisk's SIP capabilities.</p>
<h2><a name="AsteriskSIPConnections-Configuration"></a>Configuration</h2>
<div class='panelMacro'><table class='infoMacro'><colgroup><col width='24'><col></colgroup><tr><td valign='top'><img src="/wiki/images/icons/emoticons/information.gif" width="16" height="16" align="absmiddle" alt="" border="0"></td><td>For starters, here are all of the configuration options for the general section and the configuration of a peer, stripped of comments. It's not a short list</td></tr></table></div>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>
[general]
context=default
allowguest=no
math_auth_username=yes
allowoverlap=yes
allowtransfer=yes
realm=asterisk
domainsasrealm=no
udpbindaddr=0.0.0.0:5060
disallowed_methods=
tcpenable=yes
tcpbindaddr=0.0.0.0:5060
tlsenable=yes
tlsbindaddr=0.0.0.0:5061
srvlookup=yes
pedantic=yes
tos_sip=cs3
tos_audio=ef
tos_video=af41
tos_text=af41
cos_sip=3
cos_audio=5
cos_video=4
cos_text=3
maxexpiry=3600
minexpiry=60
defaultexpiry=120
mwiexpiry=3600
maxforwards=70
qualifyfreq=60
qualifygap=100
qualifypeers=1
notifymimetype=text/plain
buggymwi=no
mwi_from=
vmexten=asterisk
preferred_codec_only=yes
disallow=all
allow=ulaw:20,alaw:20,g719,siren14,siren7,g722,slin16,slin:20,g726:20,g726aal2:20,adpcm:20,gsm:20,ilbc:30,speex16,speex:20,lpc10:20,g729:20,g723:30,h264,mpeg4,h263p,h263,h261,png,jpeg,t140,red
mohinterpret=default
mohsuggest=default
parkinglot=plaza
language=en
relaxdtmf=no
trustrpid=yes
sendrpid=yes
rpid_update=yes
prematuremedia=no
progressinband=never
useragent=Asterisk PBX
promiscredir=no
usereqphone=no
dtmfmode=rfc2833
compactheaders=yes
videosupport=yes
maxcallbitrate=384
callevents=yes
authfailureevents=yes
alwaysauthreject=yes
auth_options_requests=yes
g726nonstandard=no
;outboundudpproxy=udp://proxy.provider.domain:5060
;outboundtcpproxy=tcp://proxy.provider.domain:5060
;ouboundtlsproxy=tls://proxy.provider.domain:5061
matchexternaddrlocally=no
dynamic_exclude_static=yes
contactdeny=0.0.0.0/0.0.0.0
contactpermit=192.168.0.0/255.255.0.0
engine=asterisk
regcontext=sipregistrations
regextenonqualify=no
shrinkcallerid=yes
use_q850_reason=no
;tlscertfile=/path/to/certificate.pem
;tlsprivatekey=/path/to/private.pem
;tlscafile=/path/to/certificate.ca
;tlscadir=/path/to/ca/dir
tlsdontverifyserver=no
tlscipher=ALL
tlsclientmethod=tlsv1
t1min=100
timert1=500
timerb=32000
rtptimeout=60
rtpholdtimeout=300
rtpkeepalive=0
session-timers=originate
session-expires=600
session-minse=90
session-refresher=uas
sipdebug=no
recordhistory=yes
dumphistory=yes
allowsubscribe=yes
subscribecontext=default
notifyringing=yes
notifyhold=yes
notifycid=yes
callcounter=yes
t38pt_udptl=yes,fec,maxdatagram=400
faxdetect=yes
;register=>[peer?][transport://]user[@domain][:secret[:authuser]]@host[:port][/extension][~expiry]
;register=>mypeer?tls://myuser@domain:password:authuser@my.host.com:5060/myextension~600
registertimeout=20
registerattempts=10
;mwi => user[:secret[:authuser]]@host[:port]/mailbox
;mwi=>1234:password:authuser@myauthportprovider.com:6969/1234
;localnet=192.168.0.0/255.255.0.0
;externaddr=12.34.56.78:9900
;externtcpport=9900
;externtslport=12600
;externhost=my.host.name
;externrefresh=180
nat=no
;media_address=172.16.42.1
subscribe_network_change_event=yes
directmedia=yes
directrtpsetup=no
;directmediadeny=0.0.0.0/0
;directmediapermit=192.168.0.0/255.255.0.0
ignoresdpversion=no
sdpsession=Asterisk PBX
sdpowner=root
encryption=no
rtcachefriends=yes
rtsavesysname=no
rtupdate=yes
rtautoclear=yes
ignoreregexpire=no
autodomain=yes
allowexternaldomains=no
;domain=mydomain.tld,mydomain-incoming
;fromdomain=mydomain.tld
snom_aoc_enabled=yes
jbenable=no
jbforce=no
jbmaxsize=200
jbresyncthreshold=1000
jbimpl=fixed
jbtargetextra=40
jblog=no
[authentication]
;auth=<user>:<secret>@<realm>
;auth=<user>#<md5secret>@<realm>
[mypeer]
context=default
callingpres=allowed_passed_screen
deny=0.0.0.0/0.0.0.0
permit=192.168.0.60/255.255.255.0
;secret=AbCdEfG#$!
;md5secret=
;remotesecret=
transport=udp,tcp,tls
encrption=no
dtmfmode=rfc2833
directmedia=yes
nat=no
callgroup=1
pickupgroup=1
language=en
disallow=all
allow=ulaw,alaw,g722
insecure=no
trustrpid=yes
sendrpid=yes
progressinband=never
promiscredir=no
useclientcode=yes
;setvar=
callerid=My Peer <800 555 123>
;amaflags=
callcounter=yes
busylevel=2
allowoverlap=yes
allowsubscribeyes
allowtransfer=yes
ignoresdpversion=no
subscribecontext=default
;template=
videosupport=yes
maxcallbitrate=384
rfc2833compensate=no
mailbox=mypeer@default
session-timers=originate
session-expires=600
session-minse=90
session-refresher=uas
t38pt_usertpsource=no
;regexten=1234
;fromdomain=provider.sip.domain
;fromuser=yourusername
;host=dynamic
;port=5060
qualify=yes
;defaultip=
;defaultuser=
rtptimeout=60
rtphodltimeout=300
;outboundproxy=my.proxy.tld
;callbackextension=1234
registertrying=100
timert1=500
timerb=32000
qualifyfreq=60
contactdeny=0.0.0.0/0.0.0.0
contactpermit=192.168.0.0/255.255.0.0
;diretmediadeny=0.0.0.0/0
;directmediapermit=192.168.0.0/255.255.0.0
;unsolicited_mailbox=1234@SIP_Remote
use_q850_reason=no
maxforwards=70
encryption=no
</pre>
</div></div>
</div>
<div id="commentsSection" class="wiki-content pageSection">
<div style="float: right;">
<a href="https://wiki.asterisk.org/wiki/users/viewnotifications.action" class="grey">Change Notification Preferences</a>
</div>
<a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+SIP+Connections">View Online</a>
|
<a href="https://wiki.asterisk.org/wiki/pages/diffpagesbyversion.action?pageId=11337974&revisedVersion=2&originalVersion=1">View Changes</a>
|
<a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+SIP+Connections?showComments=true&showCommentArea=true#addcomment">Add Comment</a>
</div>
</div>
</div>
</div>
</div>
</body>
</html>