Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Executed the last dialplan instruction after use dialogflow_start #157

Open
andreslavariega opened this issue Dec 5, 2023 · 0 comments
Open

Comments

@andreslavariega
Copy link

Hello! I need help (I don't know if there is a help forum, please tell me what it is),
I have this Dial plan for freeswitch. I installed it with ansible, but I don't know how I can use dialogflow_start in a stable call.

            <!-- establish outbound event socket connection to the address specified in the X-esl-outbound header -->
            <extension name="socket">
                    <condition field="${sip_user_agent}" expression="^drachtio-fsmrf:(.*)$">
                            <action application="answer"/>
                            <action application="socket" data="${sip_h_X-esl-outbound} async full"/>
                    </condition>
            </extension>

            <extension name="12_digits">
                    <condition field="destination_number" expression="^\d{12}$">
                            <action application="answer"/>
                            <action application="set" data="project-id=encuesta-voicebot" />
                            <action application="set" data="lang-code=es" />
                            <action application="set" data="event=Welcome" />
                            <action application="set" data="api_result=${dialogflow_start(${uuid} ${project-id} ${lang-code} ${event})}" />
                    </condition>
            </extension>
    </context>

And I receive the call and this is the log, in the log we can see that the api connect to dialogflow, but end the session immediately.

2023-12-05 22:28:16.475388 48.43% [INFO] sofia.c:10459 sofia/drachtio_mrf/5570990001@170.79.125.94 receiving invite from 170.79.125.94:5060 version: 1.10.10-release git 4cb05e7 2023-08-13 16:57:39Z 64bit call-id: 6013595016aad5011352f06406be60fc@170.79.125.94:5060
2023-12-05 22:28:16.475388 48.43% [INFO] mod_dialplan_xml.c:639 Processing 5570990001,523317030866,,35329ef8f0f6,170.79.125.142,8990,false <5570990001>->523317030866 in context mrf
EXECUTE [depth=0] sofia/drachtio_mrf/5570990001@170.79.125.94 answer()
2023-12-05 22:28:16.475388 48.43% [NOTICE] mod_dptools.c:1406 Channel [sofia/drachtio_mrf/5570990001@170.79.125.94] has been answered
EXECUTE [depth=0] sofia/drachtio_mrf/5570990001@170.79.125.94 set(project-id=encuesta-voicebot)
2023-12-05 22:28:16.475388 48.43% [DEBUG] mod_dptools.c:1671 SET sofia/drachtio_mrf/5570990001@170.79.125.94 [project-id]=[encuesta-voicebot]
EXECUTE [depth=0] sofia/drachtio_mrf/5570990001@170.79.125.94 set(lang-code=es)
2023-12-05 22:28:16.475388 48.43% [DEBUG] mod_dptools.c:1671 SET sofia/drachtio_mrf/5570990001@170.79.125.94 [lang-code]=[es]
EXECUTE [depth=0] sofia/drachtio_mrf/5570990001@170.79.125.94 set(event=Welcome)
2023-12-05 22:28:16.475388 48.43% [DEBUG] mod_dptools.c:1671 SET sofia/drachtio_mrf/5570990001@170.79.125.94 [event]=[Welcome]
2023-12-05 22:28:16.475388 48.43% [DEBUG] mod_dialogflow.c:146 command 7ca15de5-c8f5-468c-8887-11d3f9848ff2 encuesta-voicebot es Welcome
2023-12-05 22:28:16.475388 48.43% [DEBUG] google_glue.cpp:125 GStreamer: token 0: 'encuesta-voicebot'
2023-12-05 22:28:16.475388 48.43% [INFO] google_glue.cpp:145 GStreamer dialogflow endpoint is dialogflow.googleapis.com, region is us, project is encuesta-voicebot, environment is draft
2023-12-05 22:28:16.475388 48.43% [INFO] google_glue.cpp:177 GStreamer::startStream session projects/encuesta-voicebot/locations/us/agent/environments/draft/users/-/sessions/7ca15de5-c8f5-468c-8887-11d3f9848ff2, event Welcome, text (null) 0x7f0f6809f570
2023-12-05 22:28:16.475388 48.43% [DEBUG] google_glue.cpp:210 GStreamer::startStream checking OutputAudioConfig custom parameters: speaking rate 0.000000, pitch 0.000000, volume 0.000000, voice name '' gender '', effects ''
2023-12-05 22:28:16.475388 48.43% [INFO] google_glue.cpp:239 GStreamer::startStream no custom parameters for OutputAudioConfig, keeping default
EXECUTE [depth=0] sofia/drachtio_mrf/5570990001@170.79.125.94 set(api_result=+OK Success
)
2023-12-05 22:28:16.535463 48.43% [NOTICE] switch_core_state_machine.c:382 sofia/drachtio_mrf/5570990001@170.79.125.94 has executed the last dialplan instruction, hanging up.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant