VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
tjrlist at live.com Guest
|
Posted: Sun Oct 26, 2014 10:42 pm Post subject: [asterisk-users] Setting Music on Hold with the Manager Inte |
|
|
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.
Quote: | # Set the Music on Holdfputs($socket2, "Action: Setvar\r\n");fputs($socket2, "Channel: ".$channel."\r\n");fputs($socket2, "Variable: musicclass\r\n");fputs($socket2, "Value: ".$mohclass."\r\n"); |
|
|
Back to top |
|
|
mjordan at digium.com Guest
|
Posted: Mon Oct 27, 2014 8:52 am Post subject: [asterisk-users] Setting Music on Hold with the Manager Inte |
|
|
On Sun, Oct 26, 2014 at 10:42 PM, Todd R. <tjrlist@live.com (tjrlist@live.com)> wrote:
Quote: | 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.
Quote: | # Set the Music on Holdfputs($socket2, "Action: Setvar\r\n");fputs($socket2, "Channel: ".$channel."\r\n");fputs($socket2, "Variable: musicclass\r\n");fputs($socket2, "Value: ".$mohclass."\r\n"); |
|
Use the CHANNEL function:
https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Function_CHANNEL
Action: Setvar
Channel: (your channel name here)
Variable: CHANNEL(musicclass)
Value: (your MoH class here)
--
Matthew Jordan
Digium, Inc. | Engineering Manager
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org |
|
Back to top |
|
|
tjrlist at live.com Guest
|
Posted: Mon Oct 27, 2014 10:41 am Post subject: [asterisk-users] Setting Music on Hold with the Manager Inte |
|
|
Thanks Matt.
I tried that already, no luck.
Still, I get blank nothingness instead of MOH. I will try again just to be sure I didn't miss something.
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.
Date: Mon, 27 Oct 2014 08:51:42 -0500
Subject: Re: [asterisk-users] Setting Music on Hold with the Manager Interface
From: mjordan@digium.com
To: tjrlist@live.com; asterisk-users@lists.digium.com
On Sun, Oct 26, 2014 at 10:42 PM, Todd R. <tjrlist@live.com (tjrlist@live.com)> wrote:
Quote: | 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.
Quote: | # Set the Music on Holdfputs($socket2, "Action: Setvar\r\n");fputs($socket2, "Channel: ".$channel."\r\n");fputs($socket2, "Variable: musicclass\r\n");fputs($socket2, "Value: ".$mohclass."\r\n"); |
|
Use the CHANNEL function:
https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Function_CHANNEL
Action: Setvar
Channel: (your channel name here)
Variable: CHANNEL(musicclass)
Value: (your MoH class here)
--
Matthew Jordan
Digium, Inc. | Engineering Manager
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|