Does anyone know how to set the music on hold class with the Manager Interface 
in 1.8?
Here is what I am using but I end up just getting no music when I put this in 
place, when I remove it the default is back.
The classes I am setting work elsewhere just fine.
I did not include the opening of the socket, logging in etc because that's all 
working fine along with other things I am doing within the same login, socket 
session. Just trying to add this additional task.
This is from PHP as you may have recognized. I have also tried surrounding 
musicclass with CHANNEL() but that didn't work and didn't seem right anyhow 
since it already knows it's a channel variable.
Thanks in advance for any help on this.# Set the Music on Hold
fputs($socket2, "Action: Setvar\r\n");
fputs($socket2, "Channel: ".$channel."\r\n");
fputs($socket2, "Variable: musicclass\r\n");
fputs($socket2, "Value: ".$mohclass."\r\n");                                    
  
-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to