Rajesh,
Again, copy the list. The config you sent is NOT the onsip.org config and as I have said: You call force_rtp_proxy several times. 
g-)
----- Original Message -----
From: rajesh volluru
To: Greger V. Teigre
Sent: Thursday, November 10, 2005 10:52 PM
Subject: Re: [Serusers] problem with rtpproxy

hi
 
I see that ser is appending to new IP address multiple times in the Invite message instead of rewriting the address. I had copied entire ser.cfg iam using. Please look at it and let me know if anything is wrong.
 
sdpData arg - v=0
o=Rajesh 0 0 IN IP4 192.168.1.223
s=-
c=IN IP4 68.225.20.25069.229.23.5769.229.23.5769.229.23.57
t=0 0
m=audio 351843518435236 RTP/AVP 0 3 4 5 6 8 15 18
m=video 35238 RTP/AVP 26 34 31
a=recvonly
a=direction:active
a=oldmediaip:192.168.1.223
a=nortpproxy:yes
a=nortpproxy:yes
java.lang.NumberFormatException: For input string: "351843518435236"
Thanks
Rajesh
 
# $Id: nat-rtpproxy.cfg 9 2005-08-19 15:30:55Z /CN=Greger V. Teigre/emailAddress=greger@onsip.org $
debug=9
fork=yes
log_stderror=yes
listen=69.229.23.57           # INSERT YOUR IP ADDRESS HERE
port=5060
children=4
dns=no
rev_dns=no
fifo="/tmp/ser_fifo"
fifo_db_url="mysql://ser:heslo@localhost/ser"
loadmodule "/usr/local/lib/ser/modules/mysql.so"
loadmodule "/usr/local/lib/ser/modules/sl.so"
loadmodule "/usr/local/lib/ser/modules/tm.so"
loadmodule "/usr/local/lib/ser/modules/rr.so"
loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
loadmodule "/usr/local/lib/ser/modules/usrloc.so"
loadmodule "/usr/local/lib/ser/modules/registrar.so"
loadmodule "/usr/local/lib/ser/modules/auth.so"
loadmodule "/usr/local/lib/ser/modules/auth_db.so"
loadmodule "/usr/local/lib/ser/modules/uri.so"
loadmodule "/usr/local/lib/ser/modules/uri_db.so"
loadmodule "/usr/local/lib/ser/modules/domain.so"
loadmodule "/usr/local/lib/ser/modules/mediaproxy.so"
loadmodule "/usr/local/lib/ser/modules/nathelper.so"
loadmodule "/usr/local/lib/ser/modules/textops.so"
modparam("auth_db|uri_db|usrloc", "db_url", "mysql://ser:heslo@localhost/ser")
modparam("auth_db", "calculate_ha1", 1)
modparam("auth_db", "password_column", "password")
modparam("nathelper", "natping_interval", 60)
modparam("nathelper", "ping_nated_only", 1)
modparam("nathelper", "rtpproxy_sock", "unix:/var/run/rtpproxy.sock")
modparam("mediaproxy","mediaproxy_socket", "/var/run/mediaproxy.sock")
modparam("mediaproxy","sip_asymmetrics","/usr/local/etc/ser/sip-clients")
modparam("mediaproxy","rtp_asymmetrics","/usr/local/etc/ser/rtp-clients")
modparam("usrloc", "db_mode", 2)
modparam("registrar", "nat_flag", 6)
modparam("rr", "enable_full_lr", 1)
route {

        # -----------------------------------------------------------------
        # Sanity Check Section
        # -----------------------------------------------------------------
        if (!mf_process_maxfwd_header("10")) {
                sl_send_reply("483", "Too Many Hops");
                break;
        };
        if (msg:len > max_len) {
                sl_send_reply("513", "Message Overflow");
                break;
        };
        # -----------------------------------------------------------------
        # Record Route Section
        # -----------------------------------------------------------------
        if (method=="INVITE" && client_nat_test("3"))
        {
                        # INSERT YOUR IP ADDRESS HERE
                        record_route_preset("69.229.23.57:5060;nat=yes");
                        if(method == "INVITE")
                          {
                            fix_nated_sdp("3");
                            force_rtp_proxy();
                           t_on_reply("1");
                          };
        } else if (method!="REGISTER")
        {
                record_route();
        };
        if (method=="BYE" || method=="CANCEL")
        {
                unforce_rtp_proxy();
                end_media_session();
        }
        # -----------------------------------------------------------------
        # Loose Route Section
        # -----------------------------------------------------------------
        if (loose_route()) {
                if (has_totag() && (method=="INVITE" || method=="ACK")) {
                        if (nat_uac_test("19")) {
                                setflag(6);
                                force_rport();
                                fix_nated_contact();
                               #fix_nated_sdp("3");
                        };
                        force_rtp_proxy("l");
                        if (client_nat_test("3") || search("^Route:.*;nat=yes")) {
                                                        setflag(6);
                                                        use_media_proxy();
                        };
                };
                route(1);
                break;
        };
        # -----------------------------------------------------------------
        # Call Type Processing Section
        # -----------------------------------------------------------------
        if (uri!=myself) {
                route(4);
                route(1);
                break;
        };
        if (method=="CANCEL") {
                route(1);
                break;
        } else if (method=="INVITE") {
                route(3);
                break;
        } else  if (method=="REGISTER") {
                route(2);
                break;
        };
        lookup("aliases");
        if (uri!=myself) {
                route(4);
                route(1);
                break;
        };
        if (!lookup("location")) {
                sl_send_reply("404", "User Not Found");
                break;
        };
        route(1);
}
route[1] {

        # -----------------------------------------------------------------
        # Default Message Handler
        # -----------------------------------------------------------------
        t_on_reply("1");
        if (!t_relay()) {
                if (method=="INVITE" && isflagset(6)) {
                        unforce_rtp_proxy();
                };
                if (method=="INVITE" || method=="ACK") {
                                        end_media_session();
                };
                sl_reply_error();
        };
}
route[2] {
        # -----------------------------------------------------------------
        # REGISTER Message Handler
        # ----------------------------------------------------------------
        if (!search("^Contact:[ ]*\*") && nat_uac_test("19")) {
                setflag(6);
                fix_nated_register();
                force_rport();
        };
        sl_send_reply("100", "Trying");
        if (!www_authorize("adsl-69-229-23-57.dsl.irvnca.pacbell.net","subscriber")) {
                www_challenge("adsl-69-229-23-57.dsl.irvnca.pacbell.net","0");
                break;
        };
        if (!check_to()) {
                sl_send_reply("401", "Unauthorized");
                break;
        };
        consume_credentials();
        if (!save("location")) {
                sl_reply_error();
        };
        sl_send_reply("100", "Trying");

                if (!search("^Contact:[ ]*\*") && client_nat_test("7")) {
                        setflag(6);
                        fix_nated_register();
                        force_rport();
                };
                if (!www_authorize("adsl-69-229-23-57.dsl.irvnca.pacbell.net","subscriber")) {
                        www_challenge("adsl-69-229-23-57.dsl.irvnca.pacbell.net","0");
                        break;
                };
                if (!check_to()) {
                        sl_send_reply("401", "Unauthorized");
                        break;
                };
                consume_credentials();
                if (!save("location")) {
                        sl_reply_error();
        };
}
route[3] {
        # -----------------------------------------------------------------
        # INVITE Message Handler
        # -----------------------------------------------------------------
        if (!proxy_authorize("adsl-69-229-23-57.dsl.irvnca.pacbell.net","subscriber")) {
                proxy_challenge("adsl-69-229-23-57.dsl.irvnca.pacbell.net","0");
                break;
        } else if (!check_from()) {
                sl_send_reply("403", "Use From=ID");
                break;
        };
        consume_credentials();
        if (client_nat_test("3")) {
                        setflag(7);
                        force_rport();
                        fix_nated_contact();
                };
        if (nat_uac_test("19")) {
                setflag(6);
        }
 lookup("aliases");
        if (uri!=myself) {
                route(4);
                route(1);
                break;
        };
        if (!lookup("location")) {
                sl_send_reply("404", "User Not Found");
                break;
        };
        route(4);
        route(1);
}
route[4] {
        # -----------------------------------------------------------------
        # NAT Traversal Section
        # -----------------------------------------------------------------
        if (isflagset(6)) {
                force_rport();
                fix_nated_contact();
                force_rtp_proxy();
        };
        if (isflagset(6) || isflagset(7)) {
                        use_media_proxy();
        };
}
onreply_route[1] {
        if (isflagset(6) && status=~"(180)|(183)|2[0-9][0-9]") {
                if (!search("^Content-Length:[ ]*0")) {
                        force_rtp_proxy();
                        use_media_proxy();
                };
        };
        if (nat_uac_test("1")) {
                fix_nated_contact();
        };
}


"Greger V. Teigre" <greger@teigre.com> wrote:
Please copy the list.
 
If you use a vanilla onsip.org config, it's pretty thoroughly tested by now, so I would be tempted to say that there is something wrong with the client or the setup of the client.
g-)
----- Original Message -----
From: rajesh volluru
To: Greger V. Teigre
Sent: Wednesday, November 09, 2005 2:04 AM
Subject: Re: [Serusers] problem with rtpproxy

hi
 
Thanks for your reply. I did configure ser.cfg as said at onsip.org for rtp proxy. But, i still get below exception when I am behind NAT.
 
net.java.sip.communicator.media.MediaException: Incorrect SDP data!
 at net.java.sip.communicator.media.MediaManager.openMediaStreams(MediaManager.java:307)
 at net.java.sip.communicator.SipCommunicator.callStateChanged(SipCommunicator.java:758)
 at net.java.sip.communicator.sip.Call.fireCallStatusChangedEvent(Call.java:250)
 at net.java.sip.communicator.sip.Call.setState(Call.java:156)
 at net.java.sip.communicator.sip.CallProcessing.processAck(CallProcessing.java:566)
 at net.java.sip.communicator.sip.SipManager.processRequest(SipManager.java:1532)
 at gov.nist.javax.sip.EventScanner.deliverEvent(EventScanner.java:204)
 at gov.nist.javax.sip.EventScanner.run(EventScanner.java:352)
 at java.lang.Thread.run(Unknown Source)
Caused by: javax.sdp.SdpParseException: Could not parse message
 at javax.sdp.SdpFactory.createSessionDescription(SdpFactory.java:114)
 at net.java.sip.communicator.media.MediaManager.openMediaStreams(MediaManager.java:302)
 ... 8 more
Please let me know the possible reason for this error. When I start ser, it shows the message ' RTP proxy found. support for RTP enabled'.
 
Thanks
Rajesh


"Greger V. Teigre" <greger@teigre.com> wrote:
Are you using the configs from onsip.org? If not, you may find some help there ;-)
g-)
----- Original Message -----
Sent: Tuesday, November 08, 2005 12:37 AM
Subject: [Serusers] problem with rtpproxy

hi
 
I had installed ser with media and rtp proxy. Below is the output that i get when I start ser. However, iam not able receive any audio transmission when I connect through sip communicator when iam behind NAT. I am able to register with the server.
 
0(0) fixing /usr/local/lib/ser/modules/maxfwd.so mf_process_maxfwd_header
 0(0) fixing /usr/local/lib/ser/modules/sl.so sl_send_reply
 0(0) fixing /usr/local/lib/ser/modules/sl.so sl_send_reply
 0(0) fixing /usr/local/lib/ser/modules/mediaproxy.so client_nat_test
 0(0) fixing /usr/local/lib/ser/modules/textops.so search
 0(0) module - fixing ^Record-Route:
 0(0) fixing /usr/local/lib/ser/modules/mediaproxy.so fix_contact
 0(0) fixing /usr/local/lib/ser/modules/nathelper.so fix_nated_sdp
 0(0) fixing /usr/local/lib/ser/modules/rr.so record_route
 0(0) fixing /usr/local/lib/ser/modules/rr.so loose_route
 0(0) fixing /usr/local/lib/ser/modules/textops.so append_hf
 0(0) fixing /usr/local/lib/ser/modules/textops.so append_hf
 0(0) fixing /usr/local/lib/ser/modules/registrar.so lookup
 0(0) get_connection(): Connection not found in the pool
 0(0) preload_udomain():! ! Table is empty
 0(0) release_connection(): Removing connection from the pool
 0(0) fixing /usr/local/lib/ser/modules/auth_db.so www_authorize
 0(0) get_connection(): Connection not found in the pool
 0(0) release_connection(): Removing connection from the pool
 0(0) fixing /usr/local/lib/ser/modules/auth.so www_challenge
 0(0) fixing /usr/local/lib/ser/modules/registrar.so save
 0(0) get_connection(): Connection not found in the pool
 0(0) release_connection(): Removing connection from the pool
 0(0) fixing /usr/local/lib/ser/modules/textops.so append_hf
 0(0) fixing /usr/local/lib/ser/modules/registrar.so lookup
 0(0) fixing /usr/local/lib/ser/modules/sl.so sl_send_reply
 0(0) fixing /usr/local/lib/ser/modules/textops.so append_hf
 0(0) fixing /usr/local/lib/ser/modules/textops.so search
 0(0) module - fixing ^Route:
 0(0) fixing /usr/local/lib/ser/modules/sl.so sl_send_reply
 0(0) fixing /usr/local/lib/ser/modules/mediaproxy.so use_media_proxy
 0(0) fixing /usr/local/lib/ser/modules/tm.so t_on_reply
 0(0) fixing /usr/local/lib/ser/modules/tm.so t_relay
 0(0) fixing /usr/local/lib/ser/modules/sl.so sl_reply_error
 0(0) fixing /usr/local/lib/ser/modules/mediaproxy.so fix_contact
 0(0) fixing /usr/local/lib/ser/modules/mediaproxy.so use_media_proxy
 0(0) fixing /usr/local/lib/ser/modules/mediaproxy.so client_nat_test
 0(0) fixing /usr/local/lib/ser/modules/mediaproxy.so fix_contact
 0(0) INFO: udp_init: SO_RCVBUF is initially 110592
 0(0) DEBUG: udp_init: trying SO_RCVBUF: 221184
 0(0) DEBUG: setting SO_RCVBUF; set=221184,verify=221184
 0(0) DEBUG: udp_init: trying SO_RCVBUF: 223232
 0(0) DEBUG: setting SO_RCVBUF; set=223232,verify=221184
 0(0) DEBUG: setting SO_RCVBUF has no effect
 0(0) INFO: udp_init: SO_RCVBUF i! ! s finally 221184
 0(0) DBG: open_uac_fifo: opening fifo...
 0(0) DEBUG: FIFO created @ /tmp/ser_fifo
 0(0) DEBUG: fifo /tmp/ser_fifo opened, mode=432
 0(0) init_unixsock_socket: No unix domain socket will be opened
 2(0) INFO: fifo process starting: 19946
 2(0) DEBUG: init_mod_child (-2): tm
 2(0) DEBUG: callid: '57b7f7f7-0@69.229.23.57'
 2(0) DEBUG: init_mod_child (-2): usrloc
 2(0) get_connection(): Connection not found in the pool
 0(19941) DEBUG: init_mod_child (1): tm
 0(19941) DEBUG: callid: '57b7f7f7-19941@69.229.23.57'
 0(19941) DEBUG: init_mod_child (1): usrloc
 0(19941) get_connection(): Connection not found in the pool
 1(0) DEBUG: init_mod_child (-1): tm
 1(19945) DEBUG: callid: '57b7f7f7-19945@69.229.23.57'
 1(19945) DEBUG: init_mod_child (-1): usrloc
 1(19945) get_connection(): Connection not found in the pool
 0(19941) DEBUG: init_mod_child (1): auth_db
 0(19941) get_connection(): Connection not found in the pool
 1(19945) DEBUG: init_mod_child (-1): auth_db
 1(19945) get_connection(): Connection not found in the pool
 0(19941) DEBUG: init_mod_child (1): domain
 0(19941) get_connection(): Connection found in the pool
 0(19941) DEBUG: init_mod_child (1): nathelper
 2(19946) DEBUG: init_mod_child (-2): auth_db
 2(19946) get_connection(): Connection not found in the pool
 1(19945) DEBUG: init_mod_child (-1): domain
 1(19945) DEBUG: init_mod_child (-1): nathelper
 0(19941) rtpp_test: RTP proxy found, support for it enabled
 1(19945) rtpp_test: RTP proxy found, support for it enabled
 2(19946) DEBUG: init_mod_child (-2): domain
 2(19946) DEBUG: init_mod_child (-2): nathelper
 2(19946) rtpp_test: RTP proxy found, support for it enabled
 2(19946) SER: open_uac_fifo: fifo server up at /tmp/ser_fifo...
 2(19946) DEBUG: register_fifo_cmd: new command (print) registered
 2(19946) DEBUG: register_fifo_cmd: new command (uptime) registered
 2(19946) DEBUG: register_fifo_cmd: new command (version) registered
 2(19946) DEBUG: register_fifo_cmd: new command (pwd) registered
 2(19946) DEBUG: register_fifo_cmd: new command (arg) registered
 2(19946) DEBUG: register_fifo_cmd: new command (which) registered
 2(19946) DEBUG: register_fifo_cmd: new command (ps) registered
 2(19946) DEBUG: register_fifo_cmd: new command (kill) registered
 2(19946) WARNING: no fifo_db_url given - fifo DB commands disabled!
Let me know if you find any configuration error in SER.
Please let me if you need any more information. I am trying to configure SER from long time. Please help me.
 
Thanks
Rajesh
 


Enjoy this Diwali with Y! India Click here


Enjoy this Diwali with Y! India Click here


_______________________________________________
Serusers mailing list
serusers@lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers


Enjoy this Diwali with Y! India Click here


Enjoy this Diwali with Y! India Click here