[Openmrcp-users] RE : Re: MRCP Message response parsing implemented ?

SP GLE spglegle at yahoo.fr
Wed Feb 20 03:52:02 EST 2008


Hi,
Works fine now, I did a mistake accessing recource_header, I did not access '.data'.
Thanks for your help.

PS : I open a new thread for a problem regarding invalid read.

--- Arsen Chaloyan <achaloyan at gmail.com> a écrit :

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



      ______________________________________________________________________________ 
Yahoo! Mail : un mail innovant avec Messenger compatible Windows Live + stockage illimité. http://mail.yahoo.fr



More information about the Openmrcp-users mailing list