[Asterisk-Dev] Re: [Asterisk-cvs] asterisk/appsapp_queue.c,1.39,1.40

James Sizemore james at deny.org
Thu Dec 18 04:39:39 MST 2003

I'm assuming you did something similar to this:

        if (!join_queue(queuename, &qe)) {
                /* Start music on hold */
          if (strcmp(qe.moh,"RING"))
                ast_indicate(chan, AST_CONTROL_RINGING);
            ast_moh_start(chan, qe.moh);

Have you had any problems with the ast_moh_stop
being called when no ast_moh_start was used?
I'm thinking of making a patch for the "r" option,
and want to know what if any problems you had
with your solution.

TC wrote:

>>My example got me to thinking. To use the Queue to
>>emulate hunt-groups, you would need to make
>>a mp3 to sound like a phone ringing...LOL
>>Maybe an "r" option "Queue(nocq|tTr|||45)"
>>would be a quick useful addition to app_queue
>>"r" Make the queue send a ring sound instead
>>of MOH.
>We did that with a 2 line chg we made a special case 
>of the music=RING in queues.conf 
>then in the app_queues we just do
>ast_indicate(chan, AST_CONTROL_RINGING)
>instead of ast_moh_start ...
>Asterisk-Dev mailing list
>Asterisk-Dev at lists.digium.com

More information about the asterisk-dev mailing list