Pbx.c:2922 pbx_extension_helper: No application ‘MRCPRecog’ for extension

195 views
Skip to first unread message

srikanth bonagiri

unread,
May 11, 2020, 7:41:42 AM5/11/20
to UniMRCP

Hey Guys, I am using asterisk-uniMRCP. When my extension.conf is called I am getting the following error.


[May 11 11:26:46] WARNING[51511][C-00000001]: pbx.c:2922 pbx_extension_helper: No application ‘MRCPRecog’ for extension (from-internal, 14086093785, 6)
== Spawn extension (from-internal, 14086093785, 6) exited non-zero on ‘SIP/46.19.209.14-00000000’


This is my extension.conf file:
[from-internal]
exten => _XXXXXXXXXXX,1,Set(Customer-Num={CALLERID(num)}) same => n,Set(Merchant-Num={CALLERID(dnid)})
same => n,Set(AGENTSTATUS={CURL(https://XXX/dialog/telephone/getStatus?To={Merchant-Num})})
same => n,Set(CALLERID(name)={CURL(https://XXX/dialog/telephone/getMerchantMenuItems?To={Merchant-Num})})
same => n,Answer
same => n,MRCPRecog(builtin:grammar/number,p=default&t=5000&b=1&ct=0.7&spl=en-US&f=hello-world)
same => n,Verbose(1, {RECOGSTATUS}, {RECOG_COMPLETION_CAUSE}, ${RECOG_RESULT})
same => n,Hangup

My sip.conf file:

[general]
context=from-internal
;context=default
canreinvite=no
srvlookup=yes
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes
externip=X.X.X.X
nat=yes
localnet=X.X.X.X/255.255.255.0
allow=alaw

Please help me guys.


Arsen Chaloyan

unread,
May 11, 2020, 10:10:13 PM5/11/20
to UniMRCP
Hi Srikanth,

The error indicates you likely have no app_unimrcp module installed.

What is the output of

module show like app_unimrcp.so

I am not sure how you installed the modules, but make sure the .so files are getting installed to the intended directory. Please look for similar posts on the discussion group.

--
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+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/unimrcp/ff0e77ba-3ba1-4e76-bdc2-b166b30d8a98%40googlegroups.com.


--
Arsen Chaloyan
Author of UniMRCP
http://www.unimrcp.org

srikanth bonagiri

unread,
May 13, 2020, 11:40:53 AM5/13/20
to UniMRCP
Hello Arse,

    I have re-installed in a new brand machine. I can able to see the modules in /usr/lib/asterisk/modules.

    when I load app_unimrcp.so module, I am getting the following error. 

    *CLI> module load  app_unimrcp.so
Unable to load module app_unimrcp.so
Command 'module load  app_unimrcp.so' failed.
*CLI> [May 13 15:30:22] ERROR[109356]: ast_unimrcp_framework.c:790 load_mrcp_config: Unable to load genreal.default-tts-profile from config file, aborting
  == Using SIP RTP CoS mark 5


NOTE: I am not using Azure-SS, for SS I am using mstts.agi file. 


below is my mrcp.conf file(assuming something I am missing from mrcp.conf file ) :

[uni2]
; MRCP settings
version = 2
; SIP settings
server-ip = *.*.*.*
server-port = 8060
; SIP user agent
client-ip =  *.*.*.*
client-port = 25097
sip-transport = udp
;
; RTP factory

rtp-ip =  *.*.*.*
rtp-port-min = 28000
rtp-port-max = 29000

; Jitter buffer settings
playout-delay = 50
max-playout-delay = 200
; RTP settings
ptime = 20
codecs = PCMU PCMA L16/96/8000 telephone-event/101/8000
; RTCP settings
rtcp = 0

srikanth bonagiri

unread,
May 14, 2020, 7:58:26 AM5/14/20
to UniMRCP
Hello Arsen,


Now I am able to load app_unimrcp.so. Both the modules are in running state.  

default-asr-profile = uni2
default-tts-profile = uni2

 I have added these two line and tried to call extension.conf. This time I didn't get any modules errors but I am getting Failed to Create Session ASR-0. following is stack trcae could you please look into it and help me.

  -- Executing [14088783154@from-internal:6] MRCPRecog("SIP/X.X.X.14-00000000", "builtin:grammar/number,p=default&t=5000&b=1&ct=0.7&spl=en-US&f=hello-world") in new stack
[May 14 11:51:16] NOTICE[49212][C-00000001]: app_mrcprecog.c:1070 app_recog_exec: MRCPRecog() grammar: builtin:grammar/number
[May 14 11:51:16] NOTICE[49212][C-00000001]: app_mrcprecog.c:1085 app_recog_exec: MRCPRecog() options: p=default&t=5000&b=1&ct=0.7&spl=en-US&f=hello-world
[May 14 11:51:16] NOTICE[49212][C-00000001]: src/mrcp_application.c:117  Create MRCP Handle 0x55b913974c88 [uni2]
[May 14 11:51:16] NOTICE[49212][C-00000001]: src/mrcp_client_session.c:131  Create Channel ASR-0 <new>
[May 14 11:51:16] NOTICE[49152]: src/mrcp_client_session.c:385  Receive App Request ASR-0 <new> [2]
[May 14 11:51:16] WARNING[49152]: src/mrcp_client_session.c:1263  Failed to Create Session ASR-0 <new> [2]
[May 14 11:51:16] NOTICE[49152]: src/mrcp_client_session.c:531  Raise App Response ASR-0 <new> [2] FAILURE [1]
[May 14 11:51:16] ERROR[49152]: app_mrcprecog.c:285 speech_on_channel_add: (ASR-0) Channel error status=1, response code=0!
[May 14 11:51:16] NOTICE[49152]: src/mrcp_client_session.c:385  Receive App Request ASR-0 <new> [1]
[May 14 11:51:16] NOTICE[49152]: src/mrcp_client_session.c:453  Raise App Response ASR-0 <new> [1] SUCCESS [0]
[May 14 11:51:16] NOTICE[49152]: src/mrcp_application.c:211  Destroy MRCP Handle ASR-0
[May 14 11:51:16] NOTICE[49212][C-00000001]: app_mrcprecog.c:1034 mrcprecog_exit: MRCPRecog() exiting status: ERROR on SIP/X.19.X.14-00000000
    -- Executing [14088783154@from-internal:7] Verbose("SIP/X.19.X.14-00000000", "1, ERROR, , ") in new stack
  ERROR, ,




On Monday, May 11, 2020 at 5:11:42 PM UTC+5:30, srikanth bonagiri wrote:

Arsen Chaloyan

unread,
May 16, 2020, 8:33:48 PM5/16/20
to UniMRCP
Check for any errors output on the loading of the app_unimrcp module and you will find out the problem.

--
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+u...@googlegroups.com.

srikanth bonagiri

unread,
May 18, 2020, 4:27:54 PM5/18/20
to uni...@googlegroups.com
Hello Arsen,

I tried to load and reload the module. I didn't get any error messages while doing. Could you please let me know the possible cases OR solutions that can resolve this issue?


Thanks & Regards
Srikanth Bonagiri
9381174871


Arsen Chaloyan

unread,
May 31, 2020, 3:07:09 PM5/31/20
to UniMRCP
Hello Srikanth,

The most typical problem is in a wrong or already occupied local IP address/port specified in configuration.

Reply all
Reply to author
Forward
0 new messages