Dear Team,
I have been running a call center application in the asterisk-16.18.0 where the SIP registered users act as the agents and receive the calls landing in the Queue. The incoming calls get transferred from the phones using the features.conf. However, i am supposed to transfer the call using the PHP via the AMI. But then it does not allow me to transfer the call. If i try bridge, it is going but not using the Redirect. I am sure that it could be a configuration help, but not getting any clue on how to do that. If i run the Originate http://ipaddr/ccs/ccsAppCall.php?Ext=6002&Tel=98400XXXXX application i am able to land call on my cellphone but fail to transfer the call using the Web GUI thereafter.
Action: Originate
Channel: SIP/jio1/98400XXXXX
Context: national
Exten: 6002
Priority: 1
But when i try to Use
$Query1=“Action: Redirect\r\n”;
$Query1.=“Channel: “.$channel2.”\r\n”;
$Query1.=“Context: default\r\n”;
$Query1.=“Exten: “.$channel1.”\r\n”;
$Query1.=“Priority: “.$nPriority.”\r\n”;
The channel2 value i am taking from
$commandline=‘sudo asterisk -rx "core show channels "’;
$commandline=$commandline.’|grep ‘;
$commandline=$commandline.$Ext;
$commandline=$commandline.’@default:1’;
echo $output=shell_exec("$commandline");
$str=explode(" ",$output);
$channel2=$str[0];
And the channel1 is what i receive from the database where in the Channel Id of incoming call in the Queue is received.
Any help in this regard would be a savior.
Apologies if i have not posted in the right group.