[asterisk-users] Conf into a call in progress

Michael voip.question at gmail.com
Sun Nov 18 11:32:11 CST 2012


Gentlemen,

So, from your answers I understand that I have 2 options:
1. AMI "Redirect" command
2. Asterisk command "ChannelRedirect"

I'm inclined to prefer the 2nd option, as we've never used AMI, but I don't
know if it can be web-initiated.

Basically, we have the following php code:
<?php
  if( $_POST["ext"] || $_POST["dest"] )
  {
     echo "Selected extension: ". $_POST['ext'] . "<br />";
     echo "Destination Number: ". $_POST['dest'] . "<br />";
     // Enter the selected extension's active call to a conference room

     // Establish a new call to the entered number

     // Connect the new call to the selected extension's conference room

     // Put a disconnect/split button

     echo "connecting...<br />";

     exit();
  }
?>
<html>
<body>
  <form action="<?php $_PHP_SELF ?>" method="POST">

  Extension:
    <select name="ext">
        <option value="5001">5001</option>
        <option value="5002">5002</option>
        <option value="5003">5003</option>
        <option value="5004">5004</option>
    </select>

  Destination Number: <input type="text" name="dest" />

  <input type="Conf" />
  </form>
</body>
</html>

To this code, we need to add the relevant functions to perform the tasks
specified above, i.e. enter the active call to a conf room, establish the
call to the new number and then, link them all together and give an option
to quit the conference.

What do you suggest?

Thanks,

Michael

On Fri, Nov 16, 2012 at 1:17 PM, Aldo Bergamini <aaberga at gmail.com> wrote:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20121118/77a4b595/attachment.htm>


More information about the asterisk-users mailing list