File:  [NetBSD Developer Wiki] / wikisrc / asterisk.mdwn
Revision 1.2: download - view: text, annotated - select for diffs
Sun Feb 5 07:14:36 2012 UTC (2 years, 2 months ago) by schmonz
Branches: MAIN
CVS tags: HEAD
dos2unix

Asterisk allows you to utilize NetBSD machine for telephone conversations. 

To install asterisk do: 
    
    # cd /usr/pkgsrc/comms/asterisk
    # make install
    

To run asterisk during machine start add into _rc.local_ file following: 
    
    /usr/pkg/sbin/asterisk
    

Configuration files of asterisk located at: 
    
    /usr/pkg/etc/asterisk
    

List of devices which work well with Asterisk under NetBSD: 

  * Asotel 2FXO2FXS 
  * Asotel 6FXO 
  * D-Link DPH-80S (sip) 
  * D-Link DPH-120S 
  * D-Link DVG-2004S 
  * D-Link DVG-3004S 
  * D-Link DVG-2032S 
  * Sipura SPA901 
  * Sipura SPA3102 

List of devices which do not work well: 

  * AddPac AP1100F 8FXO 
  * AudioCodes 8FXO 
  * D-Link DVG-2032S 32FXO 
  * Sipura SPA400 

To register each FXO/FXS device in asterisk you should add into _sip.conf_ file following: 
    
    [1001]
    type=friend
    host=dynamic
    insecure=yes
    

Where [1001] is the number to call this device. Each device may have the appropriate number. After adding devices into configuration file do reload configuration: 
    
    #asterisk -r
    CLI> sip reload
    

To enable dialing of registered devices you should create basic dialing plan and add this dialing plan into '_extentions.conf_ file. For an example like this: 
    
    exten => _1001, 1, Dial(SIP/$(EXTEN)@1001, 30, S(600))
    

After changing dialing plan reload extensions: 
    
    #asterisk -r
    CLI> extensions reload 
    

See also [astrisk](http://www.asterisk.org) official page. 


CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb