> 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@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@sip1.domain.com.ua>;tag=rmbczI6t5gGLCfd3s7pVyH3L60RNJJ6Y
To: <sip:777@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