Место вашей рекламы.

Заявка

 

 

Dynamic conference (Динамическая конференция) Asterisk

[globals]

DYNAMIC_FEATURES=nway-start

[from-sip] ; The context in sip.conf

exten => _6XXX,1,Set(DYNAMIC_FEATURES=nway-start)
exten => _6XXX,n,Dial(SIP/${EXTEN})

[dynamic-nway]
exten => _X.,1,NoOp("Context dynamic-nway")
exten => _X.,n,Answer()
exten => _X.,n,Set(CONFNO=${EXTEN})
exten => _X.,n,Set(MEETME_EXIT_CONTEXT=dynamic-nway-invite)
exten => _X.,n,Set(DYNAMIC_FEATURES=)
exten => _X.,n,MeetMe(${CONFNO},dMX)
exten => _X.,n,HangUp()

 

[dynamic-nway-invite]
exten => 0,1,NoOp("Context 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,${CONFNO},1)
exten => i,1,Goto(dynamic-nway,${CONFNO},1)

 

[dynamic-nway-dest]
exten => _X.,1,NoOp("Context dynamic-nway-dest")
exten => _X.,n,Dial(SIP/${EXTEN},50)

 

[macro-nway-start]
exten => s,1,NoOp("Macro macro-nway-start")
exten => s,n,Set(Coonf=${CHANNEL:4:4})
exten => s,n,MeetMeCount(${coonf},COUNT)
exten => s,n,ExecIf($[${COUNT}=0]?Set(CONFNO=${coonf}))
exten => s,n,NoOp("Number conference is ${CONFNO}")
exten => s,n,ChannelRedirect(${BRIDGEPEER},dynamic-nway,${CONFNO},1)
exten => s,n,Read(DEST,dial,,i)
exten => s,n,Set(DYNAMIC_FEATURES=nway-inv#nway-noinv)
exten => s,n,Dial(Local/${DEST}@dynamic-nway-dest,,g)
exten => s,n,Set(DYNAMIC_FEATURES=)
exten => s,n,ChannelRedirect(${CDR(channel)},dynamic-nway,${CONFNO},1)
exten => s,n,Goto(dynamic-nway,${CONFNO},1)

 

[macro-nway-ok]
exten => s,1,NoOp("Macro macro-nway-ok")
exten => s,n,ChannelRedirect(${BRIDGEPEER},dynamic-nway,${CONFNO},1)

 

[macro-nway-notok]
exten => s,1,NoOp("Macro macro-nway-notok")
exten => s,n,SoftHangUp(${BRIDGEPEER})

 

Example: (101 need to add 103 in the conference)
1. 101 – call – 102
2. 101 dial  *0 and  
dialtone to enter the number 103
3.  press ** to direct him to the conference or *# t
o hangup the current call and return to the conference yourself
4. From within the conference any user can invite another person by pressing 0 (all other steps are same as for *0).

my(@)iskop.ru   

© Copyright 2019. All rights reserved.