kirm / sip.js

Session Initiation Protocol for node.js
MIT License
427 stars 171 forks source link

Client Mode #121

Open kelchy opened 7 years ago

kelchy commented 7 years ago

I am looking for a SIPP alternative, thought I could use this as a better testing tool. is client mode supported? i am willing to help out if not

kirm commented 7 years ago

Not sure what do you mean by client mode. But sure, sip.js can send requests. For example examples/make_call.js makes a bogus call.

kelchy commented 7 years ago

thanks kirill, will check it out.

yes i want to create call scenarios for testing and benchmarking

On Jun 16, 2017 2:41 AM, "Kirill Mikhailov" notifications@github.com wrote:

Not sure what do you mean by client mode. But of sure, sip.js can send requests. For example examples/make_call.js makes a bogus call.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kirm/sip.js/issues/121#issuecomment-308831781, or mute the thread https://github.com/notifications/unsubscribe-auth/AGxwWGyR4A-XgqXQXoZ-5ygt3i3l4KNdks5sEXrMgaJpZM4N4ro7 .

kelchy commented 7 years ago

kirill,

i would like to suggest a way for developer to use random ports. use case: when you generate test traffic, there are times to want simultaneous requests to happen originating from separate ports.

sip.start(options, callback) - options should have port : 0 where sip stack will try to bind to a random port and if it used, try another one for a few times, then error out when not available.

if i'm not mistaken, socket.bind() already support this, only thing we need to do is make sure we don't call defaultPort() but rather, refer to the current bound port.

is my understanding correct?

kelchy commented 7 years ago

pull request for this

https://github.com/kirm/sip.js/pull/123

kelchy commented 6 years ago

hi kirill,

any reservations on this PR? i am trying to create multiple instances on a single host and this is blocking