We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

Reduce the code

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
soso
Posts: 62
Joined: Tue Apr 22, 2008 8:11 am

Reduce the code

Post 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?

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

IVR implementation for nomatch

Post 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

Post Reply