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

Alexandr Usov blessendor at gmail.com
Tue Aug 6 16:55:38 CEST 2013


My bad: "cwii" - sounds ok, but WAN Kamailio in RTP debug "from/to".

rtpproxy_manage("cwie"); - good for Echo() test,
when UA behind NAT, registered on Kamailip and calling Asterisk Echo() test
exten - voice perfect.
RTP - from/to only Kamailio LAN IP (2.2.2.2) - what is my goal.

But need to know, where I must put another flags for UA-t-UA calling, when
both behind teh NAT and registered with Kamailio?

Because I have WAN2LAN in RTP and both are IPs of Kamailio:

Sent RTP packet to      1.1.1.1:56324 (type 00, seq 003320, ts 006080, len
000160)
Got  RTP packet from    2.2.2.2:62718 (type 00, seq 032129, ts 006240, len
000160)
Sent RTP packet to      1.1.1.1:56324 (type 00, seq 003321, ts 006240, len
000160)
Got  RTP packet from    2.2.2.2:62718 (type 00, seq 032130, ts 006400, len
000160)
Sent RTP packet to      1.1.1.1:56324 (type 00, seq 003322, ts 006400, len
000160)




# RTPProxy control
route[NATMANAGE] {
#!ifdef WITH_NAT
    if (is_request()) {
        if(has_totag()) {
            if(check_route_param("nat=yes")) {
                setbflag(FLB_NATB);

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

        rtpproxy_manage("cwie");

    if (is_request()) {
        if (!has_totag()) {
            add_rr_param(";nat=yes");
        }
    }
    if (is_reply()) {
        if(isbflagset(FLB_NATB)) {
            fix_nated_contact();
        }
    }
#!endif
    return;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20130806/505ee056/attachment.html>


More information about the sr-users mailing list