Hi all
I'm using GSR module with Freeswitch.
I have limited amount of channels. And sometimes, when I run out of channels, I get this in freeswitch
2019-09-05 08:03:29.811701 [INFO] mrcp_sofiasip_client_agent.c:609 () Receive SIP Event [nua_i_state] Status 0 INVITE sent [gsr]
2019-09-05 08:03:29.811701 [NOTICE] mrcp_sofiasip_client_agent.c:547 (ASR-28450) SIP Call State ASR-28450 [calling]
2019-09-05 08:03:29.831722 [INFO] mrcp_sofiasip_client_agent.c:609 () Receive SIP Event [nua_r_invite] Status 406 Not Acceptable [gsr]
2019-09-05 08:03:29.831722 [INFO] mrcp_sofiasip_client_agent.c:609 () Receive SIP Event [nua_i_state] Status 406 Not Acceptable [gsr]
2019-09-05 08:03:29.831722 [NOTICE] mrcp_sofiasip_client_agent.c:547 (ASR-28450) SIP Call State ASR-28450 [terminated]
2019-09-05 08:03:29.831722 [INFO] mrcp_client_session.c:151 (ASR-28450) Receive Answer ASR-28450 <new> [c:0 a:0 v:0] Status 406
2019-09-05 08:03:29.831722 [INFO] mrcp_client_session.c:455 (ASR-28450) Raise App Response ASR-28450 <new> [2] FAILURE [2]
d78cac7e-a332-44e0-a4c1-53034516730c 2019-09-05 08:03:29.831722 [ERR] mod_unimrcp.c:1920 (ASR-28450) RECOGNIZER channel error!
I want to use simple lua script to catch these events in order to know when and how often it happens.
I tried to catch all events.
I put
<hook event="all" script="event.lua"/>
in lua.conf.xml
but it seems to me, it doesn't catch this event.
I know I can try to catch sip events with sofia additional settings, but I doubt that sofia in freeswitch has any relation to mrcp module.
Please let me how to do that.
Thank you.