Page 1 of 1

Reduce the code

Posted: Mon Aug 10, 2009 8:07 am
by soso
Hi,

I've a field wich have the nomatch tag follow:

Code: Select all

<nomatch>
                <if cond="maxspeech==false">
                    <audio src="media/error.wav" />
                                        
                    <assign name="error" expr="true" />
                </if>
                
                <if cond="error==true">
                    <audio src="media/avertissements/new.wav" />
                </if>
                
                <assign name="set_phone" expr="undefined" />
                
                <reprompt />
            </nomatch>
            
            <nomatch count="2">
                <if cond="maxspeech==false">
                    <audio src="media/error.wav" />
                                        
                    <assign name="error" expr="true" />
                </if>
                
                <if cond="error==true">
                    <audio src="media/avertissements/retry.wav" />
                </if>
                
                <assign name="set_phone" expr="undefined" />
                
                <reprompt />
            </nomatch>
The "nomatch" and "nomatch count="2" are identicals excepts the audio file name ("retry.wav" and "new.wav").

How can I write this code more simply?

IVR implementation for nomatch

Posted: Mon Aug 10, 2009 1:18 pm
by support
Hi,

No, sorry, but if you are going to implement different behavior for your <nomatch> counts, then it must be implemented in this way for your IVR.

Regards,
Plum Support