asterisk 三方通话方案

vim extensions.conf
[default]
exten => _XXXX,1,Set(DYNAMIC_FEATURES=nway-start)
exten => _XXXX,n,Dial(SIP/${EXTEN})

[dynamic-nway-invite]
exten => 0,1,noop(dynamic-nway-invite)
exten => 0,n,Read(DEST,dial,,i)
exten => 0,n,Set(DYNAMIC_FEATURES=nway-inv#nway-noinv)
exten => 0,n,Dial(Local/${DEST}@dynamic-nway-dest,,g)
;exten => 0,n,Set(DYNAMIC_FEATURES=) 
exten => 0,n,Goto(dynamic-nway,8600,1)
exten => i,1,Goto(dynamic-nway,8600,1)

[dynamic-nway-dest]
exten => _XXXX,1,noop(dynamic-nway-dest)
exten => _XXXX,n,Dial(SIP/${EXTEN})
exten => _XXXX,n,Macro(nway-ok)

[dynamic-nway]
exten => _XXXX,1,noop(dynamic-nway)
exten => _XXXX,n,Answer
exten => _XXXX,n,Set(MEETME_EXIT_CONTEXT=dynamic-nway-invite)
exten => _XXXX,n,Set(DYNAMIC_FEATURES=nway-inv#nway-noinv)
exten => _XXXX,n,MeetMe(${EXTEN},pdMX)
exten => _XXXX,n,Set(DYNAMIC_FEATURES=)
exten => _XXXX,n,Hangup

[macro-nway-start]
exten => s,1,noop(macro-nway-start)
exten => s,n,Set(CONFNO=8600)
exten => s,n,ChannelRedirect(${BRIDGEPEER},dynamic-nway,${CONFNO},1)
exten => s,n,Read(DEST,dial,,i)
exten => s,n,Set(DYNAMIC_FEATURES=nway-noinv#nway-inv)
exten => s,n,Dial(Local/${DEST}@dynamic-nway-dest,,gtT)
exten => s,n,Set(DYNAMIC_FEATURES=)
exten => s,n,MeetMe(${CONFNO},pdMX)
exten => s,n,Goto(dynamic-nway,${CONFNO},1)

[macro-nway-ok]
exten => s,1,noop(macro-nway-ok)
exten => s,n,ChannelRedirect(${BRIDGEPEER},dynamic-nway,8600,1)

[macro-nway-notok]
exten => s,1,noop(macro-nway-notok)
exten => s,n,SoftHangup(${BRIDGEPEER})



 vi features.conf 

nway-start => *00,caller,Macro,nway-start
nway-inv => *11,caller,Macro,nway-ok
nway-noinv => *33,caller,Macro,nway-notok


1001  打1002 接通  按*00 输入1003 1003接通  ok  再按*11  就可以了!

你可能感兴趣的:(方案,asterisk,三方通话)