Yate Community Forum
Yate server => Other Yate server issues => Topic started by: null on April 09, 2014, 01:23:40 AM
-
I've any Yates (Y0, Y1 etc.) and any eth-interfaces (E0, E1 etc.) on my server. How to configure each of them to each other (Y0-E0, Y1-E1 etc.) by means of the Yate itself? Thx!
-
Hi,
You should give us more info.
Some usage case scenario would help us to help you.
-
Hi! We need to do a cluster of the Yates for simultaneous calls to one SIP-provider from different IP-addresses each on its eth-interface.
-
We've several addresses A0, A1 etc. and any accounts of one provider.sip P0, P1 etc. Example: Y0(P0/A0/E0) -> provider.sip, Y1(P1/A1/E1) -> provider.sip etc. How to specify Yate route to provider.sip from its interface?
-
Setup listeners in ysipchan.conf:
[listener udp1]
type=udp
addr=10.0.0.1
[listener udp2]
type=udp
addr=10.0.0.2
Setup the local ip/port in in account parameters:
Here is an accfile.conf example:
[user1]
ip_transport_localip=10.0.0.1
ip_transport_localport=5060
[user2]
ip_transport_localip=10.0.0.2
ip_transport_localport=5060
user1 will register using the udp1 listener, user2 will register using the udp2 listener.
Set the line parameter when routing a call on specific account.
See http://docs.yate.ro/wiki/Ysipchan for more info.
-
Thx! That's right. It work easy with single interface. But there is uncertainty if its several. How to specify sip-account P0 must go through interface E0 and not through E1?
-
As written in previous post user1 will register using udp1 listener, user1 will register using the udp2 listener.
Where is the uncertainty?
-
Because the end listener in our model is provider.sip and we need to register user1 via listener_udp1 to it. How to specify user1 to route to provider.sip via interface of the 10.0.0.1 address? Public IP address of provider.sip isn't 10.0.0.1 and it is common to all Yates-accounts-interfaces.
-
Indicate the account for the outgoing call when routing.
Here is a regexroute example:
^1\(.*\)$=line/\0;line=user1
This will make the call using the user1 transport (listener)
-
We know how to route calls inside of Yate. Thx! But we need to specify outer routing between Yates and provider.sip via exactly selected interfaces of our server.
-
I'm afraid I don't understand.
I don't understand the separation between address and interface.
Is this a single machine with multiple interfaces?
Y0, Y1 ... are multiple yate instances in the same machine?
-
Yes of course. All Yates-addresses-interfaces in single server.
-
A yate sip listener binds on an IP address.
Which interface is used is up to the OS, you can't make this decision in yate.
What is the reason you are using multiple yate instances?
-
We know it. Thx! But how difficult to bind the Yate to interface? How much does cost? We use a bunch of Yates in LXC now. Each container with its own interface.
-
For new features:
Place a request on Features Request section
or
Contact Diana at diana@null.ro
-
I sent a request to her. Thx!
-
A week passed but I have not received a reply neither to PM nor by email from Diana. I am sorry but it is unpleasant for me.