asterisk13では、動作しないので、asterisk15で動作
入れたもの
opkg update
opkg install asterisk15-app-system
opkg install asterisk15
opkg install asterisk15-app-confbridge
#opkg install asterisk15-app-read
#opkg install asterisk15-app-record
#opkg install asterisk15-app-speech
#opkg install asterisk15-bridge-builtin-features
#opkg install asterisk15-bridge-simple
#opkg install asterisk15-bridge-softmix
opkg install asterisk15-cdr
opkg install asterisk15-cdr-csv
opkg install asterisk15-chan-sip
opkg install asterisk15-codec-gsm
opkg install asterisk15-codec-ilbc
opkg install asterisk15-codec-lpc10
opkg install asterisk15-curl
opkg install asterisk15-format-gsm
#opkg install asterisk15-format-h263
#opkg install asterisk15-format-h264
#opkg install asterisk15-format-ilbc
#opkg install asterisk15-format-pcm
#opkg install asterisk15-format-sln
#opkg install asterisk15-format-vox
opkg install asterisk15-format-wav
opkg install asterisk15-format-wav-gsm
opkg install asterisk15-func-db
opkg install asterisk15-func-groupcount
opkg install asterisk15-func-module
opkg install asterisk15-pjsip
opkg install asterisk15-res-adsi
opkg install asterisk15-res-calendar
opkg install asterisk15-res-musiconhold
opkg install asterisk15-res-phoneprov
opkg install asterisk15-res-pjproject
opkg install asterisk15-res-pjsip-phoneprov
opkg install asterisk15-res-rtp-asterisk
opkg install asterisk15-res-rtp-multicast
opkg install asterisk15-res-smdi
opkg install asterisk15-res-sorcery
opkg install asterisk15-res-speech
opkg install asterisk15-sounds
opkg install asterisk15-voicemail
#opkg install asterisk15-res-hep
#opkg install asterisk15-res-hep-pjsip
#opkg install asterisk15-res-hep-rtcp
root@LEDEg300nh:~# cat /etc/asterisk/pjsip.conf
[transport-udp]
type=transport
protocol=udp ;udp,tcp,tls,ws,wss
bind=0.0.0.0
;port=5060
;[simpletrans]
;type=transport
;protocol=udp
;bind=192.168.10.10
[hikari-denwa]
type=registration
transport=transport-udp
outbound_auth=hikari-trunk
server_uri=sip:192.168.10.1
client_uri=sip:6@192.168.10.1
retry_interval=60
[hikari-trunk]
type=auth
auth_type=userpass
password=0007
username=0007
[hikari-trunk]
type=aor
contact=sip:192.168.10.1
[hikari-trunk]
type=endpoint
transport=transport-udp
context=from-hikari
disallow=all
allow=ulaw
outbound_auth=hikari-trunk
aors=hikari-trunk
direct_media=no
from_user=7
from_domain=192.168.10.1
dtmf_mode=inband
[hikari-trunk]
type=identify
endpoint=hikari-trunk
match=192.168.10.1
root@LEDEg300nh:~# cat /etc/asterisk/sip.conf
[general]
context=default
port=5061
bindaddr=0.0.0.0:5061
language=ja
[201]
type=friend
defaultuser=201
secret=201
canreinvite=no
host=dynamic
[202]
type=friend
defaultuser=202
secret=202
canreinvite=no
host=dynamic
[203]
type=friend
defaultuser=203
secret=203
canreinvite=no
host=dynamic
[204]
type=friend
defaultuser=204
secret=204
canreinvite=no
host=dynamic
[205]
type=friend
defaultuser=205
secret=205
canreinvite=no
host=dynamic
[207]
type=friend
defaultuser=206
secret=206
canreinvite=no
host=dynamic
[207]
type=friend
defaultuser=207
secret=207
canreinvite=no
host=dynamic
root@LEDEg300nh:~# cat /etc/asterisk/extensions.conf
[default]
exten => _20X,1,Dial(SIP/${EXTEN},30,r)
exten => _20X,2,Hangup()
;Hikari-Denwa Dial-out Sample(PJSIP)
exten => _0.,1,Set(CALLERID(num)=${MYNUMBER})
exten => _0.,n,Set(CALLERID(name)=${MYNUMBER})
exten => _0.,n,Dial(PJSIP/${EXTEN}@hikari-trunk)
exten => _0.,n,Hangup()
;dial-in
[from-hikari]
exten => s,1,Set(FROMNUM=${CALLERID(number)})
exten => s,n,Set(CALLERID(name)=${FROMNUM})
exten => s,n,Dial(SIP/201&SIP/202&SIP/203&SIP/204&SIP/205&SIP/206&SIP/207)
exten => _0.,n,Hangup()
root@LEDEg300nh:~# opkg list-installed asterisk*
asterisk15 - 15.1.2-2
asterisk15-app-confbridge - 15.1.2-2
asterisk15-app-system - 15.1.2-2
asterisk15-bridge-builtin-features - 15.1.2-2
asterisk15-bridge-simple - 15.1.2-2
asterisk15-bridge-softmix - 15.1.2-2
asterisk15-cdr - 15.1.2-2
asterisk15-cdr-csv - 15.1.2-2
asterisk15-chan-sip - 15.1.2-2
asterisk15-codec-gsm - 15.1.2-2
asterisk15-codec-ilbc - 15.1.2-2
asterisk15-codec-lpc10 - 15.1.2-2
asterisk15-curl - 15.1.2-2
asterisk15-format-gsm - 15.1.2-2
asterisk15-format-wav - 15.1.2-2
asterisk15-func-db - 15.1.2-2
asterisk15-func-groupcount - 15.1.2-2
asterisk15-func-module - 15.1.2-2
asterisk15-pjsip - 15.1.2-2
asterisk15-res-adsi - 15.1.2-2
asterisk15-res-calendar - 15.1.2-2
asterisk15-res-hep - 15.1.2-2
asterisk15-res-hep-pjsip - 15.1.2-2
asterisk15-res-hep-rtcp - 15.1.2-2
asterisk15-res-musiconhold - 15.1.2-2
asterisk15-res-phoneprov - 15.1.2-2
asterisk15-res-pjproject - 15.1.2-2
asterisk15-res-pjsip-phoneprov - 15.1.2-2
asterisk15-res-rtp-asterisk - 15.1.2-2
asterisk15-res-rtp-multicast - 15.1.2-2
asterisk15-res-smdi - 15.1.2-2
asterisk15-res-sorcery - 15.1.2-2
asterisk15-res-speech - 15.1.2-2
asterisk15-sounds - 15.1.2-2
asterisk15-voicemail - 15.1.2-2