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

Both sides previous revision Previous revision
Next revision
Previous revision
wiki:voip:asterisk:iax_conf [2012/11/16 16:55]
root
wiki:voip:asterisk:iax_conf [2014/12/26 18:31] (current)
Line 7: Line 7:
   * Veškerý provoz (**signalizace i audio**) používá **UDP port 4569**.   * 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.   * 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.1353081346.txt.gz · Last modified: 2014/12/26 18:31 (external edit)