[unispeech/asterisk-unimrcp] f37368: Extended RECOG_INSTANCE() to optionally return ind...

5 views
Skip to first unread message

Arsen Chaloyan

unread,
May 11, 2020, 8:55:37 PM5/11/20
to unimrcp...@googlegroups.com
Branch: refs/heads/master
Home: https://github.com/unispeech/asterisk-unimrcp
Commit: f373689b2a01b10c3de75998438f9afb98079acf
https://github.com/unispeech/asterisk-unimrcp/commit/f373689b2a01b10c3de75998438f9afb98079acf
Author: Arsen Chaloyan <acha...@gmail.com>
Date: 2020-05-11 (Mon, 11 May 2020)

Changed paths:
M app-unimrcp/app_datastore.c

Log Message:
-----------
Extended RECOG_INSTANCE() to optionally return individual fields from the <instance> element

Let's observe the following data structure as an example.

<instance>
<query_text>Sunnyvale</query_text>
<action>room.reservation</action>
<parameters>
<location><city>Sunnyvale</city></location>
</parameters>
<fulfillment_text>What date?</fulfillment_text>
</instance>

RECOG_INSTANCE(0/0) returns the inner content of the <instance> element as before.
RECOG_INSTANCE(0/0/fulfillment_text) results in "What date?".
RECOG_INSTANCE(0/0/parameters/location/city) results in "Sunnyvale".


Reply all
Reply to author
Forward
0 new messages