drachtio/drachtio-freeswitch-modules

unable to load mod_dialogflow

Closed this issue · 5 comments

Unable to load mod_dialogflow gettting this error

2019-12-24 18:03:35.139452 [CRIT] switch_loadable_module.c:1522 Error Loading module /usr/local/freeswitch/mod/mod_dialogflow.so
/usr/local/freeswitch/mod/mod_dialogflow.so: undefined symbol: destroyChannelUserData

Now getting

2019-12-24 19:58:05.496361 [CRIT] switch_loadable_module.c:1522 Error Loading module /usr/local/freeswitch/mod/mod_dialogflow.so
/usr/local/freeswitch/mod/mod_dialogflow.so: undefined symbol: _ZN6google5cloud10dialogflow7v2beta139_Intent_Message_Image_default_instance_E

I build using this ansible role and have no such issues. In fact I just rebuilt a server using that and verified mod_dialogflow loads fine.

I suggest you use that ansible role, or if you do not use ansible, look carefully at what it does and the various repos and tags/versions that it uses. Its important to get the version of grpc and googleapis that match the mod_dialogflow code. (But its simpler to use ansible, and if that is not in your bag of tricks currently I highly recommend you pick it up)

freeswitch@ip-172-31-39-252> reload mod_dialogflow
2019-12-24 16:13:16.437699 [INFO] switch_stun.c:900 External ip address detected using STUN: 52.207.224.37
2019-12-24 16:13:16.457694 [INFO] switch_stun.c:900 External ip address detected using STUN: 52.207.224.37
2019-12-24 16:13:16.517703 [NOTICE] switch_loadable_module.c:1318 Deleting API Function 'dialogflow_start'
2019-12-24 16:13:16.517703 [NOTICE] switch_loadable_module.c:1318 Deleting API Function 'dialogflow_stop'
2019-12-24 16:13:16.517703 [CONSOLE] switch_loadable_module.c:2398 Stopping: mod_dialogflow
2019-12-24 16:13:16.517703 [INFO] switch_time.c:1433 Timezone reloaded 1750 definitions
2019-12-24 16:13:16.517703 [NOTICE] switch_event.c:463 Subclass reservation deleted for mod_dialogflow.c:dialogflow::intent
2019-12-24 16:13:16.517703 [NOTICE] switch_event.c:463 Subclass reservation deleted for mod_dialogflow.c:dialogflow::transcription
2019-12-24 16:13:16.517703 [NOTICE] switch_event.c:463 Subclass reservation deleted for mod_dialogflow.c:dialogflow::end_of_utterance
2019-12-24 16:13:16.517703 [NOTICE] switch_event.c:463 Subclass reservation deleted for mod_dialogflow.c:dialogflow::audio_provided
2019-12-24 16:13:16.517703 [NOTICE] switch_event.c:463 Subclass reservation deleted for mod_dialogflow.c:dialogflow::error
2019-12-24 16:13:16.517703 [CONSOLE] switch_loadable_module.c:2418 mod_dialogflow unloaded.
2019-12-24 16:13:16.517703 [NOTICE] mod_dialogflow.c:259 Google Dialogflow API loading..
2019-12-24 16:13:16.517703 [NOTICE] google_glue.cpp:283 "GOOGLE_APPLICATION_CREDENTIALS" environment variable is not set; authentication will use "GOOGLE_APPLICATION_CREDENTIALS" channel variable
2019-12-24 16:13:16.517703 [NOTICE] mod_dialogflow.c:265 Google Dialogflow API successfully loaded
2019-12-24 16:13:16.517703 [CONSOLE] switch_loadable_module.c:1804 Successfully Loaded [mod_dialogflow]
2019-12-24 16:13:16.517703 [NOTICE] switch_loadable_module.c:412 Adding API Function 'dialogflow_start'

+OK Reloading XML
+OK module unloaded
+OK module loaded

2019-12-24 16:13:16.517703 [NOTICE] switch_loadable_module.c:412 Adding API Function 'dialogflow_stop'

Yes compiled from ansible role working well. Thanks

great!