Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
<?php
$session_id = $_GET['session_id'] ; // and whatever else, like the audiofile.
?>
<html>
<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<input type="hidden" name="session_id" value="<?php echo $session_id ; ?>">
<input type="submit" name="submit" value="click here to play a sound"><br>
</form>
<?php
if(isset($_GET['submit']))
{
$session_id = $_GET['session_id'] ;
$myfile = "demo-congrats" ;
require "phpagi-asmanager.php";
$asm = new AGI_AsteriskManager();
if(!$asm->connect())
{
echo "not connected" . "\n" ;
}
else
{
$call = $asm->send_request('Originate',
array('Channel'=>"LOCAL/AVATAR_CHANNEL_1",
'Exten'=>'AVATAR_CHANNEL_2',
'Context'=>'default',
'Priority'=>1,
'Variable'=>"AVATARFILE=$myfile|MMROOM=$session_id",
'Async'=>'true',
'Callerid'=>12345));
$asm->disconnect();
}
}
?>
exten => AVATAR_CHANNEL_1,1,Meetme,${MMROOM}|qF
exten => AVATAR_CHANNEL_1,n,Hangup()
exten => AVATAR_CHANNEL_2,1,AGI(playthesound.php|"${AVATARFILE}")
#!/usr/bin/php -q
<?php
set_time_limit(30);
require('phpagi.php');
$agi = new AGI();
$agi->answer();
$agi->exec('ControlPlayback',"$argv[1]|5000|6|4|#|*|1") ; // asterisk 1.4.x accepts piped, 1.8 needs comma syntax for application data separations
exit;
?>
delhibpo1 wrote:Thanks
Can anybody guide me completly for integration for meetme/conference IVR to play directly as avatar system.
Alex wrote:Hi. Do you have the sample URL for Sugar CRM to add in campaign please?
Users browsing this forum: No registered users and 59 guests