[Spce-user] problem with RTP

Mykola Zaika mzaika at voiptime.net
Fri Mar 6 17:00:54 EST 2015


Hi,
I tried many different ways. I can`t start RTP from two network interfaces
(Eth0 - int, Eth2 - int2)  via one outbound socket Eth1 - ext.

If I use four network interfaces, I can create two RTP bridges without any
problems. But in this case I use two outbound sockets.



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

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

>  Hi, that doesn't matter actually as long as you have some way to
> identify the peer in config file.
> E.g. you can check by peer IP:
> if ($rd == "10.130.10.15") and
> else if ($rd == "192.168.1.15")
> 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.
> As I mentioned we've added a peer preference rtp_interface in mr3.8.1.
>
>
> On 03/06/2015 02:00 PM, Mykola Zaika wrote:
>
>  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 <%2B380%2032%202328022>
>> 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/20150307/ed7a8c50/attachment-0001.html>


More information about the Spce-user mailing list