[SR-Users] (Kamailio/RTPproyx) Public -> LAN -> Asterisk (1, 2, .., n)

Alexandr Usov blessendor at gmail.com
Tue Aug 6 15:37:49 CEST 2013


> I wonder who this belongs to : c=IN IP4 192.168.144.101

This is Asterisk LAN IP (just nit changed by me before postin here to
2.2.2.101 for better reading WAN/LAN table).


> Also your Kamailio just sends the c=IN IP4 1.1.1.1 for the very first
incoming call that tells me that RTP proxy function is either running on
1.1.1.1 only or if its in bridging mode then you're not using the right
flag combination to use the 2.2.2.2 IP.

> Is your kamailio set to have "mhomed=yes"; just wanted to know.

I have (thinking yes=1):

mhomed=1

So, Kamailio have WAN interface (in my example 1.1.1.1 public IP), and LAN
- 2.2.2.2.

When I set "IE" on Kamailio in your Echo() test on Asterisk:

if (!(isflagset(FLT_NATS) || isbflagset(FLB_NATB)))
        return;

        rtpproxy_manage("IE");


I have RTP from LAN Kamailio IP - but no sounds:

Sent RTP packet to      2.2.2.2:47274 (type 00, seq 065027, ts 020800, len
000160)
Got  RTP packet from    2.2.2.2:47274 (type 00, seq 008881, ts 020960, len
000160)
Sent RTP packet to      2.2.2.2:47274 (type 00, seq 065028, ts 020960, len
000160)

<--- SIP read from UDP:2.2.2.2:5060 --->
BYE sip:777 at 2.2.2.2.101:5080 SIP/2.0
Via: SIP/2.0/UDP 2.2.2.2;branch=z9hG4bKa28c.d8a404e3.0
Via: SIP/2.0/UDP 192.168.10.240:52396
;received=HIDDEN.PUB.CLIENT.IP;rport=38103;branch=z9hG4bKPjOZvyKasjc7sJHv2XbjndSqDEuDUSV2s-
Max-Forwards: 16
From: "1-101" <sip:1-101 at sip1.domain.com.ua
>;tag=rmbczI6t5gGLCfd3s7pVyH3L60RNJJ6Y
To: <sip:777 at sip1.domain.com.ua>;tag=as3da0acc7
Call-ID: 3PDsgSC91eH8McDiOJh.m03I-dcKf4Oc
CSeq: 17351 BYE
User-Agent: Telephone 1.0.4
Content-Length: 0



In "EI" combination - there are no RTP traffic on Asterisk side.


---
Sammy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20130806/56d43eee/attachment.html>


More information about the sr-users mailing list