<div dir="ltr">Anyone?</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 27, 2016 at 7:54 PM, Don Hawkins <span dir="ltr"><<a href="mailto:hawkins@hawkinsegroup.com" target="_blank">hawkins@hawkinsegroup.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'm using httapi and everything is working well for the most part. The one thing I noticed is that whenever I do anything before trying to "Dial" or bridge a call to the gateway:<div><br></div><div>1. The first thing never happens, even though the console says it did.</div><div>2. The outbound call "Dial" won't work, it hangs for about 60 seconds and then returns a NORMAL_TEMPORARY_FAILURE every time.</div><div><br></div><div>Things to note: </div><div> </div><div> - If I start with the dial request (B below) then it connects the call fine, it just can't come after anything else.</div><div> - If I never return a request to dial (pretend B below starts a conference instead) then everything works fine, the TTS works before and the conference works after.</div><div><br></div><div><br></div><div>Here is an example: </div><div><br></div><div><br></div><div>A. When FS makes it's first request to my URL I return this:</div><div><br></div><div><div><document type="text/freeswitch-httapi"></div><div> <work></div><div> <speak action="<a href="http://blabla.com/API/callflow/?customer_next_action_url=http%3A%2F%2Fblabla.com%2Fcustomertest.php%3Fdo%3DDial&customer_method=POST&API_USER_ID=898958" target="_blank">http://blabla.com/API/callflow/?customer_next_action_url=http%3A%2F%2Fblabla.com%2Fcustomertest.php%3Fdo%3DDial&customer_method=POST&API_USER_ID=898958</a>" name="speak" loop="0" engine="flite" voice="slt" text="We will now begin to dial a number. This is just a test." language="en"></div><div> </speak></div><div> </work></div><div></document></div></div><div><br></div><div><br></div><div>B: When FS makes it's next request to my action URL (same URL with different parameters) I return the dial command and attempt to connect to the outbound gateway.</div><div><br></div><div><br></div><div><div><document type="text/freeswitch-httapi"></div><div><work></div><div><!-- Hold music URL --></div><div><execute application="set" data="ringback=<a href="http://blabla.com/beat.wav" target="_blank">http://blabla.com/beat.wav</a>"></execute></div><div><!-- Set the caller ID information --></div><div><execute application="set" data="effective_caller_id_name=My Name"></execute></div><div><execute application="set" data="effective_caller_id_number=<a href="tel:12144635555" value="+12144635555" target="_blank">12144635555</a>"></execute></div><div><br></div><div><!-- The actual call or calls, entrie string separated by commas --></div><div><execute application="export" data="nolocal:codec_string=G711"></execute></div><div><execute action="<a href="http://blabla.com/API/callflow/?customer_next_action_url=http%3A%2F%2Fblabla.com%2Fcustomertest.php%3Fdo%3Dspeak&customer_method=POST&API_USER_ID=898958" target="_blank">http://blabla.com/API/callflow/?customer_next_action_url=http%3A%2F%2Fblabla.com%2Fcustomertest.php%3Fdo%3Dspeak&customer_method=POST&API_USER_ID=898958</a>"</div><div>application="bridge"</div><div>data="sofia/gatewayAlcazar/<a href="tel:12144635555" value="+12144635555" target="_blank">12144635555</a>"></div><div><execute application="answer"/></div><div></execute></div><div></work></div><div></document></div></div><div><br></div><div><br></div><div>What happens? It never speaks the text (although the console says it did) and when dialing out I get "NORMAL_TEMPORARY_FAILURE" and the call never connects. Keep in mind, if the second thing I return (B above) is NOT dial then everything works fine, it will speak the text, play a file, start a conference, or any other application. </div><div><br></div><div>This is the weirdest thing to me and of course almost everything is useless if you can't connect a call at some point, if anyone has any advice I'd be highly appreciative.</div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><span style="color:rgb(102,102,102)"><span>Sincerely,<br>Don Hawkins<br>CEO<br>Hawkins Enterprise Group LLC<br><a href="http://hawkinsegroup.com" target="_blank">http://hawkinsegroup.com</a><br><a href="http://zello.com" target="_blank">Zello PTT</a>: push2don<br></span></span></div><div><span style="color:rgb(102,102,102)"><span>P: 469-214-5044<br></span></span></div><div dir="ltr"><span style="color:rgb(102,102,102)"><span><a value="+12146991224"></a></span></span></div></div></div></div></div></div>
</div>