实际上,我想从客户端获取插件中的自定义参数,我尝试通过 extension.conf 传递参数,如下所示:
exten => s,2,SynthAndRecog(欢迎使用bot,内置:语音/转录, userdid = user_id &spl = en-IN&p = speech-nuance5-mrcp2)
但是我没有在插件中得到它。这是获取参数的插件代码:
while((header_field = mrcp_message_next_header_field_get(request,header_field)) != NULL ) {
printf("\n===============params================\n");
printf("%s: %s\n", header_field->name.buf, header_field->value.buf);
}