I am trying to play a music file inside a conference. I came to know that it can be done via local channels.
I am dialing a local channel using an AMI command (I am using php so the command is being executed using a php script)
Send the following AMI command.
$writeBuffer = "Action: Originate\r\n"; $writeBuffer .= "Channel: Local/2000@beep_context\r\n"; $writeBuffer .= "Application: Playback\r\n"; $writeBuffer .= "Data: $fileNme\r\n"; $bytesSent = socket_write($this->socket, $writeBuffer);
And the context beep_context is as follows
exten => _X!,1,Answer
exten => _X!,n,MeetMe(2000,q1)
exten => _X!,n,Hangup
When I execute the command nothing happens. I also checked the AMI logs and it seems that instruction has not even gone to the AMI.
Note:- I have successfully connected two users a conference and now I am trying to play a musicfile inside the conference.
Please look into the matter and help me.