Re: [asterisk-users] Setting channel musicclass from AGI
James Lamanna wrote: Hi Matt, So this actually works (haven't had a chance to try it)? SET VARIABLE CHANNEL(musicclass) default Because musicclass is piece of channel information. Referencing ${musicclass} is not the same thing. It should indeed work, yes. -- Joshua Colp Digium, Inc. | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com www.asterisk.org -- _ -- 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
Re: [asterisk-users] Setting channel musicclass from AGI
Hi Matt, So this actually works (haven't had a chance to try it)? SET VARIABLE CHANNEL(musicclass) default Because musicclass is piece of channel information. Referencing ${musicclass} is not the same thing. Thanks. -- James On Sun, Oct 5, 2014 at 8:05 PM, Matthew Jordan mjor...@digium.com wrote: On Sun, Oct 5, 2014 at 6:40 PM, James Lamanna jlama...@gmail.com wrote: Hi, Since SetMusicOnHold() is being deprecated, how do we set the channel musicclass from an AGI script? Last time I checked you can't call dialplan functions from AGI. Actually, you can. Any time you can evaluate or set a channel variable, you can also evaluate or set a dialplan function. Hence, you can use both 'get variable' [1] or 'set variable' [2]. You could also use 'exec' and call the Set dialplan application directly. [1] https://wiki.asterisk.org/wiki/display/AST/AGICommand_get+variable [2] https://wiki.asterisk.org/wiki/display/AST/AGICommand_set+variable -- 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 -- _ -- 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 -- _ -- 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
[asterisk-users] Setting channel musicclass from AGI
Hi, Since SetMusicOnHold() is being deprecated, how do we set the channel musicclass from an AGI script? Last time I checked you can't call dialplan functions from AGI. Thanks. -- James -- _ -- 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
Re: [asterisk-users] Setting channel musicclass from AGI
On Sun, Oct 5, 2014 at 6:40 PM, James Lamanna jlama...@gmail.com wrote: Hi, Since SetMusicOnHold() is being deprecated, how do we set the channel musicclass from an AGI script? Last time I checked you can't call dialplan functions from AGI. Actually, you can. Any time you can evaluate or set a channel variable, you can also evaluate or set a dialplan function. Hence, you can use both 'get variable' [1] or 'set variable' [2]. You could also use 'exec' and call the Set dialplan application directly. [1] https://wiki.asterisk.org/wiki/display/AST/AGICommand_get+variable [2] https://wiki.asterisk.org/wiki/display/AST/AGICommand_set+variable -- 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 -- _ -- 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