<div dir="ltr"><div><div><div>Hi,<br></div>I tried many different ways. I can`t start RTP from two network interfaces (Eth0 - int, Eth2 - int2) via one outbound socket Eth1 - ext.<br><br></div>If I use four network interfaces, I can create two RTP bridges without any problems. But in this case I use two outbound sockets.<br><br></div><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><span><font color="#888888">-- <br><div><div dir="ltr"><div>З повагою,</div><div>Микола Заїка<br></div><div>Компанія VoIPTime,</div><div>Тел: <span style="color:rgb(0,0,255)"><a href="tel:%2B380%2032%202328022" value="+380322328022" target="_blank">+380 32 2328022</a></span></div><div><span style="color:rgb(0,0,255)"><a href="mailto:mzaika@voiptime.net" target="_blank">mzaika@voiptime.net</a></span></div><div><span style="color:rgb(0,0,255)"><a href="http://www.voiptime.net" target="_blank">www.voiptime.net</a></span></div></div></div></font></span></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">2015-03-06 15:11 GMT+02:00 Andrew Pogrebennyk <span dir="ltr"><<a href="mailto:apogrebennyk@sipwise.com" target="_blank">apogrebennyk@sipwise.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div><span> Hi, that doesn't matter
actually as long as you have some way to identify the peer in
config file.<br>
E.g. you can check by peer IP:<br>
if ($rd == "10.130.10.15"</span>) and <br>
<span>else if ($rd </span>== "192.168.1.15")<span><br>
</span>by peer ID in the database - $avp(s:lcr_flags) etc, or even
insert the new peer preference with the flags for rtpengine as
plain text string.<br>
As I mentioned we've added a peer preference rtp_interface in
mr3.8.1.<div><div class="h5"><br>
<br>
On 03/06/2015 02:00 PM, Mykola Zaika wrote:<br>
</div></div></div><div><div class="h5">
<blockquote type="cite">
<div dir="ltr">
<div>I also thought like You but in this case ($var(ip) ==
"192.168.1.15") is not outbound socket. All my peers have only
one outbound_socket (10.130.10.15).<br>
</div>
I wont to call via 192.168.1.15<span style="color:rgb(255,0,0)"><b>(int)</b></span>
- 10.130.10.15 (<b><span style="color:rgb(255,0,0)">ext)</span></b>
and another via 10.200.10.15<span style="color:rgb(255,0,0)"><b>(int1)</b></span>
- 10.130.10.15<span style="color:rgb(255,0,0)"><b>(ext)</b></span><br>
<br>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr"><span><font color="#888888">-- <br>
<div>
<div dir="ltr">
<div>З повагою,</div>
<div>Микола Заїка<br>
</div>
<div>Компанія VoIPTime,</div>
<div>Тел: <span style="color:rgb(0,0,255)"><a href="tel:%2B380%2032%202328022" value="+380322328022" target="_blank">+380 32 2328022</a></span></div>
<div><span style="color:rgb(0,0,255)"><a href="mailto:mzaika@voiptime.net" target="_blank">mzaika@voiptime.net</a></span></div>
<div><span style="color:rgb(0,0,255)"><a href="http://www.voiptime.net" target="_blank">www.voiptime.net</a></span></div>
</div>
</div>
</font></span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<div class="gmail_quote">2015-03-06 14:49 GMT+02:00 Andrew
Pogrebennyk <span dir="ltr"><<a href="mailto:apogrebennyk@sipwise.com" target="_blank">apogrebennyk@sipwise.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>I don't think that would work, rather try:<br>
<br>
<blockquote type="cite"><span><br>
if($var(to_pstn) == 1
&&
pv_isset("$xavp(callee_peer_prefs[0]=>outbound_socket)"))<br>
{<br>
$var(ip) =
$(xavp(callee_peer_prefs[0]=>outbound_socket){s.select,1,:});<br>
<br>
if($var(ip) ==
"10.130.10.15")<br>
{<br>
xlog("L_INFO", "Bridge media public/private for call
to pstn - [% logreq -%]\n");<br>
$var(rtpp_flags) = $var(rtpp_flags) + "direction=int
direction=ext ";<br>
} <br>
</span> else if
($var(ip) == "192.168.1.15")<span><br>
{<br>
xlog("L_INFO", "Bridge media public/private for call
to pstn - [% logreq -%]\n");<br>
</span><span>
$var(rtpp_flags) = $var(rtpp_flags) +
"direction=int1 direction=ext ";<br>
} else {<br>
xlog("L_INFO", "--- outbound_socket set for call to
pstn but ip '$var(ip)' does not match subnet - [%
logreq -%]\n");<br>
}<br>
}</span></blockquote>
<br>
or just wait for mr3.8.1 where this will be integrated
our of the box, where you can select the rtp_interface
from the list in peer preference.<span><font color="#888888"><br>
<br>
Andrew</font></span>
<div>
<div><br>
<br>
On 03/06/2015 01:31 PM, Mykola Zaika wrote:<br>
</div>
</div>
</div>
<div>
<div>
<blockquote type="cite">
<div dir="ltr">
<div>Ok, I understood<br>
<br>
<br>
It must be like:<br>
<br>
Eth0 - mark as "rtp_<b><span style="color:rgb(255,0,0)">int"</span></b><br>
</div>
<div>Eth1 - mark as "rtp_<span style="color:rgb(255,0,0)"><b>ext"</b></span><br>
</div>
Eth2 - mark as "rtp_<span style="color:rgb(255,0,0)"><b>int1"</b></span><br>
<br>
and<br>
<br>
if($var(to_pstn) == 1 &&
pv_isset("$xavp(callee_peer_prefs[0]=>outbound_socket)"))<br>
{<br>
$var(ip) =
$(xavp(callee_peer_prefs[0]=>outbound_socket){s.select,1,:});<br>
<br>
if($var(ip) ==
"10.130.10.15")<br>
{<br>
xlog("L_INFO", "Bridge media public/private for
call to pstn - [% logreq -%]\n");<br>
$var(rtpp_flags) = $var(rtpp_flags) + "<span style="color:rgb(255,0,0)"><b>direction=int
direction=ext</b></span> ";<br>
$var(rtpp_flags) = $var(rtpp_flags) + "<span style="color:rgb(255,0,0)"><b>direction=int1
direction=ext </b></span>";<br>
} else {<br>
xlog("L_INFO", "--- outbound_socket set for call
to pstn but ip '$var(ip)' does not match subnet -
[% logreq -%]\n");<br>
}<br>
}<br>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr"><span><font color="#888888">-- <br>
<div>
<div dir="ltr">
<div>З повагою,</div>
<div>Микола Заїка<br>
</div>
<div>Компанія VoIPTime,</div>
<div>Тел: <span style="color:rgb(0,0,255)"><a href="tel:%2B380%2032%202328022" value="+380322328022" target="_blank">+380
32 2328022</a></span></div>
<div><span style="color:rgb(0,0,255)"><a href="mailto:mzaika@voiptime.net" target="_blank">mzaika@voiptime.net</a></span></div>
<div><span style="color:rgb(0,0,255)"><a href="http://www.voiptime.net" target="_blank">www.voiptime.net</a></span></div>
</div>
</div>
</font></span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<div class="gmail_quote">2015-03-06 14:22
GMT+02:00 Andrew Pogrebennyk <span dir="ltr"><<a href="mailto:apogrebennyk@sipwise.com" target="_blank">apogrebennyk@sipwise.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Why do you put the same label on the
two interfaces?<br>
It's supposed to be unique.
<div>
<div><br>
<br>
On 03/06/2015 01:19 PM, Mykola Zaika
wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div>
<div dir="ltr">
<div>
<div>Hello<br>
</div>
How I can solve this issue?<br>
<br>
</div>
<div>SipWise has three network
interfaces:</div>
<div>Eth0 - mark as "rtp_int"<br>
</div>
<div>Eth1 - mark as "rtp_ext"<br>
</div>
<div>
<div>
<div>
<div>Eth2 - mark as "rtp_int"<br>
<br>
''ngcp-rtpengine-daemon"<br>
INTERFACES="int/<a href="http://10.200.10.15" target="_blank">10.200.10.15</a>
ext/<a href="http://10.130.10.15" target="_blank">10.130.10.15</a>
int/<a href="http://192.168.1.15" target="_blank">192.168.1.15</a>"<br>
</div>
<div><br>
</div>
<div>When I make a call via
Eth0(int) - Eth1(ext) - SIP
and RTP work<br>
</div>
<div>but Eth2(int) -
Eth1(ext) - SIP works but
RTP doesn`t work. <br>
<br>
</div>
<div>How I can create second
bridge via external
interface? <br>
</div>
<div><br>
</div>
<div>A bit from
proxy/proxy.cfg.customtt.tt2</div>
<div><br>
if($var(to_pstn) == 1
&&
pv_isset("$xavp(callee_peer_prefs[0]=>outbound_socket)"))<br>
{<br>
$var(ip) =
$(xavp(callee_peer_prefs[0]=>outbound_socket){s.select,1,:});<br>
<br>
if($var(ip) ==
"10.130.10.15")<br>
{<br>
xlog("L_INFO", "Bridge media
public/private for call to
pstn - [% logreq -%]\n");<br>
$var(rtpp_flags) =
$var(rtpp_flags) +
"direction=int direction=ext
";<br>
} else {<br>
xlog("L_INFO", "---
outbound_socket set for call
to pstn but ip '$var(ip)'
does not match subnet - [%
logreq -%]\n");<br>
}<br>
}<br>
<br>
<br clear="all">
<div>
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr"><span><font color="#888888">-- <br>
<div>
<div dir="ltr">
<div>З
повагою,</div>
<div>Микола
Заїка<br>
</div>
<div>Компанія
VoIPTime,</div>
<div>Тел: <span style="color:rgb(0,0,255)"><a href="tel:%2B380%2032%202328022" value="+380322328022" target="_blank">+380 32 2328022</a></span></div>
<div><span style="color:rgb(0,0,255)"><a href="mailto:mzaika@voiptime.net" target="_blank">mzaika@voiptime.net</a></span></div>
<div><span style="color:rgb(0,0,255)"><a href="http://www.voiptime.net" target="_blank">www.voiptime.net</a></span></div>
</div>
</div>
</font></span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div>
</div>
<pre>_______________________________________________
Spce-user mailing list
<a href="mailto:Spce-user@lists.sipwise.com" target="_blank">Spce-user@lists.sipwise.com</a>
<a href="https://lists.sipwise.com/listinfo/spce-user" target="_blank">https://lists.sipwise.com/listinfo/spce-user</a>
</pre>
</blockquote>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</div></div></div>
</blockquote></div><br></div>