Asterisk n-way call HOWTO

Here I will attempt to describe how to make n-way calls from 2-way calls.
All work done by two applications: MeetMe and ChannelRedirect. You need the Dahdi/Zaptel timing driver to have MeetMe working.

Question: For Asterisk 1.4 do we need to replace 'ChannelRedirect' as used below with 'ManagerRedirect' as in bug/patch 6508?

How this works

While you speak with another party you can press *0, and the macro nway-start is executed. The current party is immediately transferred to a free conference, whereas you get a dialtone to enter the number of the other party you also would like to invite. After the call has been established and you talk to third user, you can press ** to direct him to the conference, or *# to hangup the current call and return to the conference yourself. From within the conference any user can invite another person by pressing 0 (all other steps are same as for *0).


Here is dialplan example:

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

exten => _XXX,1,Answer
exten => _XXX,n,Set(CONFNO=${EXTEN})
exten => _XXX,n,Set(MEETME_EXIT_CONTEXT=dynamic-nway-invite)
exten => _XXX,n,Set(DYNAMIC_FEATURES=)
exten => _XXX,n,MeetMe(${CONFNO},pdMX)
exten => _XXX,n,Hangup

exten => 0,1,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)

exten => _XXX,1,Dial(SIP/${EXTEN})

exten => s,1,Set(CONFNO=${FindFreeConf()})
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,Goto(dynamic-nway,${CONFNO},1)

exten => s,1,ChannelRedirect(${BRIDGEPEER},dynamic-nway,${CONFNO},1)

exten => s,1,SoftHangup(${BRIDGEPEER})

Note, You need to provide FindFreeConf() function (or any other way) to get free Conference number.

And, to make all this work, here is features.conf:

nway-start => *0,caller,Macro,nway-start
nway-inv => **,caller,Macro,nway-ok
nway-noinv => *#,caller,Macro,nway-notok

See also

Created by: serg_b, Last modification: Sun 16 of Sep, 2012 (06:47 UTC) by dominic16y
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+