[Freeswitch-users] httapi - dial/bridge only working when it comes first

Don Hawkins hawkins at hawkinsegroup.com
Thu Jul 28 22:38:34 MSD 2016


Anyone?

On Wed, Jul 27, 2016 at 7:54 PM, Don Hawkins <hawkins at hawkinsegroup.com>
wrote:

> 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:
>
> 1. The first thing never happens, even though the console says it did.
> 2. The outbound call "Dial" won't work, it hangs for about 60 seconds and
> then returns a NORMAL_TEMPORARY_FAILURE every time.
>
> Things to note:
>
>       - If I start with the dial request (B below) then it connects the
> call fine, it just can't come after anything else.
>       - 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.
>
>
> Here is an example:
>
>
> A. When FS makes it's first request to my URL I return this:
>
> <document type="text/freeswitch-httapi">
>   <work>
>     <speak action="
> 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"
> name="speak" loop="0" engine="flite" voice="slt" text="We will now begin to
> dial a number. This is just a test." language="en">
>     </speak>
>   </work>
> </document>
>
>
> 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.
>
>
> <document type="text/freeswitch-httapi">
> <work>
> <!-- Hold music URL -->
> <execute application="set" data="ringback=http://blabla.com/beat.wav
> "></execute>
> <!-- Set the caller ID information -->
> <execute application="set" data="effective_caller_id_name=My
> Name"></execute>
> <execute application="set" data="effective_caller_id_number=12144635555
> "></execute>
>
> <!-- The actual call or calls, entrie string separated by commas -->
> <execute application="export" data="nolocal:codec_string=G711"></execute>
> <execute action="
> 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
> "
> application="bridge"
> data="sofia/gatewayAlcazar/12144635555">
> <execute application="answer"/>
> </execute>
> </work>
> </document>
>
>
> 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.
>
> 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.
>



-- 
Sincerely,
Don Hawkins
CEO
Hawkins Enterprise Group LLC
http://hawkinsegroup.com
Zello PTT <http://zello.com>: push2don
P: 469-214-5044
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160728/e9f62454/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list