[Serusers] nathelper error

Olah Istvan olinka at maffia.hu
Mon Nov 24 13:30:13 CET 2003


Hi!

I have the following configuration:

----------------        ------------       -----------
| PSTN-Gateway |--------|1.      2.|-------| Clients |
----------------        ------------       -----------
                             |
   internet                  |                local
                            NAT

Ser 0.8.12 runs only on the 2. interface.
My configuration is:

# -------------------------  request routing logic -------------------

# main routing logic

route{ 

        if (!mf_process_maxfwd_header("10")) {
                log(1, "  Too many hops!");
                sl_send_reply("483","Too Many Hops");
                break;
        };
        
        if ( msg:len > max_len ) {
                log(1, "  Message too big!");
                sl_send_reply("513", "Message too big");
                break;
        };
                
        record_route();
        
        if (uri==myself) {
                if (method=="REGISTER") {
                        save("location");
                        break;
                };

                if (!lookup("location")) {
                        #if it is a call to PSTN then forwad it to the
                        #gateway
                        if (uri=~"sip:0\+?[0-9]+ at .*") {
                                rewritehostport("152.66.244.200:5060");
                                force_rtp_proxy();
                                t_on_reply("1");
                                if (!t_relay()) {
                                        sl_reply_error();
                                };
                                break;
                        };      
                        sl_send_reply("404", "Not Found");
                        break;
                };
                
        };
        if (!t_relay()) {
                sl_reply_error();
        };
}

onreply_route[1] {
        if (status=~"[12][0-9][0-9]")
                force_rtp_proxy();
}
#---------------------------------------------------------------------

When initiating a call from the client to the PSTN I get the following
error:

ERROR: extract_mediaip: no 'c=' in SDP

But when I watch the incoming INVITE packet with tcpdump, I can see
the connection information.

Thx oli





More information about the sr-users mailing list