tropo / PhonoSDK

Phono.com - The jQuery Phone API
http://phono.com
Other
131 stars 63 forks source link

SSL support? #28

Closed undsoft closed 9 years ago

undsoft commented 11 years ago

Does tropo support SSL? I'm trying the kitchen sink demo here: https://s.phono.com/releases/0.4/samples/kitchen-sink/www/index.html and it doesn't work.

I've tried Firefox and Chrome. Doesn't matter what audio engine I choose.

In Firefox I get:

function() - error -

TypeError: player is null

player.start();

jquery.phono.js (line 5038)

player is null jquery.phono.js (line 2702)

13:20:40.115 DEBUG - [STROPHE] error: function () { [native code] } https://s.phono.com/releases/0.4/samples/kitchen-sink/www/jquery.phono.js:5038 - TypeError: player is null

In Chrome:

Uncaught TypeError: Cannot call method 'stop' of null jquery.phono.js:5041 stop jquery.phono.js:5041 Phone.doJingle jquery.phono.js:7149 Strophe.Handler.run jquery.phono.js:2693 (anonymous function) jquery.phono.js:4006 Strophe.forEachChild jquery.phono.js:1899 Strophe.Connection._dataRecv jquery.phono.js:3997 Strophe.Connection._onRequestStateChange jquery.phono.js:3854 (anonymous function) jquery.phono.js:1647 (anonymous function)

steely-glint commented 11 years ago

It should support SSL - the problem may be with the ringtone files - try installing kitchen sink on a local web server and then updating the selected ringtones to be loaded over https too. Browsers are getting increasingly picky about mixed content.

nstratford commented 11 years ago

It looks like this may have been a bug in the 0.4 release. (Pushed a fix ready for 0.5.)

Does 0.3 work ok for you? https://s.phono.com/releases/0.3/samples/kitchen-sink/www/index.html

undsoft commented 11 years ago

Yes, 0.3 works ok.

undsoft commented 11 years ago

Any insights on when 0.5 is out? Or any tips on how to build the project out of these files?

undsoft commented 11 years ago

Ok, I was able to build the latest version of phono. I have installed Apache Ant, Groovy and Adobe Flex SDK. The building process goes fine and I can make calls over ssl, but I don't hear any sound on flash engine.

Any ideas on this, guys? Maybe there's some other dependency I don't know about?

nstratford commented 11 years ago

Does the kitchen sink demo work ok for you? (it uses a relative path to the flash swf file - which you need at the moment as the trunk version will try to load from a non-existent CDN location without it.)

Can you send us the javascript logs?

undsoft commented 11 years ago

The demo on the build I've made also doesn't work. I'm using relative paths to swf in my application too, so there's probably something wrong with my build.

The logs look ok:

Phono Logger Initialized jquery.phono.js:1014
audioType = auto kitchen-sink.js:53
dialString = sip:3366@login.zipdx.com kitchen-sink.js:54
charString = en2fr@bot.talk.google.com kitchen-sink.js:55
11:26:09.009 DEBUG - ConnectionUrl: http://app.phono.com/http-bind jquery.phono.js:7546
11:26:09.011 DEBUG - [STROPHE] CORS with Firefox/Safari/Chome jquery.phono.js:7546
11:26:09.012 DEBUG - [INVOKE] Phono.connect() jquery.phono.js:7546
11:26:09.015 DEBUG - [STROPHE] _throttledRequestHandler called with 1 requests jquery.phono.js:7546
11:26:09.016 DEBUG - [STROPHE] request id 1.0 posting jquery.phono.js:7546
11:26:09.017 DEBUG - [STROPHE] request id 1.0 state changed to 1 jquery.phono.js:7546
11:26:09.018 DEBUG - [WIRE] (o) <body rid="3193041094" xmlns="http://jabber.org/protocol/httpbind" to="gw-v4.d.phono.com" xml:lang="en" wait="50" hold="1" content="text/xml; charset=utf-8" ver="1.6" xmpp:version="1.0" xmlns:xmpp="urn:xmpp:xbosh"/> jquery.phono.js:7546
11:26:09.210 DEBUG - [STROPHE] request id 1.1 state changed to 2 jquery.phono.js:7546
11:26:09.210 DEBUG - [STROPHE] request id 1.1 state changed to 3 jquery.phono.js:7546
11:26:09.211 DEBUG - [STROPHE] request id 1.1 state changed to 4 jquery.phono.js:7546
11:26:09.212 DEBUG - [STROPHE] removing request jquery.phono.js:7546
11:26:09.212 DEBUG - [STROPHE] _throttledRequestHandler called with 0 requests jquery.phono.js:7546
11:26:09.213 DEBUG - [STROPHE] request id 1 should now be removed jquery.phono.js:7546
11:26:09.213 DEBUG - [STROPHE] request id 1.1 got 200 jquery.phono.js:7546
11:26:09.213 DEBUG - [STROPHE] _connect_cb was called jquery.phono.js:7546
11:26:09.214 DEBUG - [WIRE] (i) <body xmlns="http://jabber.org/protocol/httpbind" xmlns:stream="http://etherx.jabber.org/streams" xmlns:xmpp="urn:xmpp:xbosh" ack="3193041094" authid="efbfaf51-7f20-464b-8301-030756b0ad3c" hold="1" inactivity="30" maxpause="300" polling="1" requests="2" sid="efbfaf51-7f20-464b-8301-030756b0ad3c" ver="1.6" wait="50"><stream:features><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms></stream:features></body> jquery.phono.js:7546
11:26:09.215 DEBUG - [STROPHE] _throttledRequestHandler called with 0 requests jquery.phono.js:7546
11:26:09.317 DEBUG - [STROPHE] request id 2.0 posting jquery.phono.js:7546
11:26:09.318 DEBUG - [STROPHE] request id 2.0 state changed to 1 jquery.phono.js:7546
11:26:09.318 DEBUG - [WIRE] (o) <body rid="3193041095" xmlns="http://jabber.org/protocol/httpbind" sid="efbfaf51-7f20-464b-8301-030756b0ad3c"><auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="ANONYMOUS"/></body> jquery.phono.js:7546
11:26:09.473 DEBUG - [STROPHE] request id 2.1 state changed to 2 jquery.phono.js:7546
11:26:09.473 DEBUG - [STROPHE] request id 2.1 state changed to 3 jquery.phono.js:7546
11:26:09.474 DEBUG - [STROPHE] request id 2.1 state changed to 4 jquery.phono.js:7546
11:26:09.474 DEBUG - [STROPHE] removing request jquery.phono.js:7546
11:26:09.474 DEBUG - [STROPHE] _throttledRequestHandler called with 0 requests jquery.phono.js:7546
11:26:09.475 DEBUG - [STROPHE] request id 2 should now be removed jquery.phono.js:7546
11:26:09.475 DEBUG - [STROPHE] request id 2.1 got 200 jquery.phono.js:7546
11:26:09.475 DEBUG - [WIRE] (i) <body xmlns="http://jabber.org/protocol/httpbind"><success xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/></body> jquery.phono.js:7546
11:26:09.477 DEBUG - [STROPHE] SASL authentication succeeded. jquery.phono.js:7546
11:26:09.477 DEBUG - [STROPHE] _throttledRequestHandler called with 0 requests jquery.phono.js:7546
11:26:09.578 DEBUG - [STROPHE] request id 3.0 posting jquery.phono.js:7546
11:26:09.579 DEBUG - [STROPHE] request id 3.0 state changed to 1 jquery.phono.js:7546
11:26:09.579 DEBUG - [WIRE] (o) <body rid="3193041096" xmlns="http://jabber.org/protocol/httpbind" sid="efbfaf51-7f20-464b-8301-030756b0ad3c" to="gw-v4.d.phono.com" xml:lang="en" xmpp:restart="true" xmlns:xmpp="urn:xmpp:xbosh"/> jquery.phono.js:7546
11:26:09.793 DEBUG - [STROPHE] request id 3.1 state changed to 2 jquery.phono.js:7546
11:26:09.793 DEBUG - [STROPHE] request id 3.1 state changed to 3 jquery.phono.js:7546
11:26:09.794 DEBUG - [STROPHE] request id 3.1 state changed to 4 jquery.phono.js:7546
11:26:09.794 DEBUG - [STROPHE] removing request jquery.phono.js:7546
11:26:09.794 DEBUG - [STROPHE] _throttledRequestHandler called with 0 requests jquery.phono.js:7546
11:26:09.795 DEBUG - [STROPHE] request id 3 should now be removed jquery.phono.js:7546
11:26:09.795 DEBUG - [STROPHE] request id 3.1 got 200 jquery.phono.js:7546
11:26:09.796 DEBUG - [WIRE] (i) <body xmlns="http://jabber.org/protocol/httpbind" xmlns:stream="http://etherx.jabber.org/streams"><stream:features><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/><session xmlns="urn:ietf:params:xml:ns:xmpp-session"/></stream:features></body> jquery.phono.js:7546
11:26:09.797 DEBUG - [STROPHE] _throttledRequestHandler called with 0 requests jquery.phono.js:7546
11:26:09.898 DEBUG - [STROPHE] request id 4.0 posting jquery.phono.js:7546
11:26:09.898 DEBUG - [STROPHE] request id 4.0 state changed to 1 jquery.phono.js:7546
11:26:09.899 DEBUG - [WIRE] (o) <body rid="3193041097" xmlns="http://jabber.org/protocol/httpbind" sid="efbfaf51-7f20-464b-8301-030756b0ad3c"><iq type="set" id="_bind_auth_2" xmlns="jabber:client"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/></iq></body> jquery.phono.js:7546
11:26:10.075 DEBUG - [STROPHE] request id 4.1 state changed to 2 jquery.phono.js:7546
11:26:10.076 DEBUG - [STROPHE] request id 4.1 state changed to 3 jquery.phono.js:7546
11:26:10.076 DEBUG - [STROPHE] request id 4.1 state changed to 4 jquery.phono.js:7546
11:26:10.076 DEBUG - [STROPHE] removing request jquery.phono.js:7546
11:26:10.076 DEBUG - [STROPHE] _throttledRequestHandler called with 0 requests jquery.phono.js:7546
11:26:10.077 DEBUG - [STROPHE] request id 4 should now be removed jquery.phono.js:7546
11:26:10.077 DEBUG - [STROPHE] request id 4.1 got 200 jquery.phono.js:7546
11:26:10.078 DEBUG - [WIRE] (i) <body xmlns="http://jabber.org/protocol/httpbind"><iq from="gw-v4.d.phono.com" id="_bind_auth_2" to="8c75ca72-fd01-4b4f-8bd0-39e179dd2265@gw-v4.d.phono.com" type="result"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><jid>8c75ca72-fd01-4b4f-8bd0-39e179dd2265@phono4-ext.voxeolabs.net/5c97b77jxqux</jid></bind></iq></body> jquery.phono.js:7546
11:26:10.078 DEBUG - [STROPHE] _throttledRequestHandler called with 0 requests jquery.phono.js:7546
11:26:10.179 DEBUG - [STROPHE] request id 5.0 posting jquery.phono.js:7546
11:26:10.179 DEBUG - [STROPHE] request id 5.0 state changed to 1 jquery.phono.js:7546
11:26:10.180 DEBUG - [WIRE] (o) <body rid="3193041098" xmlns="http://jabber.org/protocol/httpbind" sid="efbfaf51-7f20-464b-8301-030756b0ad3c"><iq type="set" id="_session_auth_2" xmlns="jabber:client"><session xmlns="urn:ietf:params:xml:ns:xmpp-session"/></iq></body> jquery.phono.js:7546
11:26:10.342 DEBUG - [STROPHE] request id 5.1 state changed to 2 jquery.phono.js:7546
11:26:10.343 DEBUG - [STROPHE] request id 5.1 state changed to 3 jquery.phono.js:7546
11:26:10.343 DEBUG - [STROPHE] request id 5.1 state changed to 4 jquery.phono.js:7546
11:26:10.343 DEBUG - [STROPHE] removing request jquery.phono.js:7546
11:26:10.344 DEBUG - [STROPHE] _throttledRequestHandler called with 0 requests jquery.phono.js:7546
11:26:10.344 DEBUG - [STROPHE] request id 5 should now be removed jquery.phono.js:7546
11:26:10.345 DEBUG - [STROPHE] request id 5.1 got 200 jquery.phono.js:7546
11:26:10.345 DEBUG - [WIRE] (i) <body xmlns="http://jabber.org/protocol/httpbind"><iq from="gw-v4.d.phono.com" id="_session_auth_2" to="8c75ca72-fd01-4b4f-8bd0-39e179dd2265@gw-v4.d.phono.com/5c97b77jxqux" type="result"><session xmlns="urn:ietf:params:xml:ns:xmpp-session"/></iq></body> jquery.phono.js:7546
11:26:10.346 DEBUG - [STROPHE] _throttledRequestHandler called with 0 requests jquery.phono.js:7546
11:26:10.346 DEBUG - [INVOKE] Phono.handleConnect() jquery.phono.js:7546
Detecting Audio Plugin jquery.phono.js:6638
Detected Flash jquery.phono.js:6648
11:26:10.447 DEBUG - [STROPHE] request id 6.0 posting jquery.phono.js:7546
11:26:10.447 DEBUG - [STROPHE] request id 6.0 state changed to 1 jquery.phono.js:7546
11:26:10.448 DEBUG - [WIRE] (o) <body rid="3193041099" xmlns="http://jabber.org/protocol/httpbind" sid="efbfaf51-7f20-464b-8301-030756b0ad3c"><iq type="set" xmlns="jabber:client"><apikey xmlns="http://phono.com/apikey">C17D167F-09C6-4E4C-A3DD-2025D48BA243</apikey></iq></body> jquery.phono.js:7546
11:26:10.605 DEBUG - [STROPHE] request id 6.1 state changed to 2 jquery.phono.js:7546
11:26:10.605 DEBUG - [STROPHE] request id 6.1 state changed to 3 jquery.phono.js:7546
11:26:10.606 DEBUG - [STROPHE] request id 6.1 state changed to 4 jquery.phono.js:7546
11:26:10.606 DEBUG - [STROPHE] removing request jquery.phono.js:7546
11:26:10.607 DEBUG - [STROPHE] _throttledRequestHandler called with 0 requests jquery.phono.js:7546
11:26:10.607 DEBUG - [STROPHE] request id 6 should now be removed jquery.phono.js:7546
11:26:10.607 DEBUG - [STROPHE] request id 6.1 got 200 jquery.phono.js:7546
11:26:10.608 DEBUG - [WIRE] (i) <body xmlns="http://jabber.org/protocol/httpbind"><iq from="gw-v4.d.phono.com" id="b6185fd7-915c-4011-8630-8c5af17d33cc" to="8c75ca72-fd01-4b4f-8bd0-39e179dd2265@gw-v4.d.phono.com/5c97b77jxqux" type="result"><apikey xmlns="http://phono.com/apikey"/></iq></body> jquery.phono.js:7546
11:26:10.651 DEBUG - [STROPHE] no requests during idle cycle, sending blank request jquery.phono.js:7546
11:26:10.651 DEBUG - [STROPHE] request id 7.0 posting jquery.phono.js:7546
11:26:10.651 DEBUG - [STROPHE] request id 7.0 state changed to 1 jquery.phono.js:7546
11:26:10.653 DEBUG - [WIRE] (o) <body rid="3193041100" xmlns="http://jabber.org/protocol/httpbind" sid="efbfaf51-7f20-464b-8301-030756b0ad3c"/> jquery.phono.js:7546
11:26:11.088 INFO  - FlashAudio Ready jquery.phono.js:7546
11:26:11.131 INFO  - [EVENT] ready[undefined] jquery.phono.js:7546
11:26:11.131 DEBUG - [INVOKE] Phono.onready([object Object],undefined) jquery.phono.js:7546
[Phono1] Phono loaded kitchen-sink.js:107
11:26:11.137 DEBUG - [INVOKE] FlashAudio.permission() jquery.phono.js:7546
[Phono1] [Call1] Calling sip:undsoft.1@linkitus.com kitchen-sink.js:217
11:26:12.826 DEBUG - [INVOKE] Phone.dial(sip:undsoft.1@linkitus.com,[object Object]) jquery.phono.js:7546
11:26:12.827 DEBUG - [INVOKE] Phone.headset() jquery.phono.js:7546
11:26:12.828 DEBUG - [INVOKE] FlashAudio.transport([object Object]) jquery.phono.js:7546
11:26:12.830 DEBUG - [INVOKE] Phone.ringTone() jquery.phono.js:7546
11:26:12.830 DEBUG - [INVOKE] FlashAudio.play([object Object]) jquery.phono.js:7546
11:26:12.839 DEBUG - [INVOKE] Phone.ringbackTone() jquery.phono.js:7546
11:26:12.840 DEBUG - [INVOKE] FlashAudio.play([object Object]) jquery.phono.js:7546
11:26:12.846 DEBUG - [INVOKE] Phone.beforeDial([object Object]) jquery.phono.js:7546
11:26:12.847 DEBUG - [INVOKE] Call.start() jquery.phono.js:7546
11:26:12.847 DEBUG - [INVOKE] FlashAudio.codecs() jquery.phono.js:7546
11:26:12.853 DEBUG - [INVOKE] Phone.wideband() jquery.phono.js:7546
11:26:12.854 DEBUG - [STROPHE] _throttledRequestHandler called with 1 requests jquery.phono.js:7546
11:26:12.855 DEBUG - [STROPHE] _processRequest: first request has readyState of 1 jquery.phono.js:7546
11:26:12.956 DEBUG - [STROPHE] request id 8.0 posting jquery.phono.js:7546
11:26:12.956 DEBUG - [STROPHE] request id 8.0 state changed to 1 jquery.phono.js:7546
11:26:12.957 DEBUG - [WIRE] (o) <body rid="3193041101" xmlns="http://jabber.org/protocol/httpbind" sid="efbfaf51-7f20-464b-8301-030756b0ad3c"><iq type="set" to="undsoft.1\40linkitus.com@sip" xmlns="jabber:client" id="3686:sendIQ"><jingle xmlns="urn:xmpp:jingle:1" action="session-initiate" initiator="8c75ca72-fd01-4b4f-8bd0-39e179dd2265@phono4-ext.voxeolabs.net/5c97b77jxqux" sid="bdcde27f60ec72a460f5ad3aed7c796e"><content creator="initiator"><description xmlns="http://voxeo.com/gordon/apps/rtmp"><payload-type id="97" name="SPEEX" clockrate="8000"/><payload-type id="97" name="SPEEX" clockrate="16000"/></description><transport xmlns="http://voxeo.com/gordon/transports/rtmp"/></content></jingle></iq></body> jquery.phono.js:7546
11:26:13.112 DEBUG - [STROPHE] request id 7.1 state changed to 2 jquery.phono.js:7546
11:26:13.112 DEBUG - [STROPHE] request id 7.1 state changed to 3 jquery.phono.js:7546
11:26:13.120 DEBUG - [STROPHE] request id 7.1 state changed to 4 jquery.phono.js:7546
11:26:13.120 DEBUG - [STROPHE] removing request jquery.phono.js:7546
11:26:13.121 DEBUG - [STROPHE] _throttledRequestHandler called with 1 requests jquery.phono.js:7546
11:26:13.121 DEBUG - [STROPHE] _processRequest: first request has readyState of 1 jquery.phono.js:7546
11:26:13.121 DEBUG - [STROPHE] request id 7 should now be removed jquery.phono.js:7546
11:26:13.122 DEBUG - [STROPHE] request id 7.1 got 200 jquery.phono.js:7546
11:26:13.122 DEBUG - [WIRE] (i) <body xmlns="http://jabber.org/protocol/httpbind"/> jquery.phono.js:7546
11:26:13.123 DEBUG - [STROPHE] request id 8.1 state changed to 2 jquery.phono.js:7546
11:26:13.123 DEBUG - [STROPHE] request id 8.1 state changed to 3 jquery.phono.js:7546
11:26:13.124 DEBUG - [STROPHE] request id 8.1 state changed to 4 jquery.phono.js:7546
11:26:13.124 DEBUG - [STROPHE] removing request jquery.phono.js:7546
11:26:13.125 DEBUG - [STROPHE] _throttledRequestHandler called with 0 requests jquery.phono.js:7546
11:26:13.125 DEBUG - [STROPHE] request id 8 should now be removed jquery.phono.js:7546
11:26:13.125 DEBUG - [STROPHE] request id 8.1 got 200 jquery.phono.js:7546
11:26:13.125 DEBUG - [WIRE] (i) <body xmlns="http://jabber.org/protocol/httpbind"><iq from="undsoft.1\40linkitus.com@sip" id="3686:sendIQ" to="8c75ca72-fd01-4b4f-8bd0-39e179dd2265@gw-v4.d.phono.com/5c97b77jxqux" type="result"/></body> jquery.phono.js:7546
11:26:13.159 DEBUG - [STROPHE] no requests during idle cycle, sending blank request jquery.phono.js:7546
11:26:13.160 DEBUG - [STROPHE] request id 9.0 posting jquery.phono.js:7546
11:26:13.160 DEBUG - [STROPHE] request id 9.0 state changed to 1 jquery.phono.js:7546
11:26:13.162 DEBUG - [WIRE] (o) <body rid="3193041102" xmlns="http://jabber.org/protocol/httpbind" sid="efbfaf51-7f20-464b-8301-030756b0ad3c"/> jquery.phono.js:7546
11:26:13.587 DEBUG - [STROPHE] request id 9.1 state changed to 2 jquery.phono.js:7546
11:26:13.588 DEBUG - [STROPHE] request id 9.1 state changed to 3 jquery.phono.js:7546
11:26:13.589 DEBUG - [STROPHE] request id 9.1 state changed to 4 jquery.phono.js:7546
11:26:13.590 DEBUG - [STROPHE] removing request jquery.phono.js:7546
11:26:13.590 DEBUG - [STROPHE] _throttledRequestHandler called with 0 requests jquery.phono.js:7546
11:26:13.590 DEBUG - [STROPHE] request id 9 should now be removed jquery.phono.js:7546
11:26:13.591 DEBUG - [STROPHE] request id 9.1 got 200 jquery.phono.js:7546
11:26:13.591 DEBUG - [WIRE] (i) <body xmlns="http://jabber.org/protocol/httpbind"><iq from="undsoft.1\40linkitus.com@sip" id="c9c6524b-31a4-49d0-8911-3847ea6ff44d" to="8c75ca72-fd01-4b4f-8bd0-39e179dd2265@gw-v4.d.phono.com/5c97b77jxqux" type="set"><jingle xmlns="urn:xmpp:jingle:1" action="session-info" initiator="8c75ca72-fd01-4b4f-8bd0-39e179dd2265@phono4-ext.voxeolabs.net/5c97b77jxqux" sid="bdcde27f60ec72a460f5ad3aed7c796e"><ringing xmlns="urn:xmpp:jingle:apps:rtp:1:info"/></jingle></iq></body> jquery.phono.js:7546
11:26:13.597 DEBUG - [STROPHE] _throttledRequestHandler called with 0 requests jquery.phono.js:7546
11:26:13.699 DEBUG - [STROPHE] request id 10.0 posting jquery.phono.js:7546
11:26:13.700 DEBUG - [STROPHE] request id 10.0 state changed to 1 jquery.phono.js:7546
11:26:13.700 DEBUG - [WIRE] (o) <body rid="3193041103" xmlns="http://jabber.org/protocol/httpbind" sid="efbfaf51-7f20-464b-8301-030756b0ad3c"><iq type="result" id="c9c6524b-31a4-49d0-8911-3847ea6ff44d" to="undsoft.1\40linkitus.com@sip" xmlns="jabber:client"/></body> jquery.phono.js:7546
11:26:15.108 DEBUG - [STROPHE] request id 10.1 state changed to 2 jquery.phono.js:7546
11:26:15.108 DEBUG - [STROPHE] request id 10.1 state changed to 3 jquery.phono.js:7546
11:26:15.108 DEBUG - [STROPHE] request id 10.1 state changed to 4 jquery.phono.js:7546
11:26:15.109 DEBUG - [STROPHE] removing request jquery.phono.js:7546
11:26:15.110 DEBUG - [STROPHE] _throttledRequestHandler called with 0 requests jquery.phono.js:7546
11:26:15.110 DEBUG - [STROPHE] request id 10 should now be removed jquery.phono.js:7546
11:26:15.110 DEBUG - [STROPHE] request id 10.1 got 200 jquery.phono.js:7546
11:26:15.111 DEBUG - [WIRE] (i) <body xmlns="http://jabber.org/protocol/httpbind"><iq from="undsoft.1\40linkitus.com@sip" id="52d65a55-e60c-49bb-ae0c-2c59fe492945" to="8c75ca72-fd01-4b4f-8bd0-39e179dd2265@gw-v4.d.phono.com/5c97b77jxqux" type="set"><jingle xmlns="urn:xmpp:jingle:1" action="session-accept" initiator="8c75ca72-fd01-4b4f-8bd0-39e179dd2265@phono4-ext.voxeolabs.net/5c97b77jxqux" sid="bdcde27f60ec72a460f5ad3aed7c796e"><content name="Audio"><description xmlns="http://voxeo.com/gordon/apps/rtmp" media="audio"><payload-type clockrate="16000" id="97" name="SPEEX"/><payload-type clockrate="8000" id="101" name="telephone-event"/></description><transport xmlns="http://voxeo.com/gordon/transports/rtmp"><candidate id="1" playName="ef799bc4-a24e-42ce-9095-91bf686a6456" publishName="cdaf6fe6-c9be-4a05-a92b-df59338a551e" rtmpUri="protocol://phono-fms1-ext.voxeolabs.net/phono"/></transport></content></jingle></iq></body> jquery.phono.js:7546
11:26:15.113 DEBUG - [INVOKE] Call.negotiate([object Element]) jquery.phono.js:7546
11:26:15.114 DEBUG - [INVOKE] FlashAudio.codecs() jquery.phono.js:7546
11:26:15.118 DEBUG - [INVOKE] Phone.wideband() jquery.phono.js:7546
11:26:15.126 DEBUG - [INVOKE] FlashAudio.codecs() jquery.phono.js:7546
11:26:15.136 DEBUG - [INVOKE] Phone.wideband() jquery.phono.js:7546
11:26:15.138 DEBUG - [INVOKE] FlashAudio.play([object Object],false) jquery.phono.js:7546
11:26:15.146 DEBUG - [INVOKE] FlashAudio.share([object Object],false,[object Object],undefined,undefined) jquery.phono.js:7546
11:26:15.163 DEBUG - [INVOKE] Call.bindAudio([object Object]) jquery.phono.js:7546
11:26:15.164 DEBUG - [INVOKE] Call.volume() jquery.phono.js:7546
11:26:15.165 DEBUG - [INVOKE] Call.volume(50) jquery.phono.js:7546
11:26:15.167 DEBUG - [INVOKE] Call.gain() jquery.phono.js:7546
11:26:15.168 DEBUG - [INVOKE] Call.gain(50) jquery.phono.js:7546
11:26:15.169 DEBUG - [INVOKE] Call.mute() jquery.phono.js:7546
11:26:15.169 DEBUG - [INVOKE] Call.mute(false) jquery.phono.js:7546
11:26:15.171 DEBUG - [INVOKE] Call.hold() jquery.phono.js:7546
11:26:15.172 DEBUG - [INVOKE] Call.hold(undefined) jquery.phono.js:7546
11:26:15.179 DEBUG - [INVOKE] Call.headset() jquery.phono.js:7546
11:26:15.180 DEBUG - [INVOKE] Call.headset(false) jquery.phono.js:7546
11:26:15.199 DEBUG - [INVOKE] Call.pushToTalkStateChanged() jquery.phono.js:7546
11:26:15.206 DEBUG - [INVOKE] Call.startAudio() jquery.phono.js:7546
11:26:15.218 INFO  - [EVENT] answer[undefined] jquery.phono.js:7546
11:26:15.219 DEBUG - [INVOKE] Call.onanswer([object Object],undefined) jquery.phono.js:7546
11:26:15.219 DEBUG - [INVOKE] Call.secure() jquery.phono.js:7546
[Phono1] [Call1] Call answered using SPEEX/16000 kitchen-sink.js:224
11:26:15.221 DEBUG - [STROPHE] _throttledRequestHandler called with 0 requests jquery.phono.js:7546
11:26:15.323 DEBUG - [STROPHE] request id 11.0 posting jquery.phono.js:7546
11:26:15.325 DEBUG - [STROPHE] request id 11.0 state changed to 1 jquery.phono.js:7546
11:26:15.325 DEBUG - [WIRE] (o) <body rid="3193041104" xmlns="http://jabber.org/protocol/httpbind" sid="efbfaf51-7f20-464b-8301-030756b0ad3c"><iq type="result" id="52d65a55-e60c-49bb-ae0c-2c59fe492945" to="undsoft.1\40linkitus.com@sip" xmlns="jabber:client"/></body> jquery.phono.js:7546
11:26:15.723 DEBUG - [INVOKE] Call.energy() jquery.phono.js:7546
11:26:15.724 DEBUG - [INVOKE] Call.energy() jquery.phono.js:7546
11:26:16.223 DEBUG - [INVOKE] Call.energy() jquery.phono.js:7546
11:26:16.223 DEBUG - [INVOKE] Call.energy() jquery.phono.js:7546
11:26:16.725 DEBUG - [INVOKE] Call.energy() jquery.phono.js:7546
11:26:16.725 DEBUG - [INVOKE] Call.energy() jquery.phono.js:7546
11:26:17.227 DEBUG - [INVOKE] Call.energy() jquery.phono.js:7546
11:26:17.227 DEBUG - [INVOKE] Call.energy() jquery.phono.js:7546
11:26:17.727 DEBUG - [INVOKE] Call.energy() jquery.phono.js:7546
11:26:17.727 DEBUG - [INVOKE] Call.energy() jquery.phono.js:7546
11:26:18.227 DEBUG - [INVOKE] Call.energy() jquery.phono.js:7546
11:26:18.228 DEBUG - [INVOKE] Call.energy() jquery.phono.js:7546
11:26:18.236 DEBUG - [STROPHE] request id 11.1 state changed to 2 jquery.phono.js:7546
11:26:18.236 DEBUG - [STROPHE] request id 11.1 state changed to 3 jquery.phono.js:7546
11:26:18.237 DEBUG - [STROPHE] request id 11.1 state changed to 4 jquery.phono.js:7546
11:26:18.237 DEBUG - [STROPHE] removing request jquery.phono.js:7546
11:26:18.237 DEBUG - [STROPHE] _throttledRequestHandler called with 0 requests jquery.phono.js:7546
11:26:18.238 DEBUG - [STROPHE] request id 11 should now be removed jquery.phono.js:7546
11:26:18.238 DEBUG - [STROPHE] request id 11.1 got 200 jquery.phono.js:7546
11:26:18.239 DEBUG - [WIRE] (i) <body xmlns="http://jabber.org/protocol/httpbind"><iq from="undsoft.1\40linkitus.com@sip" id="f01702c7-802f-44a9-bbb7-59dc6efb8b82" to="8c75ca72-fd01-4b4f-8bd0-39e179dd2265@gw-v4.d.phono.com/5c97b77jxqux" type="set"><jingle xmlns="urn:xmpp:jingle:1" action="session-terminate" initiator="8c75ca72-fd01-4b4f-8bd0-39e179dd2265@phono4-ext.voxeolabs.net/5c97b77jxqux" sid="bdcde27f60ec72a460f5ad3aed7c796e"><reason><success/></reason></jingle></iq></body> jquery.phono.js:7546
11:26:18.240 DEBUG - [INVOKE] Call.stopAudio() jquery.phono.js:7546
11:26:18.245 INFO  - [EVENT] hangup[undefined] jquery.phono.js:7546
11:26:18.245 DEBUG - [INVOKE] Call.onhangup([object Object],undefined) jquery.phono.js:7546
[Phono1] [Call1] Call hungup kitchen-sink.js:249
11:26:18.252 DEBUG - [STROPHE] _throttledRequestHandler called with 0 requests jquery.phono.js:7546
11:26:18.354 DEBUG - [STROPHE] request id 12.0 posting jquery.phono.js:7546
11:26:18.354 DEBUG - [STROPHE] request id 12.0 state changed to 1 jquery.phono.js:7546
11:26:18.355 DEBUG - [WIRE] (o) <body rid="3193041105" xmlns="http://jabber.org/protocol/httpbind" sid="efbfaf51-7f20-464b-8301-030756b0ad3c"><iq type="result" id="f01702c7-802f-44a9-bbb7-59dc6efb8b82" to="undsoft.1\40linkitus.com@sip" xmlns="jabber:client"/></body> 
nstratford commented 11 years ago

Interesting. What happens if you reference the hosted 0.4 swf file? http://s.phono.com/releases/0.4/plugins/audio/phono.audio.swf

undsoft commented 11 years ago

When I use hosted 0.4 file the kitchen sink demo doesn't load. It seems that onready event is not called. The last line I see in log is 'INFO - FlashAudio Ready '.

nstratford commented 11 years ago

Sorry - yes, they are incompatible now. Can you try this one: http://ci.voxeolabs.net/jenkins/job/PhonoSDK/100/artifact/artifacts/sdk/plugins/audio/phono.audio.swf and the full Kitchen Sink demo at: http://ci.voxeolabs.net/jenkins/job/PhonoSDK/100/artifact/artifacts/sdk/samples/kitchen-sink/www/index.html There are built from the same source on our continuous integration server.

undsoft commented 11 years ago

Weird. This is my experience from testing kitchensink. When I set 'auto' for audio I can hear the ringing sound, but I cannot hear the voice. The logs says:

Detecting Audio Plugin Detected Flash

However when I set 'flash (standard)' for audio everything works ok.

This applies to https also.

nstratford commented 11 years ago

Do you have any firewalls that may be blocking UDP?

Flash (standard) communicates over TCP, while Auto and Flash (panda) will attempt to use a lower latency UDP connection.

Does the hosted 0.4 demo over http work ok for you in Auto?

undsoft commented 11 years ago

Ok, it appears to be my problem. 0.4 demo does not work for me too somehow. I've tested it on another device and it works. Thank you for your support.

ramsesaguirre commented 9 years ago

I have the following problem

08:48:17.175 INFO - [EVENT] ring[undefined] jquery.phono.min.js:24 08:48:17.177 DEBUG - [INVOKE] Call.onring([object Object],undefined) jquery.phono.min.js:24 08:48:17.179 DEBUG - [PSTROPHE] _throttledRequestHandler called with 0 requests jquery.phono.min.js:24 08:48:17.289 DEBUG - [PSTROPHE] request id 12.0 posting jquery.phono.min.js:24 08:48:17.292 DEBUG - [PSTROPHE] request id 12.0 state changed to 1 jquery.phono.min.js:24 08:48:17.294 DEBUG - WIRE jquery.phono.min.js:24 08:48:17.476 DEBUG - [PSTROPHE] request id 12.1 state changed to 2 jquery.phono.min.js:24 08:48:17.478 DEBUG - [PSTROPHE] request id 12.1 state changed to 3 jquery.phono.min.js:24 08:48:17.480 DEBUG - [PSTROPHE] request id 12.1 state changed to 4 jquery.phono.min.js:24 08:48:17.481 DEBUG - [PSTROPHE] removing request jquery.phono.min.js:24 08:48:17.482 DEBUG - [PSTROPHE] _throttledRequestHandler called with 0 requests jquery.phono.min.js:24 08:48:17.483 DEBUG - [PSTROPHE] request id 12 should now be removed jquery.phono.min.js:24 08:48:17.485 DEBUG - [PSTROPHE] request id 12.1 got 200 jquery.phono.min.js:24 08:48:17.486 DEBUG - WIRE jquery.phono.min.js:24 08:48:17.488 DEBUG - [INVOKE] Call.negotiate([object Element]) jquery.phono.min.js:24 08:48:17.490 DEBUG - [INVOKE] FlashAudio.codecs() jquery.phono.min.js:24 08:48:17.500 DEBUG - [INVOKE] Phone.wideband() jquery.phono.min.js:24 08:48:17.503 DEBUG - [INVOKE] FlashAudio.codecs() jquery.phono.min.js:24 08:48:17.512 DEBUG - [INVOKE] Phone.wideband() jquery.phono.min.js:24 08:48:17.518 DEBUG - [INVOKE] FlashAudio.play([object Object],false) jquery.phono.min.js:24 08:48:17.524 DEBUG - [INVOKE] FlashAudio.share([object Object],false,[object Object],undefined,undefined) jquery.phono.min.js:24 08:48:17.531 DEBUG - [PSTROPHE] error: function () { [native code] } jquery.phono.min.js:24 Uncaught Error: Error #1009jquery.phono.min.js:24 FABridge.handleErrorjquery.phono.min.js:24 FABridge.callASMethodjquery.phono.min.js:24 a.(anonymous function)jquery.phono.min.js:24 FlashAudio.sharejquery.phono.min.js:24 obj.(anonymous function)jquery.phono.min.js:24 call.setupBindingjquery.phono.min.js:24 Phone.doJinglejquery.phono.min.js:24 Strophe.Handler.runjquery.phono.min.js:24 (anonymous function)jquery.phono.min.js:24 Strophe.forEachChildjquery.phono.min.js:24 Strophe.Connection._dataRecvjquery.phono.min.js:24 Strophe.Connection._onRequestStateChangejquery.phono.min.js:24 (anonymous function)jquery.phono.min.js:24 (anonymous function) jquery.phono.min.js:24 08:48:17.533 DEBUG - [PSTROPHE] no requests during idle cycle, sending blank request

08:48:17.531 DEBUG - [PSTROPHE] error: function () { [native code] } jquery.phono.min.js:24 Uncaught Error: Error #1009jquery.phono.min.js:24

how I can fix it?

johntdyer commented 9 years ago

Hello,

Currently support for all Tropo Inc product's is handled by our ticketing system or by email ( support@tropo.com ). Please make sure to include phono version, browser, operation system Info, and logs in your support request.

Regards, John