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 :)
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users