[Spce-user] problem with RTP

Andrew Pogrebennyk apogrebennyk at sipwise.com
Fri Mar 6 07:49:01 EST 2015


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 <tel:%2B380%2032%202328022>
> mzaika at voiptime.net <mailto:mzaika at voiptime.net>
> www.voiptime.net <http://www.voiptime.net>
>
> 2015-03-06 14:22 GMT+02:00 Andrew Pogrebennyk
> <apogrebennyk at sipwise.com <mailto: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 <http://10.200.10.15>
>>     ext/10.130.10.15 <http://10.130.10.15> int/192.168.1.15
>>     <http://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 <tel:%2B380%2032%202328022>
>>     mzaika at voiptime.net <mailto:mzaika at voiptime.net>
>>     www.voiptime.net <http://www.voiptime.net>
>>
>>
>>     _______________________________________________
>>     Spce-user mailing list
>>     Spce-user at lists.sipwise.com <mailto:Spce-user at lists.sipwise.com>
>>     https://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/4424dc09/attachment-0001.html>


More information about the Spce-user mailing list