[asterisk-dev] Call Specific MOH

Zoa zoachien at securax.org
Wed Mar 28 09:20:32 MST 2007


If you want it to be included, please post it on bugs.digium.com and fax 
a disclaimer to digium

Zoa

Vadim Lebedev wrote:
> Hello,
>
> I'm attaching a trivial patch to app_queue.c   allowing call-specific 
> MOH.
> This functionality was needed to  for our client  who provides virtual 
> secretary services, so
> it could implement DID-specific MOH messages
>
> I hope it can be integrated in mainline
>
>
>
>
> Thanks
> Vadim
>
> ------------------------------------------------------------------------
>
> --- app_queue.c	2007-03-28 17:55:56.371915940 +0200
> +++ app_queue.new.c	2007-03-28 18:00:19.205766602 +0200
> @@ -1203,7 +1203,12 @@
>  		/* No luck, join at the end of the queue */
>  		if (!inserted)
>  			insert_entry(q, prev, qe, &pos);
> -		ast_copy_string(qe->moh, q->moh, sizeof(qe->moh));
> +
> +		if (pbx_builtin_getvar_helper(qe->chan, "mohclass"))
> +			ast_copy_string(qe->moh, pbx_builtin_getvar_helper(qe->chan, "mohclass"),sizeof(qe->moh) );
> +		else
> +			ast_copy_string(qe->moh, q->moh, sizeof(qe->moh));
> +
>  		ast_copy_string(qe->announce, q->announce, sizeof(qe->announce));
>  		ast_copy_string(qe->context, q->context, sizeof(qe->context));
>  		q->count++;
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev
>   



More information about the asterisk-dev mailing list