Hi guys i am trying to have a unique name for my conference. What i have tried is to use the session and put the user id in the conference but unfortunately i have failed. The function wont read my session id. This is my code below for transferring the caller to conference. Btw i am using codeigniter as my framework.
public function redirect_queue_conference()
{
$client = $this->init_client();
$call = $client->account->calls->get($_POST["CallSid"]);
$call->update(array(
"Url" => HTTP_BASE_URL."agent/call_controls/forward_queue_conference",
"Method" => "POST"
));
}
And this is my code on creating conference name which is my problem because iam using session.
public function forward_queue_conference()
{
$roomName = $this->session->userdata('user_id');
$this->twilio->CallerToQueue($roomName);
}
In my twilio console in debugger it's saying that the conference is not valid.