差分

移動先: 案内検索

Asterisk FUSION GW

2,027 バイト追加, 2010年11月12日 (金) 16:27
modules.conf
load=chan_sip.so
load=app_dial.so
===sip.conf===
フュージョン2回線、内線(後ろのAsteriskと繋ぐチャネル)2回線の例を示します。<br>
[general]
maxexpirey=3600
defaultexpirey=3600
registertimeout=300
context=incoming
port=5060
bindaddr=0.0.0.0
disallow=all
allow=ulaw
allow=alaw
allow=gsm
dtmfmode=auto
; [fusion1]
register => 815012345678:password1@fusion1/815012345678
; [fusion2]
register => 815012345679:password2@fusion2/815012345679
[fusion1]
type=friend
username=815012345678
fromuser=815012345678
secret=password1
canreinvite=no
context=incoming
insecure=port,invite
fromdomain=f02.sip.0038.net
host=f02.sip.0038.net
dtmfmode=inband
allowsubscribe=no
nat=never
[fusion2]
type=friend
username=815012345679
fromuser=815012345679
secret=password2
canreinvite=no
context=incoming
insecure=port,invite
fromdomain=f02.sip.0038.net
host=f02.sip.0038.net
dtmfmode=inband
allowsubscribe=no
nat=never
[1001]
type=friend
username=1001
secret=pass1234
canreinvite=no
host=dynamic
context=default
dtmfmode=auto
fusioncom=no
[1002]
type=friend
username=1002
secret=pass1234
canreinvite=no
host=dynamic
context=default
dtmfmode=auto
fusioncom=no
===extensions.conf===
[general]
writeprotect=no
priorityjumping=no
[globals]
INTERNAL1=1001
INTERNAL2=1002
SIPACCOUNT1=815012345678
SIPACCOUNT2=815012345679
[incoming]
exten => ${SIPACCOUNT1},1,AGI(incoming.agi)
exten => ${SIPACCOUNT1},n,Dial(SIP/${INTERNAL1})
exten => ${SIPACCOUNT1},n,Hangup
exten => ${SIPACCOUNT2},1,AGI(incoming.agi)
exten => ${SIPACCOUNT2},n,Dial(SIP/${INTERNAL2})
exten => ${SIPACCOUNT2},n,Hangup
[default]
exten => _98.,1,SetCallerID(${SIPACCOUNT1})
exten => _98.,n,AGI(outgoing.agi)
exten => _98.,n,Dial(SIP/${EXTEN:2}@fusion1)
exten => _98.,n,Hangup
exten => _99.,1,SetCallerID(${SIPACCOUNT2})
exten => _99.,n,AGI(outgoing.agi)
exten => _99.,n,Dial(SIP/${EXTEN:2}@fusion2)
exten => _99.,n,Hangup
外線発信のプレフィックスは98と99にしてあります。

案内メニュー

VoIp-Info.jp

HP Directplus -HP公式オンラインストア-