Menu not working with Swift / Asterisk?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Menu not working with Swift / Asterisk?

Tobias Schlottke
Hi,

I got adhearsion working with Swift and Asterisk after a while (say works).
Now I wanted to create a menu or use "ask", which should be possible from my understanding aswell.
Unfortunately, I end up with this exception:

<Punchblock::ProtocolError> #<Punchblock::ProtocolError: name="unrenderable document error" text="The provided document could not be rendered. See http://adhearsion.com/docs/common_problems#unrenderable-document-error for details." call_id=nil component_id=nil>


Adhearsion sent this document:
xecuting command #<Punchblock::Component::Prompt target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 29 Mar 2015 19:05:30 +0200, request_id="0f24d4c5-3cc7-43e2-a29f-4129271b27c4", barge_in=true, output=#<Punchblock::Component::Output target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 29 Mar 2015 19:05:30 +0200, request_id="e1c30466-ce54-4ab8-99e8-6fb1f61dec45", headers={}, voice=nil, interrupt_on=nil, start_offset=nil, start_paused=nil, repeat_interval=nil, repeat_times=nil, max_time=nil, renderer=nil, render_documents=[#<Punchblock::Component::Output::Document target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 29 Mar 2015 19:05:30 +0200, url=nil, content_type="application/ssml+xml", value=<speak xmlns="http://www.w3.org/2001/10/synthesis" version="1.0" xml:lang="en-US">Wohin willst Du?</speak>>]>, input=#<Punchblock::Component::Input target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 29 Mar 2015 19:05:30 +0200, request_id="9634a776-cb5d-4025-b534-ae76a67dd7b5", headers={}, max_silence=8000, min_confidence=0.5, mode=:dtmf, recognizer=nil, language="en-US", terminator=nil, sensitivity=nil, initial_timeout=8000, inter_digit_timeout=8000, recognition_timeout=nil, grammars=[#<Punchblock::Component::Input::Grammar target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 29 Mar 2015 19:05:30 +0200, value=<grammar xmlns="http://www.w3.org/2001/06/grammar" version="1.0" xml:lang="en-US" mode="dtmf" root="options" tag-format="semantics/1.0-literals">
  <rule id="options" scope="public">
    <item>
      <one-of>
        <item><tag>0</tag>1</item>
      </one-of>
    </item>
  </rule>
</grammar>, content_type="application/srgs+xml", url=nil>]>>


What is it? Any ideas are appreciated.

Best,

Tobias

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Menu not working with Swift / Asterisk?

Ben Langfeld-2
Note that the renderer is set nil on the output portion of the prompt component. Could you please post the code you used to invoke both #say and #ask/#menu? Comparing that with the API documentation should resolve the issue fairly easily.

If you want to use Swift by default for all invocations in your app, take a look at the renderer settings available by doing `rake config:show`. Again, it should be obvious what you need to set.

On 29 March 2015 at 14:10, Tobias Schlottke <[hidden email]> wrote:
Hi,

I got adhearsion working with Swift and Asterisk after a while (say works).
Now I wanted to create a menu or use "ask", which should be possible from my understanding aswell.
Unfortunately, I end up with this exception:

<Punchblock::ProtocolError> #<Punchblock::ProtocolError: name="unrenderable document error" text="The provided document could not be rendered. See http://adhearsion.com/docs/common_problems#unrenderable-document-error for details." call_id=nil component_id=nil>


Adhearsion sent this document:
xecuting command #<Punchblock::Component::Prompt target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 29 Mar 2015 19:05:30 +0200, request_id="0f24d4c5-3cc7-43e2-a29f-4129271b27c4", barge_in=true, output=#<Punchblock::Component::Output target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 29 Mar 2015 19:05:30 +0200, request_id="e1c30466-ce54-4ab8-99e8-6fb1f61dec45", headers={}, voice=nil, interrupt_on=nil, start_offset=nil, start_paused=nil, repeat_interval=nil, repeat_times=nil, max_time=nil, renderer=nil, render_documents=[#<Punchblock::Component::Output::Document target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 29 Mar 2015 19:05:30 +0200, url=nil, content_type="application/ssml+xml", value=<speak xmlns="http://www.w3.org/2001/10/synthesis" version="1.0" xml:lang="en-US">Wohin willst Du?</speak>>]>, input=#<Punchblock::Component::Input target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 29 Mar 2015 19:05:30 +0200, request_id="9634a776-cb5d-4025-b534-ae76a67dd7b5", headers={}, max_silence=8000, min_confidence=0.5, mode=:dtmf, recognizer=nil, language="en-US", terminator=nil, sensitivity=nil, initial_timeout=8000, inter_digit_timeout=8000, recognition_timeout=nil, grammars=[#<Punchblock::Component::Input::Grammar target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 29 Mar 2015 19:05:30 +0200, value=<grammar xmlns="http://www.w3.org/2001/06/grammar" version="1.0" xml:lang="en-US" mode="dtmf" root="options" tag-format="semantics/1.0-literals">
  <rule id="options" scope="public">
    <item>
      <one-of>
        <item><tag>0</tag>1</item>
      </one-of>
    </item>
  </rule>
</grammar>, content_type="application/srgs+xml", url=nil>]>>


What is it? Any ideas are appreciated.

Best,

Tobias

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

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Menu not working with Swift / Asterisk?

Tobias Schlottke
Sorry for that dumb question. I just realized that media_engine is deprecated and default_renderer is the option to take.
Correcting that in the docs would be a good idea though :-)

Thanks & Best wishes,

Tobias

Am Sonntag, 29. März 2015 19:31:27 UTC+2 schrieb Ben Langfeld:
Note that the renderer is set nil on the output portion of the prompt component. Could you please post the code you used to invoke both #say and #ask/#menu? Comparing that with the API documentation should resolve the issue fairly easily.

If you want to use Swift by default for all invocations in your app, take a look at the renderer settings available by doing `rake config:show`. Again, it should be obvious what you need to set.

On 29 March 2015 at 14:10, Tobias Schlottke <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="sX6U83x3HzEJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">tobias.s...@...> wrote:
Hi,

I got adhearsion working with Swift and Asterisk after a while (say works).
Now I wanted to create a menu or use "ask", which should be possible from my understanding aswell.
Unfortunately, I end up with this exception:

<Punchblock::ProtocolError> #<Punchblock::ProtocolError: name="unrenderable document error" text="The provided document could not be rendered. See <a href="http://adhearsion.com/docs/common_problems#unrenderable-document-error" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fadhearsion.com%2Fdocs%2Fcommon_problems%23unrenderable-document-error\46sa\75D\46sntz\0751\46usg\75AFQjCNFsDbA1WcWIaLrJJ7hwv5SkyP-e9g';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fadhearsion.com%2Fdocs%2Fcommon_problems%23unrenderable-document-error\46sa\75D\46sntz\0751\46usg\75AFQjCNFsDbA1WcWIaLrJJ7hwv5SkyP-e9g';return true;">http://adhearsion.com/docs/common_problems#unrenderable-document-error for details." call_id=nil component_id=nil>


Adhearsion sent this document:
xecuting command #<Punchblock::Component::Prompt target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 29 Mar 2015 19:05:30 +0200, request_id="0f24d4c5-3cc7-43e2-a29f-4129271b27c4", barge_in=true, output=#<Punchblock::Component::Output target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 29 Mar 2015 19:05:30 +0200, request_id="e1c30466-ce54-4ab8-99e8-6fb1f61dec45", headers={}, voice=nil, interrupt_on=nil, start_offset=nil, start_paused=nil, repeat_interval=nil, repeat_times=nil, max_time=nil, renderer=nil, render_documents=[#<Punchblock::Component::Output::Document target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 29 Mar 2015 19:05:30 +0200, url=nil, content_type="application/ssml+xml", value=<speak xmlns="<a href="http://www.w3.org/2001/10/synthesis" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.w3.org%2F2001%2F10%2Fsynthesis\46sa\75D\46sntz\0751\46usg\75AFQjCNFqjm6NM14_EJaEnQY0QPVBzOEhHg';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.w3.org%2F2001%2F10%2Fsynthesis\46sa\75D\46sntz\0751\46usg\75AFQjCNFqjm6NM14_EJaEnQY0QPVBzOEhHg';return true;">http://www.w3.org/2001/10/synthesis" version="1.0" xml:lang="en-US">Wohin willst Du?</speak>>]>, input=#<Punchblock::Component::Input target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 29 Mar 2015 19:05:30 +0200, request_id="9634a776-cb5d-4025-b534-ae76a67dd7b5", headers={}, max_silence=8000, min_confidence=0.5, mode=:dtmf, recognizer=nil, language="en-US", terminator=nil, sensitivity=nil, initial_timeout=8000, inter_digit_timeout=8000, recognition_timeout=nil, grammars=[#<Punchblock::Component::Input::Grammar target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 29 Mar 2015 19:05:30 +0200, value=<grammar xmlns="<a href="http://www.w3.org/2001/06/grammar" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.w3.org%2F2001%2F06%2Fgrammar\46sa\75D\46sntz\0751\46usg\75AFQjCNHaVZXIUgJ3xI_WZ4r0ZUDVT59sqw';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.w3.org%2F2001%2F06%2Fgrammar\46sa\75D\46sntz\0751\46usg\75AFQjCNHaVZXIUgJ3xI_WZ4r0ZUDVT59sqw';return true;">http://www.w3.org/2001/06/grammar" version="1.0" xml:lang="en-US" mode="dtmf" root="options" tag-format="semantics/1.0-literals">
  <rule id="options" scope="public">
    <item>
      <one-of>
        <item><tag>0</tag>1</item>
      </one-of>
    </item>
  </rule>
</grammar>, content_type="application/srgs+xml", url=nil>]>>


What is it? Any ideas are appreciated.

Best,

Tobias

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="sX6U83x3HzEJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">adhearsion+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Menu not working with Swift / Asterisk?

Ben Langfeld-2
Pull requests graciously accepted :) https://github.com/adhearsion/adhearsion-website

On 30 March 2015 at 09:21, Tobias Schlottke <[hidden email]> wrote:
Sorry for that dumb question. I just realized that media_engine is deprecated and default_renderer is the option to take.
Correcting that in the docs would be a good idea though :-)

Thanks & Best wishes,

Tobias

Am Sonntag, 29. März 2015 19:31:27 UTC+2 schrieb Ben Langfeld:
Note that the renderer is set nil on the output portion of the prompt component. Could you please post the code you used to invoke both #say and #ask/#menu? Comparing that with the API documentation should resolve the issue fairly easily.

If you want to use Swift by default for all invocations in your app, take a look at the renderer settings available by doing `rake config:show`. Again, it should be obvious what you need to set.

On 29 March 2015 at 14:10, Tobias Schlottke <[hidden email]> wrote:
Hi,

I got adhearsion working with Swift and Asterisk after a while (say works).
Now I wanted to create a menu or use "ask", which should be possible from my understanding aswell.
Unfortunately, I end up with this exception:

<Punchblock::ProtocolError> #<Punchblock::ProtocolError: name="unrenderable document error" text="The provided document could not be rendered. See http://adhearsion.com/docs/common_problems#unrenderable-document-error for details." call_id=nil component_id=nil>


Adhearsion sent this document:
xecuting command #<Punchblock::Component::Prompt target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 29 Mar 2015 19:05:30 +0200, request_id="0f24d4c5-3cc7-43e2-a29f-4129271b27c4", barge_in=true, output=#<Punchblock::Component::Output target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 29 Mar 2015 19:05:30 +0200, request_id="e1c30466-ce54-4ab8-99e8-6fb1f61dec45", headers={}, voice=nil, interrupt_on=nil, start_offset=nil, start_paused=nil, repeat_interval=nil, repeat_times=nil, max_time=nil, renderer=nil, render_documents=[#<Punchblock::Component::Output::Document target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 29 Mar 2015 19:05:30 +0200, url=nil, content_type="application/ssml+xml", value=<speak xmlns="http://www.w3.org/2001/10/synthesis" version="1.0" xml:lang="en-US">Wohin willst Du?</speak>>]>, input=#<Punchblock::Component::Input target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 29 Mar 2015 19:05:30 +0200, request_id="9634a776-cb5d-4025-b534-ae76a67dd7b5", headers={}, max_silence=8000, min_confidence=0.5, mode=:dtmf, recognizer=nil, language="en-US", terminator=nil, sensitivity=nil, initial_timeout=8000, inter_digit_timeout=8000, recognition_timeout=nil, grammars=[#<Punchblock::Component::Input::Grammar target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 29 Mar 2015 19:05:30 +0200, value=<grammar xmlns="http://www.w3.org/2001/06/grammar" version="1.0" xml:lang="en-US" mode="dtmf" root="options" tag-format="semantics/1.0-literals">
  <rule id="options" scope="public">
    <item>
      <one-of>
        <item><tag>0</tag>1</item>
      </one-of>
    </item>
  </rule>
</grammar>, content_type="application/srgs+xml", url=nil>]>>


What is it? Any ideas are appreciated.

Best,

Tobias

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

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

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Menu not working with Swift / Asterisk?

Ben Langfeld-2
Corrected in the docs :)

On 30 March 2015 at 10:43, Ben Langfeld <[hidden email]> wrote:
Pull requests graciously accepted :) https://github.com/adhearsion/adhearsion-website

On 30 March 2015 at 09:21, Tobias Schlottke <[hidden email]> wrote:
Sorry for that dumb question. I just realized that media_engine is deprecated and default_renderer is the option to take.
Correcting that in the docs would be a good idea though :-)

Thanks & Best wishes,

Tobias

Am Sonntag, 29. März 2015 19:31:27 UTC+2 schrieb Ben Langfeld:
Note that the renderer is set nil on the output portion of the prompt component. Could you please post the code you used to invoke both #say and #ask/#menu? Comparing that with the API documentation should resolve the issue fairly easily.

If you want to use Swift by default for all invocations in your app, take a look at the renderer settings available by doing `rake config:show`. Again, it should be obvious what you need to set.

On 29 March 2015 at 14:10, Tobias Schlottke <[hidden email]> wrote:
Hi,

I got adhearsion working with Swift and Asterisk after a while (say works).
Now I wanted to create a menu or use "ask", which should be possible from my understanding aswell.
Unfortunately, I end up with this exception:

<Punchblock::ProtocolError> #<Punchblock::ProtocolError: name="unrenderable document error" text="The provided document could not be rendered. See http://adhearsion.com/docs/common_problems#unrenderable-document-error for details." call_id=nil component_id=nil>


Adhearsion sent this document:
xecuting command #<Punchblock::Component::Prompt target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 29 Mar 2015 19:05:30 +0200, request_id="0f24d4c5-3cc7-43e2-a29f-4129271b27c4", barge_in=true, output=#<Punchblock::Component::Output target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 29 Mar 2015 19:05:30 +0200, request_id="e1c30466-ce54-4ab8-99e8-6fb1f61dec45", headers={}, voice=nil, interrupt_on=nil, start_offset=nil, start_paused=nil, repeat_interval=nil, repeat_times=nil, max_time=nil, renderer=nil, render_documents=[#<Punchblock::Component::Output::Document target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 29 Mar 2015 19:05:30 +0200, url=nil, content_type="application/ssml+xml", value=<speak xmlns="http://www.w3.org/2001/10/synthesis" version="1.0" xml:lang="en-US">Wohin willst Du?</speak>>]>, input=#<Punchblock::Component::Input target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 29 Mar 2015 19:05:30 +0200, request_id="9634a776-cb5d-4025-b534-ae76a67dd7b5", headers={}, max_silence=8000, min_confidence=0.5, mode=:dtmf, recognizer=nil, language="en-US", terminator=nil, sensitivity=nil, initial_timeout=8000, inter_digit_timeout=8000, recognition_timeout=nil, grammars=[#<Punchblock::Component::Input::Grammar target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 29 Mar 2015 19:05:30 +0200, value=<grammar xmlns="http://www.w3.org/2001/06/grammar" version="1.0" xml:lang="en-US" mode="dtmf" root="options" tag-format="semantics/1.0-literals">
  <rule id="options" scope="public">
    <item>
      <one-of>
        <item><tag>0</tag>1</item>
      </one-of>
    </item>
  </rule>
</grammar>, content_type="application/srgs+xml", url=nil>]>>


What is it? Any ideas are appreciated.

Best,

Tobias

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

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


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