Page 1 of 1

disconnect and asterix to be sent to us

Posted: Fri Mar 18, 2011 2:26 am
by sasa
Hi,

How can we get disconnect string and asterix sent to our application? currently we dnt recieve anything visible when this happens.

When the user enters * infact on my application i dont see this returned. I see this in Plum's log as below and plum returned nomatch to caller immediately. Same when the user disconnect, how can we be notified?
Tue 08 Mar 2011 03:59:49 AM EST:
dtmf input: *#
received event: nomatch:
bargein set to true
INPUTMODES set to "DTMF"
Audio segment added to prompt queue from TTS application/synthesis+ssml for:
---------
<?xml version='1.0'?><speak><speak xml:lang="en-US"><voice name="Tom"><speak> Sorry I did not understand you<break size="medium"/></speak></voice></speak></speak>
---------
VXI::queue_prompts()
bargein set to true
INPUTMODES set to "DTMF"
Audio segment added to prompt queue from TTS application/synthesis+ssml for:
---------
<?xml version='1.0'?><speak><speak xml:lang="en-US"><voice name="Tom"><speak> The Pin is not being recognized<break size="medium"/> please try again</speak></voice></speak></speak>
---------
VXI::field_element - activating grammars for form = 'getInput' formitem = 'pin'
VXI::do_recognition()
PromptManager::Play()
starting playback: bargein=true, inputmodes="dtmf"
Newly queued prompts are now being played

Tue 08 Mar 2011 03:59:58 AM EST:
Disconnect Disconnecting On Channel 49 received event: connection.disconnect.hangup: VXI::exit_element() Call End Event Ending session Ending Session On Channel 49
thks
sasa

Re: disconnect and asterix to be sent to us

Posted: Fri Mar 18, 2011 10:24 am
by support
Hi sasa,

Would you be able to post your application's code for this specific portion of your application? We would like to look specifically at the grammar used.

Without knowing what exactly you're application is attempting to do, we've tried to formulate a grammar that may be able help you out. We're using an explicit grammar to ensure that we receive both the digit input as well as the asterisk.

Code: Select all

<grammar type="application/srgs+xml" root="ROOT" mode="dtmf">
  <rule id="ROOT">
    <one-of>
      <item repeat="0-255">
	<ruleref uri="#digits"/>
      </item>
      <item> * </item>
    </one-of>
  </rule>

  <rule id="digits" scope="private">
    <one-of>
      <item> 0 </item>
      <item> 1 </item>
      <item> 2 </item>
      <item> 3 </item>
      <item> 4 </item>
      <item> 5 </item>
      <item> 6 </item>
      <item> 7 </item>
      <item> 8 </item>
      <item> 9 </item>
    </one-of>
  </rule>
</grammar>
Hope this helps!

Regards,
Plum Support