irontec / bbs

Black Box SIP Tester
GNU General Public License v3.0
30 stars 10 forks source link

Is there a way to set UA´s IP address and port? #3

Open y-luis-rojo opened 6 years ago

y-luis-rojo commented 6 years ago

From what I understood (apologize me if I am wrong), bbs starts UAs as OS processes with the same IP address and randomly assigned ports. Is there a way (having different interfaces) to assign specific IP address and ports to UAs?

What I want to achieve is to run all UAs in the same machine but with different IP addresses (different networks) and same port.

Thanks.

Kaian commented 6 years ago

Hi!

IIRC, this can not be done with current steps. Accounts created in register and call steps use default library transports (which I think bind to all addresses)

But it could be done by adding some extra params to those steps or create a new one that configures a custom transport and creates the session account from it by using Lib.create_account_for_transport. Transportconfig allows configuration of port and bind_addr.

Regards!