; Inter-Asterisk eXchange driver definition ; ; This configuration is re-read at reload ; or with the CLI command ; iax2 reload ; ; General settings, like port number to bind to, and ; an option address (the default is to bind to all ; local addresses). ; [general] ;bindport=4569 ; bindport and bindaddr may be specified ; ; NOTE: bindport must be specified BEFORE bindaddr ; ; or may be specified on a specific bindaddr if followed by ; ; colon and port (e.g. bindaddr=192.168.0.1:4569) ;bindaddr=192.168.0.1 ; more than once to bind to multiple ; ; addresses, but the first will be the ; ; default ; ; Set iaxcompat to yes if you plan to use layered switches or ; some other scenario which may cause some delay when doing a ; lookup in the dialplan. It incurs a small performance hit to ; enable it. This option causes Asterisk to spawn a separate thread ; when it receives an IAX DPREQ (Dialplan Request) instead of ; blocking while it waits for a response. ; ;iaxcompat=yes ; ; Disable UDP checksums (if nochecksums is set, then no checkums will ; be calculated/checked on systems supporting this feature) ; ;nochecksums=no ; ; ; For increased security against brute force password attacks ; enable "delayreject" which will delay the sending of authentication ; reject for REGREQ or AUTHREP if there is a password. ; ;delayreject=yes ; ; You may specify a global default AMA flag for iaxtel calls. It must be ; one of 'default', 'omit', 'billing', or 'documentation'. These flags ; are used in the generation of call detail records. ; ;amaflags=default ; ; You may specify a default account for Call Detail Records in addition ; to specifying on a per-user basis ; ;accountcode=lss0101 ; ; You may specify a global default language for users. ; Can be specified also on a per-user basis ; If omitted, will fallback to english ; ;language=en ; ; Specify bandwidth of low, medium, or high to control which codecs are used ; in general. ; bandwidth=low ; ; You can also fine tune codecs here using "allow" and "disallow" clauses ; with specific codecs. Use "all" to represent all formats. ; ;allow=all ; same as bandwidth=high ;disallow=g723.1 ; Hm... Proprietary, don't use it... disallow=lpc10 ; Icky sound quality... Mr. Roboto. ;allow=gsm ; Always allow GSM, it's cool :) ; ; You can adjust several parameters relating to the jitter buffer. ; The jitter buffer's function is to compensate for varying ; network delay. ; ; There are presently two jitterbuffer implementations available for Asterisk ; and chan_iax2; the classic and the new, channel/application independent ; implementation. These are controlled at compile-time. The new jitterbuffer ; additionally has support for PLC which greatly improves quality as the ; jitterbuffer adapts size, and in compensating for lost packets. ; ; All the jitter buffer settings except dropcount are in milliseconds. ; The jitter buffer works for INCOMING audio - the outbound audio ; will be dejittered by the jitter buffer at the other end. ; ; jitterbuffer=yes|no: global default as to whether you want ; the jitter buffer at all. ; ; forcejitterbuffer=yes|no: in the ideal world, when we bridge VoIP channels ; we don't want to do jitterbuffering on the switch, since the endpoints ; can each handle this. However, some endpoints may have poor jitterbuffers ; themselves, so this option will force * to always jitterbuffer, even in this ; case. ; [This option presently applies only to the new jitterbuffer implementation] ; ; dropcount: the jitter buffer is sized such that no more than "dropcount" ; frames would have been "too late" over the last 2 seconds. ; Set to a small number. "3" represents 1.5% of frames dropped ; [This option is not applicable to, and ignored by the new jitterbuffer implementation] ; ; maxjitterbuffer: a maximum size for the jitter buffer. ; Setting a reasonable maximum here will prevent the call delay ; from rising to silly values in extreme situations; you'll hear ; SOMETHING, even though it will be jittery. ; ; resyncthreshold: when the jitterbuffer notices a significant change in delay ; that continues over a few frames, it will resync, assuming that the change in ; delay was caused by a timestamping mix-up. The threshold for noticing a ; change in delay is measured as twice the measured jitter plus this resync ; threshold. ; Resyncing can be disabled by setting this parameter to -1. ; [This option presently applies only to the new jitterbuffer implementation] ; ; maxjitterinterps: the maximum number of interpolation frames the jitterbuffer ; should return in a row. Since some clients do not send CNG/DTX frames to ; indicate silence, the jitterbuffer will assume silence has begun after ; returning this many interpolations. This prevents interpolating throughout ; a long silence. ; [This option presently applies only to the new jitterbuffer implementation] ; ; maxexcessbuffer: If conditions improve after a period of high jitter, ; the jitter buffer can end up bigger than necessary. If it ends up ; more than "maxexcessbuffer" bigger than needed, Asterisk will start ; gradually decreasing the amount of jitter buffering. ; [This option is not applicable to, and ignored by the new jitterbuffer implementation] ; ; minexcessbuffer: Sets a desired mimimum amount of headroom in ; the jitter buffer. If Asterisk has less headroom than this, then ; it will start gradually increasing the amount of jitter buffering. ; [This option is not applicable to, and ignored by the new jitterbuffer implementation] ; ; jittershrinkrate: when the jitter buffer is being gradually shrunk ; (or enlarged), how many millisecs shall we take off per 20ms frame ; received? Use a small number, or you will be able to hear it ; changing. An example: if you set this to 2, then the jitter buffer ; size will change by 100 millisecs per second. ; [This option is not applicable to, and ignored by the new jitterbuffer implementation] jitterbuffer=no forcejitterbuffer=no ;dropcount=2 ;maxjitterbuffer=1000 ;maxjitterinterps=10 ;resyncthreshold=1000 ;maxexcessbuffer=80 ;minexcessbuffer=10 ;jittershrinkrate=1 ;trunkfreq=20 ; How frequently to send trunk msgs (in ms) ; Should we send timestamps for the individual sub-frames within trunk frames? ; There is a small bandwidth use for these (less than 1kbps/call), but they ; ensure that frame timestamps get sent end-to-end properly. If both ends of ; all your trunks go directly to TDM, _and_ your trunkfreq equals the frame ; length for your codecs, you can probably suppress these. The receiver must ; also support this feature, although they do not also need to have it enabled. ; ; trunktimestamps=yes ; ; Minimum and maximum amounts of time that IAX peers can request as ; a registration expiration interval (in seconds). ; minregexpire = 60 ; maxregexpire = 60 ; ; We can register with another IAX server to let him know where we are ; in case we have a dynamic IP address for example ; ; Register with tormenta using username marko and password secretpass ; register => wgt8:somesecret@10.1.2.3 ; tos=lowdelay ; autokill=yes ; Various entities for external communications [remote-user] type=user username=remote-user secret=getlost host=dynamic allow=ulaw context=inside-extens transfer=no callerid="Road Warrior"<212-655-3084> [remote-user] type=peer username=remote-user secret=getlost host=dynamic disallow=all allow=ulaw [remote-office] type=peer username=remote-office secret=getlost host=192.168.2.100 disallow=all allow=ulaw [itsp] type=peer username=server-user host=service.ip.com secret=server-secret disallow=all allow=ulaw,gsm