User Tools

Site Tools


wiki:voip:asterisk:iax_conf

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
wiki:voip:asterisk:iax_conf [2012/11/16 16:40]
root vytvořeno
wiki:voip:asterisk:iax_conf [2014/12/26 18:31] (current)
Line 1: Line 1:
 ====== iax.conf ====== ====== iax.conf ======
  
-IAX2 - Inter-Asterisk eXchange protocol+  * IAX2 - Inter-Asterisk eXchange protocol 
 +  * Vyvinut speciálně pro účely propojování Asterisků napříč sítěmi a speciálně pro případy kdy je v cestě firewall či NAT (s čímž mívá SIP problém). 
 +  * IAX2 je navržen tak, aby používal co nejméně portů a tím usnadnil průchod přes FW a NAT. 
 +  * IAX2 byl dokonce standardizován [[http://tools.ietf.org/html/rfc5456|RFC 5456]] v roce 2009, nestal se však populárním. 
 +  * Veškerý provoz (**signalizace i audio**) používá **UDP port 4569**. 
 +  * Pod jednou IAX hlavičkou lze přenášet více hovorových kanálů současně - úspora hlaviček při několika souběžných hovorech. 
 + 
 +<code> 
 +[general] 
 +autokill=yes   ; don't stall for a long time if other endpoint doesn't respond 
 +srvlookup=yes  ; enable DNS SRV lookups for outbound calls 
 + 
 +[office-phone](!)    ; template for IAX-based office phones 
 +type=friend          ; Asterisk will allow calls to and from this phone 
 +host=dynamic         ; inform Asterisk that the phone will tell us where 
 +                     ;   it is on the network 
 +secret=my5UP3rp@s5!  ; a secure password -- which means DON'T USE THIS ONE! 
 +context=LocalSets    ; the context where incoming requests will enter the dialplan 
 +disallow=all         ; reset the available voice codecs 
 +allow=ulaw           ; prefer the ulaw codec 
 +allow=alaw           ; but also allow the alaw codec 
 + 
 +[0000FFFF0004](office-phone) ; define our first phone with the office-phone template 
 + 
 +[0000FFFF0005](office-phone) ; define another phone with our office-phone templat 
 +</code> 
 + 
 +  * **type** - liší se od použití v sip.conf 
 +    * peer - jen odchozí hovory 
 +    * user - jen příchozí hovory 
 +    * friend - obousměrné hovory 
 + 
 +===== Aplikace změn: ===== 
 +> $ **sudo asterisk -r** 
 +> *CLI> **module reload chan_iax2.so** 
 + 
 +> *CLI> **iax2 show peers** 
 +> *CLI> **iax2 show users** 
wiki/voip/asterisk/iax_conf.1353080427.txt.gz · Last modified: 2014/12/26 18:31 (external edit)