let configuration = {sockets: [socket],uri: 'sip:1001@127.0.0.1',};
如果这样注册freesswitch,那么fs注册信息中的Contact字段信息就是:sip:sdfsdfsdfsf@cvdwvdwd.invalid;transport=ws;fs_nat=yes;fs_path...
正确的写法是:
//URI是jssip内置的一个类
let uri = new URI('sip', 1001, 127.0.0.1);
let configuration = {sockets: [socket],uri: uri.toString(),contact_uri: "",};uri.setParam('transport','ws')configuration.contact_uri = uri.toString()