You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need a simple application that measures response times for the progress and final messages. It is working, but the calculated times are very different from the times reported on the wire.
For example, while my application reports 14ms progress and 29ms final, the actual messages on the wire arrive after less than 1ms and 16ms.
I have tried a similar test using SIPp and its results are very close to the actual messages on the wire.
What can I do to improve accuracy?
Here is a simplified version of my code
function ping(fromUser,toUser,toHost) {
var to = 'sip:' + toUser + '@' + toHost;
var from='sip:'+fromUser + '@' + 'sip-ping-test';
var startTime = new Date();
sip.send({
method: 'INVITE',
uri: to,
headers: {
to: {uri: to},
from: {uri: from, params: {tag: rstring()}},
'call-id': rstring(),
cseq: {method: 'INVITE', seq: Math.floor(Math.random() * 1e5)},
contact: [{uri: from}]
}
},
function(rs) {
if (rs.status < 200) {
console.info('progressResponseTime = ' + (new Date() - startTime));
} else {
console.info('finalResponseTime = ' + (new Date() - startTime));
}
});
}
The text was updated successfully, but these errors were encountered:
I need a simple application that measures response times for the progress and final messages. It is working, but the calculated times are very different from the times reported on the wire.
For example, while my application reports 14ms progress and 29ms final, the actual messages on the wire arrive after less than 1ms and 16ms.
I have tried a similar test using SIPp and its results are very close to the actual messages on the wire.
What can I do to improve accuracy?
Here is a simplified version of my code
The text was updated successfully, but these errors were encountered: