2015年10月7日 星期三

Asterisk 設定


參考 http://daydreamer.idv.tw/rewrite.php/read-22.html

/etc/asterisk/sip.conf
[0000]
    type=friend
    secret=ks1234
    qualify=yes
    nat=no
    host=dynamic
    canreinvite=yes
    context=myfirstexample
    videosupport=yes
    allow=h264
    allow=h263
    allow=vp8

/etc/asterisk/extensions.conf
[myfirstexample]
exten => 0000,1,Dial(SIP/0000,30,Ttm)
exten => 0000,2,Hangup