[Kamailio-Users] Fwd: Kamailio as a proxy between Trunk and PBX.

Elena-Ramona Modroiu ramona at asipto.com
Tue Mar 16 12:38:19 CET 2010


Hi Espen,

On 03/16/2010 08:43 AM, Espen Berg wrote:
> We are planning a new voip system.  The trunk is provided to us on a
> private 10.x.x.x/29 range, and therefore not available direct to our 
> end customers.  We plan to have some kind of SIP/RTP proxy in front of 
> the trunk, and a PBX in front of this.  The trunk doesn't have any
> authentication, the end customers should connect and authenticate to 
> the PBX in front, and the RTP streams should terminate to the proxy.
>
> Is this possible to achieve by using Kamailio and RTPProxy?

yes, if you use kamailio 3.0, the default configuration includes the 
logic for nat traversal using rtpproxy, being a good starting point.

I assume that you don't deal with NAT case, therefore you just have to 
remove the nat detection conditions (nat_uac_test(...)) to engage 
rtpproxy everytime.

Do you need to do rtp bridging between trunk and pbx (ie, trunk and pbx 
are in different networks that are not routable in between)? If yes, 
check this example:

http://git.sip-router.org/cgi-bin/gitweb.cgi?p=sip-router;a=blob_plain;f=modules_k/nathelper/examples/alg.cfg;hb=master

Hope it helps,
Ramona


>
> Trunk
>    |
>    | 10.x.x.x/29
>    |
> SIP Proxy
>    |
> PBX Asterisk etc.
>    |
> Customer
>
> I have tried many different configurations and browsed every bundled
> example and web, but still I am not able to do what I want.  This have
> already given me some grey hears, so I guess it's time to check if this
> is even possible.  If not, is there any other approach that is more
> recommendable?  If someone has done this before I would appreciate some
> example configuration that I could work with.
>
> Regards
>
> Espen, Norway




More information about the Users mailing list