<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">I don't think that would work, rather
try:<br>
<br>
<blockquote type="cite"><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>
else if ($var(ip) ==
"192.168.1.15")<br>
{<br>
xlog("L_INFO", "Bridge
media public/private for call to pstn - [% logreq -%]\n");<br>
$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>
}</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.<br>
<br>
Andrew<br>
<br>
On 03/06/2015 01:31 PM, Mykola Zaika wrote:<br>
</div>
<blockquote
cite="mid:CABT8L5zzC6pN7gFPMwt5X7BV2jhDVHfbSJircP3oFgxvaj=QAA@mail.gmail.com"
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 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
moz-do-not-send="true"
href="tel:%2B380%2032%202328022"
value="+380322328022"
target="_blank">+380 32 2328022</a></span></div>
<div><span style="color:rgb(0,0,255)"><a
moz-do-not-send="true"
href="mailto:mzaika@voiptime.net"
target="_blank">mzaika@voiptime.net</a></span></div>
<div><span style="color:rgb(0,0,255)"><a
moz-do-not-send="true"
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 moz-do-not-send="true"
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 class="h5"><br>
<br>
On 03/06/2015 01:19 PM, Mykola Zaika wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="h5">
<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 moz-do-not-send="true"
href="http://10.200.10.15"
target="_blank">10.200.10.15</a> ext/<a
moz-do-not-send="true"
href="http://10.130.10.15"
target="_blank">10.130.10.15</a> int/<a
moz-do-not-send="true"
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 moz-do-not-send="true"
href="tel:%2B380%2032%202328022"
value="+380322328022" target="_blank">+380 32 2328022</a></span></div>
<div><span
style="color:rgb(0,0,255)"><a
moz-do-not-send="true" href="mailto:mzaika@voiptime.net" target="_blank">mzaika@voiptime.net</a></span></div>
<div><span
style="color:rgb(0,0,255)"><a
moz-do-not-send="true" 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 moz-do-not-send="true" href="mailto:Spce-user@lists.sipwise.com" target="_blank">Spce-user@lists.sipwise.com</a>
<a moz-do-not-send="true" 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>
</body>
</html>