SIP 406 - Status 406 Not Acceptable

1,087 views
Skip to first unread message

Abdul Rehman Rajput

unread,
Jun 26, 2017, 5:31:13 PM6/26/17
to UniMRCP
Guys,

I am not sure what I am doing wrong. I have installed Asterisk 13 and UnimrcpServer 1.4.

I am testing one of the sample dial plans given in the examples. No matter what I do, it is always Status 406 Not Acceptable,

[2017-06-26 21:09:55] NOTICE[2487]: src/mrcp_sofiasip_client_agent.c:556 : Receive SIP Event [nua_r_invite] Status 406 Not Acceptable [vcloud-ventures]
[2017-06-26 21:09:55] NOTICE[2487]: src/mrcp_sofiasip_client_agent.c:556 : Receive SIP Event [nua_i_state] Status 406 Not Acceptable [vcloud-ventures]



DIALPLAN
********
exten => _*5,1,Answer
same => n,SynthAndRecog(Please say a number,builtin:grammar/number,t=5000&b=1&ct=0.7&spl=en-US)
same => n,Verbose(1, ${RECOG_STATUS}, ${RECOG_COMPLETION_CAUSE}, ${RECOG_RESULT})
same => n,Hangup

The log when I run the call is herein,
**************************************
[2017-06-26 21:10:52] VERBOSE[2806][C-00000002] pbx.c: Executing [*5@from-internal:1] Answer("SIP/100-00000002", "") in new stack
[2017-06-26 21:10:52] VERBOSE[2806][C-00000002] pbx.c: Executing [*5@from-internal:2] SynthAndRecog("SIP/100-00000002", "Please say a number,builtin:grammar/number,t=5000&b=1&ct=0.7&spl=en-US") in new stack
[2017-06-26 21:10:52] NOTICE[2806][C-00000002] app_synthandrecog.c: SynthAndRecog() prompt: Please say a number
[2017-06-26 21:10:52] NOTICE[2806][C-00000002] app_synthandrecog.c: SynthAndRecog() grammar: builtin:grammar/number
[2017-06-26 21:10:52] NOTICE[2806][C-00000002] app_synthandrecog.c: SynthAndRecog() options: t=5000&b=1&ct=0.7&spl=en-US
[2017-06-26 21:10:52] DEBUG[2806][C-00000002] app_synthandrecog.c: Apply option t: 5000
[2017-06-26 21:10:52] DEBUG[2806][C-00000002] app_synthandrecog.c: Apply option b: 1
[2017-06-26 21:10:52] DEBUG[2806][C-00000002] app_synthandrecog.c: Apply option ct: 0.7
[2017-06-26 21:10:52] DEBUG[2806][C-00000002] app_synthandrecog.c: Apply option spl: en-US
[2017-06-26 21:10:52] DEBUG[2806][C-00000002] audio_queue.c: (ASR-2) Audio queue created
[2017-06-26 21:10:52] DEBUG[2806][C-00000002] speech_channel.c: Created speech channel: Name=ASR-2, Type=RECOGNIZER, Codec=PCMU, Rate=8000 on SIP/100-00000002
[2017-06-26 21:10:52] NOTICE[2806][C-00000002] src/mrcp_application.c: Create MRCP Handle 0x7f4a4001a128 [vcloud-ventures]
[2017-06-26 21:10:52] NOTICE[2806][C-00000002] src/mrcp_client_session.c: Create Channel ASR-2 <new>
[2017-06-26 21:10:52] DEBUG[2806][C-00000002] src/apt_task.c: Signal Message to [MRCP Client] [0x7f4a400079d0;4;0]
[2017-06-26 21:10:52] DEBUG[2482] src/apt_task.c: Process Message [MRCP Client] [0x7f4a400079d0;4;0]
[2017-06-26 21:10:52] NOTICE[2482] src/mrcp_client_session.c: Receive App Request ASR-2 <new> [2]
[2017-06-26 21:10:52] NOTICE[2482] src/mrcp_client.c: Add MRCP Handle ASR-2 <new>
[2017-06-26 21:10:52] DEBUG[2482] src/mrcp_client_session.c: Dispatch App Request ASR-2 <new> [2]
[2017-06-26 21:10:52] DEBUG[2482] src/apt_task.c: Signal Message to [MRCPv2ConnectionAgent] [0x7f4a48000c40;1;0]
[2017-06-26 21:10:52] NOTICE[2482] src/mrcp_client_session.c: Add Control Channel ASR-2 <new@speechrecog>
[2017-06-26 21:10:52] DEBUG[2482] src/mrcp_client_session.c: Add Media Termination ASR-2 <new@media-tm>
[2017-06-26 21:10:52] DEBUG[2482] src/mrcp_client_session.c: Add Media Termination ASR-2 <new@rtp-tm>
[2017-06-26 21:10:52] DEBUG[2482] src/apt_task.c: Signal Message to [MediaEngine] [0x7f4a48005f60;1;0]
[2017-06-26 21:10:52] DEBUG[2482] src/apt_consumer_task.c: Wait for Messages [MRCP Client]
[2017-06-26 21:10:52] DEBUG[2484] src/apt_poller_task.c: Process Poller Wakeup [MRCPv2ConnectionAgent]
[2017-06-26 21:10:52] DEBUG[2484] src/apt_task.c: Process Message [MRCPv2ConnectionAgent] [0x7f4a48000c40;1;0]
[2017-06-26 21:10:52] DEBUG[2484] src/apt_task.c: Signal Message to [MRCP Client] [0x7f4a50000f70;2;0]
[2017-06-26 21:10:52] DEBUG[2484] src/apt_poller_task.c: Wait for Messages [MRCPv2ConnectionAgent]
[2017-06-26 21:10:52] DEBUG[2482] src/apt_task.c: Process Message [MRCP Client] [0x7f4a50000f70;2;0]
[2017-06-26 21:10:52] DEBUG[2482] src/mrcp_client_session.c: Control Channel Added ASR-2 <new@speechrecog>
[2017-06-26 21:10:52] DEBUG[2482] src/apt_consumer_task.c: Wait for Messages [MRCP Client]
[2017-06-26 21:10:52] DEBUG[2485] src/apt_task.c: Process Message [MediaEngine] [0x7f4a48005f60;1;0]
[2017-06-26 21:10:52] DEBUG[2485] src/mpf_context.c: Add Media Context ASR-2
[2017-06-26 21:10:52] DEBUG[2485] src/apt_task.c: Signal Message to [MRCP Client] [0x7f4a680009f0;3;0]
[2017-06-26 21:10:52] DEBUG[2482] src/apt_task.c: Process Message [MRCP Client] [0x7f4a680009f0;3;0]
[2017-06-26 21:10:52] DEBUG[2482] src/mrcp_client_session.c: Media Termination Added ASR-2 <new@media-tm>
[2017-06-26 21:10:52] DEBUG[2482] src/mrcp_client_session.c: Media Termination Added ASR-2 <new@rtp-tm>
[2017-06-26 21:10:52] NOTICE[2482] src/mrcp_client_session.c: Send Offer ASR-2 <new> [c:1 a:1 v:0] to 10.128.0.2:8060
[2017-06-26 21:10:52] NOTICE[2482] src/mrcp_sofiasip_client_agent.c: Local SDP ASR-2 <new>
v=0
o=VCLOUD 0 0 IN IP4 10.128.0.2
s=-
c=IN IP4 10.128.0.2
t=0 0
m=application 9 TCP/MRCPv2 1
a=setup:active
a=connection:new
a=resource:speechrecog
a=cmid:1
m=audio 4004 RTP/AVP 0 8 96 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:96 L16/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendonly
a=ptime:20
a=mid:1

[2017-06-26 21:10:52] DEBUG[2482] src/apt_consumer_task.c: Wait for Messages [MRCP Client]
[2017-06-26 21:10:52] NOTICE[2487] src/mrcp_sofiasip_client_agent.c: Receive SIP Event [nua_i_state] Status 0 INVITE sent [vcloud-ventures]
[2017-06-26 21:10:52] NOTICE[2487] src/mrcp_sofiasip_client_agent.c: SIP Call State ASR-2 [calling]
[2017-06-26 21:10:52] NOTICE[2487] src/mrcp_sofiasip_client_agent.c: Receive SIP Event [nua_r_invite] Status 406 Not Acceptable [vcloud-ventures]
[2017-06-26 21:10:52] NOTICE[2487] src/mrcp_sofiasip_client_agent.c: Receive SIP Event [nua_i_state] Status 406 Not Acceptable [vcloud-ventures]
[2017-06-26 21:10:52] NOTICE[2487] src/mrcp_sofiasip_client_agent.c: SIP Call State ASR-2 [terminated]
[2017-06-26 21:10:52] DEBUG[2487] src/apt_task.c: Signal Message to [MRCP Client] [0x7f4a44002b10;1;0]
[2017-06-26 21:10:52] DEBUG[2482] src/apt_task.c: Process Message [MRCP Client] [0x7f4a44002b10;1;0]
[2017-06-26 21:10:52] NOTICE[2482] src/mrcp_client_session.c: Receive Answer ASR-2 <new> [c:0 a:0 v:0] Status 406
[2017-06-26 21:10:52] NOTICE[2482] src/mrcp_client_session.c: Raise App Response ASR-2 <new> [2] FAILURE [2]
[2017-06-26 21:10:52] DEBUG[2482] app_synthandrecog.c: (ASR-2) speech_on_channel_add
[2017-06-26 21:10:52] ERROR[2482] app_synthandrecog.c: (ASR-2) Channel error status=2, response code=406!
[2017-06-26 21:10:52] DEBUG[2482] speech_channel.c: (ASR-2) CLOSED ==> ERROR
[2017-06-26 21:10:52] DEBUG[2482] src/apt_consumer_task.c: Wait for Messages [MRCP Client]
[2017-06-26 21:10:52] DEBUG[2806][C-00000002] speech_channel.c: (ASR-2) Terminating MRCP session
[2017-06-26 21:10:52] DEBUG[2806][C-00000002] src/apt_task.c: Signal Message to [MRCP Client] [0x7f4a4000b5f0;4;0]
[2017-06-26 21:10:52] DEBUG[2482] src/apt_task.c: Process Message [MRCP Client] [0x7f4a4000b5f0;4;0]
[2017-06-26 21:10:52] NOTICE[2482] src/mrcp_client_session.c: Receive App Request ASR-2 <new> [1]
[2017-06-26 21:10:52] DEBUG[2482] src/mrcp_client_session.c: Dispatch App Request ASR-2 <new> [1]
[2017-06-26 21:10:52] NOTICE[2482] src/mrcp_client_session.c: Terminate Session ASR-2 <new>
[2017-06-26 21:10:52] DEBUG[2482] src/mrcp_client_session.c: Remove Control Channel ASR-2 <new>
[2017-06-26 21:10:52] DEBUG[2482] src/apt_task.c: Signal Message to [MRCPv2ConnectionAgent] [0x7f4a48000cc0;1;0]
[2017-06-26 21:10:52] DEBUG[2482] src/mrcp_client_session.c: Subtract Media Termination ASR-2 <new@media-tm>
[2017-06-26 21:10:52] DEBUG[2482] src/mrcp_client_session.c: Subtract Media Termination ASR-2 <new@rtp-tm>
[2017-06-26 21:10:52] DEBUG[2482] src/apt_task.c: Signal Message to [MediaEngine] [0x7f4a4800c3d0;1;0]
[2017-06-26 21:10:52] DEBUG[2482] src/apt_task.c: Signal Message to [MRCP Client] [0x7f4a48005c60;1;1]
[2017-06-26 21:10:52] DEBUG[2482] src/apt_consumer_task.c: Wait for Messages [MRCP Client]
[2017-06-26 21:10:52] DEBUG[2482] src/apt_task.c: Process Message [MRCP Client] [0x7f4a48005c60;1;1]
[2017-06-26 21:10:52] NOTICE[2482] src/mrcp_client_session.c: Session Terminated ASR-2 <new>
[2017-06-26 21:10:52] DEBUG[2482] src/apt_consumer_task.c: Wait for Messages [MRCP Client]
[2017-06-26 21:10:52] DEBUG[2484] src/apt_poller_task.c: Process Poller Wakeup [MRCPv2ConnectionAgent]
[2017-06-26 21:10:52] DEBUG[2484] src/apt_task.c: Process Message [MRCPv2ConnectionAgent] [0x7f4a48000cc0;1;0]
[2017-06-26 21:10:52] DEBUG[2484] src/apt_task.c: Signal Message to [MRCP Client] [0x7f4a50000f70;2;2]
[2017-06-26 21:10:52] DEBUG[2484] src/apt_poller_task.c: Wait for Messages [MRCPv2ConnectionAgent]
[2017-06-26 21:10:52] DEBUG[2482] src/apt_task.c: Process Message [MRCP Client] [0x7f4a50000f70;2;2]
[2017-06-26 21:10:52] DEBUG[2482] src/mrcp_client_session.c: Control Channel Removed ASR-2 <new@speechrecog>
[2017-06-26 21:10:52] DEBUG[2482] src/apt_consumer_task.c: Wait for Messages [MRCP Client]
[2017-06-26 21:10:52] DEBUG[2485] src/apt_task.c: Process Message [MediaEngine] [0x7f4a4800c3d0;1;0]
[2017-06-26 21:10:52] DEBUG[2485] src/mpf_context.c: Remove Media Context ASR-2
[2017-06-26 21:10:52] DEBUG[2485] src/apt_task.c: Signal Message to [MRCP Client] [0x7f4a680009f0;3;0]
[2017-06-26 21:10:52] DEBUG[2482] src/apt_task.c: Process Message [MRCP Client] [0x7f4a680009f0;3;0]
[2017-06-26 21:10:52] DEBUG[2482] src/mrcp_client_session.c: Media Termination Subtracted ASR-2 <new@media-tm>
[2017-06-26 21:10:52] DEBUG[2482] src/mrcp_client_session.c: Media Termination Subtracted ASR-2 <new@rtp-tm>
[2017-06-26 21:10:52] NOTICE[2482] src/mrcp_client.c: Remove MRCP Handle ASR-2 <new>
[2017-06-26 21:10:52] NOTICE[2482] src/mrcp_client_session.c: Raise App Response ASR-2 <new> [1] SUCCESS [0]
[2017-06-26 21:10:52] DEBUG[2482] app_synthandrecog.c: (ASR-2) speech_on_session_terminate
[2017-06-26 21:10:52] DEBUG[2482] app_synthandrecog.c: (ASR-2) Destroying MRCP session
[2017-06-26 21:10:52] NOTICE[2482] src/mrcp_application.c: Destroy MRCP Handle ASR-2
[2017-06-26 21:10:52] DEBUG[2482] speech_channel.c: (ASR-2) ERROR ==> CLOSED
[2017-06-26 21:10:52] DEBUG[2482] src/apt_consumer_task.c: Wait for Messages [MRCP Client]
[2017-06-26 21:10:52] DEBUG[2806][C-00000002] speech_channel.c: Destroy speech channel: Name=ASR-2, Type=RECOGNIZER, Codec=PCMU, Rate=8000
[2017-06-26 21:10:52] DEBUG[2806][C-00000002] audio_queue.c: (ASR-2) Audio queue destroyed
[2017-06-26 21:10:52] NOTICE[2806][C-00000002] app_synthandrecog.c: SynthAndRecog() exiting status: ERROR on SIP/100-00000002
[2017-06-26 21:10:52] VERBOSE[2806][C-00000002] pbx.c: Spawn extension (from-internal, *5, 2) exited non-zero on 'SIP/100-00000002'
[2017-06-26 21:10:52] VERBOSE[2806][C-00000002] pbx.c: Executing [h@from-internal:1] Macro("SIP/100-00000002", "hangupcall") in new stack
[2017-06-26 21:10:52] VERBOSE[2806][C-00000002] pbx.c: Executing [s@macro-hangupcall:1] GotoIf("SIP/100-00000002", "1?theend") in new stack
[2017-06-26 21:10:52] VERBOSE[2806][C-00000002] pbx_builtins.c: Goto (macro-hangupcall,s,3)
[2017-06-26 21:10:52] VERBOSE[2806][C-00000002] pbx.c: Executing [s@macro-hangupcall:3] ExecIf("SIP/100-00000002", "0?Set(CDR(recordingfile)=)") in new stack
[2017-06-26 21:10:52] VERBOSE[2806][C-00000002] pbx.c: Executing [s@macro-hangupcall:4] Hangup("SIP/100-00000002", "") in new stack
[2017-06-26 21:10:52] VERBOSE[2806][C-00000002] app_macro.c: Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'SIP/100-00000002' in macro 'hangupcall'
[2017-06-26 21:10:52] VERBOSE[2806][C-00000002] pbx.c: Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/100-00000002'

Binthosh Kj

unread,
Jul 25, 2018, 2:22:05 AM7/25/18
to UniMRCP
Hi,

Were you able to resolve this issue? I have run into same issue now.. Appreciate any pointers on how this can be resolved?

Thanks and regards,
Binthosh.

Arsen Chaloyan

unread,
Jul 25, 2018, 10:03:03 PM7/25/18
to UniMRCP
Hi Binthosh,

UniMRCP server responds with 406 when the requested resource is not available. Check the server logs for more info: either all the channels are used or the license is expired.


--
You received this message because you are subscribed to the Google Groups "UniMRCP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unimrcp+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Arsen Chaloyan
Author of UniMRCP
http://www.unimrcp.org
Reply all
Reply to author
Forward
0 new messages