[asterisk-users] [SOLVED] custom automated meeting

Thanasis thanasis at asyr.hopto.org
Thu Nov 3 21:26:06 CDT 2011


on 10/31/2011 11:59 PM Thanasis wrote the following:
> I need your help in implementing the following scenario:
> 
> A certain extension will ring two sip phones simultaneously and when one
> of them answers, the other keeps ringing until it answers too, and then
> all three (the caller and the other two) are immediately placed in a
> conference room (same room for all three).
> 
> Can we do it?

FWIW, using call files:

Here is the relevant section of the dialplan:

exten => 300,1,Noop(creating conference)
	same => n,Set(conf_name=conf-${RAND(1,1000)})
	same => n,System(/etc/asterisk/scripts/callgenerator SIP/dev1 ${conf_name})
	same => n,System(/etc/asterisk/scripts/callgenerator SIP/dev2 ${conf_name})
	same => n,MeetMe(${conf_name},dFI1xAC)
	same => n,Noop(do post conference stuff)

... and here is the script /etc/asterisk/scripts/callgenerator:

#!/bin/bash
PHONE=$(echo $1 |cut -f2 -d"/")
ROOM=$2
echo "Channel: $1" > /var/spool/asterisk/tmp/${PHONE}.call
echo "Application: MeetMe" >> /var/spool/asterisk/tmp/${PHONE}.call
echo "Data: ${ROOM},dFI1x" >> /var/spool/asterisk/tmp/${PHONE}.call
mv -f /var/spool/asterisk/tmp/${PHONE}.call /var/spool/asterisk/outgoing


PS: Thanks much to Yaroslav for his help :)



More information about the asterisk-users mailing list