[Spce-user] problem with RTP

Mykola Zaika mzaika at voiptime.net
Fri Mar 6 08:00:37 EST 2015


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).
I wont to call via 192.168.1.15*(int)* - 10.130.10.15 (*ext)* and another
via 10.200.10.15*(int1)* - 10.130.10.15*(ext)*


-- 
З повагою,
Микола Заїка
Компанія VoIPTime,
Тел: +380 32 2328022
mzaika at voiptime.net
www.voiptime.net

2015-03-06 14:49 GMT+02:00 Andrew Pogrebennyk <apogrebennyk at sipwise.com>:

>  I don't think that would work, rather try:
>
>
>                         if($var(to_pstn) == 1 &&
> pv_isset("$xavp(callee_peer_prefs[0]=>outbound_socket)"))
>                         {
>                                 $var(ip) =
> $(xavp(callee_peer_prefs[0]=>outbound_socket){s.select,1,:});
>
>                                 if($var(ip) == "10.130.10.15")
>                                 {
>                                         xlog("L_INFO", "Bridge media
> public/private for call to pstn - [% logreq -%]\n");
>                                         $var(rtpp_flags) =
> $var(rtpp_flags) + "direction=int direction=ext ";
>                                 }
>                                 else if ($var(ip) == "192.168.1.15")
>                                 {
>                                         xlog("L_INFO", "Bridge media
> public/private for call to pstn - [% logreq -%]\n");
>                                         $var(rtpp_flags) =
> $var(rtpp_flags) + "direction=int1 direction=ext ";
>                                 } else {
>                                         xlog("L_INFO", "---
> outbound_socket set for call to pstn but ip '$var(ip)' does not match
> subnet - [% logreq -%]\n");
>                                 }
>                         }
>
>
> 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.
>
> Andrew
>
>
> On 03/06/2015 01:31 PM, Mykola Zaika wrote:
>
>  Ok, I understood
>
>
> It must be like:
>
> Eth0 - mark as "rtp_*int"*
>  Eth1 - mark as "rtp_*ext"*
>  Eth2 - mark as "rtp_*int1"*
>
> and
>
> if($var(to_pstn) == 1 &&
> pv_isset("$xavp(callee_peer_prefs[0]=>outbound_socket)"))
>                         {
>                                 $var(ip) =
> $(xavp(callee_peer_prefs[0]=>outbound_socket){s.select,1,:});
>
>                                 if($var(ip) == "10.130.10.15")
>                                 {
>                                         xlog("L_INFO", "Bridge media
> public/private for call to pstn - [% logreq -%]\n");
>                                         $var(rtpp_flags) =
> $var(rtpp_flags) + "*direction=int direction=ext* ";
>                                         $var(rtpp_flags) =
> $var(rtpp_flags) + "*direction=int1 direction=ext *";
>                                 } else {
>                                         xlog("L_INFO", "---
> outbound_socket set for call to pstn but ip '$var(ip)' does not match
> subnet - [% logreq -%]\n");
>                                 }
>                         }
>
>     --
>  З повагою,
> Микола Заїка
>  Компанія VoIPTime,
> Тел: +380 32 2328022
> mzaika at voiptime.net
> www.voiptime.net
>
> 2015-03-06 14:22 GMT+02:00 Andrew Pogrebennyk <apogrebennyk at sipwise.com>:
>
>>  Why do you put the same label on the two interfaces?
>> It's supposed to be unique.
>>
>>
>> On 03/06/2015 01:19 PM, Mykola Zaika wrote:
>>
>>   Hello
>>  How I can solve this issue?
>>
>>  SipWise has three network interfaces:
>> Eth0 - mark as "rtp_int"
>>  Eth1 - mark as "rtp_ext"
>>   Eth2 - mark as "rtp_int"
>>
>> ''ngcp-rtpengine-daemon"
>> INTERFACES="int/10.200.10.15 ext/10.130.10.15 int/192.168.1.15"
>>
>>  When I make a call via Eth0(int) - Eth1(ext)  - SIP and RTP work
>>  but   Eth2(int) - Eth1(ext)  - SIP works but RTP doesn`t work.
>>
>>  How I can create second bridge via external interface?
>>
>>  A bit from proxy/proxy.cfg.customtt.tt2
>>
>>   if($var(to_pstn) == 1 &&
>> pv_isset("$xavp(callee_peer_prefs[0]=>outbound_socket)"))
>>                         {
>>                                 $var(ip) =
>> $(xavp(callee_peer_prefs[0]=>outbound_socket){s.select,1,:});
>>
>>                                 if($var(ip) == "10.130.10.15")
>>                                 {
>>                                         xlog("L_INFO", "Bridge media
>> public/private for call to pstn - [% logreq -%]\n");
>>                                         $var(rtpp_flags) =
>> $var(rtpp_flags) + "direction=int direction=ext ";
>>                                 } else {
>>                                         xlog("L_INFO", "---
>> outbound_socket set for call to pstn but ip '$var(ip)' does not match
>> subnet - [% logreq -%]\n");
>>                                 }
>>                         }
>>
>>
>>     --
>>  З повагою,
>> Микола Заїка
>>  Компанія VoIPTime,
>> Тел: +380 32 2328022
>> mzaika at voiptime.net
>> www.voiptime.net
>>
>>
>>  _______________________________________________
>> Spce-user mailing listSpce-user at lists.sipwise.comhttps://lists.sipwise.com/listinfo/spce-user
>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20150306/d25e106e/attachment-0001.html>


More information about the Spce-user mailing list