[Openmrcp-users] MRCP Message response parsing implemented ?

Arsen Chaloyan achaloyan at gmail.com
Tue Feb 19 16:57:04 EST 2008


Yes, it's implemented and working fine for me. I've just tested using the
following code to retrieve mentioned headers from the message.

       mrcp_recognizer_header_t *recog_header = mrcp_message->
header.resource_header.data;
        if(recog_header) {

if(mrcp_resource_header_property_check(mrcp_message,RECOGNIZER_HEADER_COMPLETION_CAUSE)
== MRCP_STATUS_SUCCESS) {
                printf("%d\n",recog_header->completion_cause);
            }

if(mrcp_resource_header_property_check(mrcp_message,RECOGNIZER_HEADER_FAILED_URI)
== MRCP_STATUS_SUCCESS) {
                printf("%s\n",recog_header->failed_uri);
            }
        }

Let me know if something still goes wrong on your side.
Arsen.

On Feb 19, 2008 9:32 PM, SP GLE <spglegle at yahoo.fr> wrote:

> Hi,
> I receive the following MRCP message Response :
>
> --
> Signal RTSP Message
> Process RTSP Response
> Receive MRCPv1 Message size=110
> MRCP/1.0 1 407 COMPLETE
> Completion-Cause: 010 language-unsupported
> Failed-URI: request1 at form-level.store
>
> --
> When I access data using mrcp_message_t* received I've got the right
> information about message
> type and status code :
> MRCP_MESSAGE_TYPE_RESPONSE MRCP_STATUS_CODE_METHOD_FAILED
>
> But I'm not able to access Completion-Cause and Failed-Uri accessing
> mrcp_resource_header inside
> mrcp_message. I've got initialised values to default, not set by received
> mrcp response Message.
>
> Is response parsing and resource header initialisation implemented ?
>
> Regards.
>
>
>
>  _____________________________________________________________________________
> Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo!
> Mail http://mail.yahoo.fr
>
> _______________________________________________
> Openmrcp-users mailing list
> Openmrcp-users at tron.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/openmrcp-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/openmrcp-users/attachments/20080220/462e1ce6/attachment.html 


More information about the Openmrcp-users mailing list