[asterisk-users] how to set moh without setting queue music with SetMusicOnHold
gincantalupo
gincantalupo at fgasoftware.com
Wed May 18 10:34:30 CDT 2011
Hi Alex,
I could create 2 queues, one for italians and one for strangers calling
but there is no point where you can change the moh except before
executing the queue command but the queue moh changes as side-effect:
-AGI (check language)
........
-SetMusicOnHold(depends on language)
........
-Queue(depends on language)
This would work if the above mentioned side-effect didn't exist.
Re-implement a queue would take us a lot of time we unfortunately have not.
I think the only solution is to give up. :(
Thank you.
Giorgio Incantalupo
On 05/18/2011 05:15 PM, Alex Balashov wrote:
> On 05/18/2011 11:12 AM, gincantalupo wrote:
>
>> I tried but doesn't work because the queue doesn't give you control
>> to change the moh. What I want is to change my moh depending on where
>> the call is from. If it comes from Italy I have to play italian moh,
>> if not, another moh. Normally I can change my moh but with queues,
>> control is not in my hands. What I need is SetMusicOnHold to change
>> moh only, not queues music which should be changeable with a sort of
>> SetQueueMusic command or similar but this command does not exist.
>
> Oh, I see. You are right; as far as I know, it is not possible to
> dynamically alter queue MOH from the dial plan.
>
> What is the feasibility of using multiple queues with the same members
> in them for various language/MOH combinations?
>
> If you need a unitary queue with this characteristic, your only choice
> might be to reimplement the queue logic in AGI with custom audio
> feedback.
>
More information about the asterisk-users
mailing list