E
E
Emil Revencu2016-05-23 23:36:38
FreeSWITCH
Emil Revencu, 2016-05-23 23:36:38

Why can't I hear the Subscriber when I call from the site?

Windows platform
Launched FREESWITCH server with access to landline numbers (via VOIP provider)
on the site there is a dial button I dial the number
in the browser, the subscriber answers. The subscriber hears me, I do not.
On the website called implemented via SIP..JS:

var session;
var userAgent = new SIP.UA({
  uri: '[email protected]',
  wsServers: ['ws://192.168.1.222:5066'],
  authorizationUser: '1199',
  password: 'callfromwebsite'
});
  var options={ media: {
    constraints: {audio: true, video: false},
      render: {
        remote: {audio: document.createElement('audio')},
        local: {audio: document.createElement('audio')}
      }
    }
}
session = userAgent.invite('055123456', options);

What is wrong in the code? Tried in CHROME, FIREFOX. Does not work
PS mod_v8 is not loaded on FREESWITCH - there is no such library (is this module needed for this?).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2016-05-24
@Revencu

use wss
at least chrome no longer starts transferring media data if ws is used
for the rest I don't know

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question