[Serusers] rtpproxy problem

Jan Janak jan at iptel.org
Mon Aug 30 12:49:06 CEST 2004


Make sure that you do not rewrite the IP address in SDP twice, that
means if you call force_rtp_proxy then do not call fix_nated_sdp and
vice versa. Both of them try to rewrite the same IP address which is
incorrect.

The errors below mean that you try to call nathelper functions on a
function with empty message body (probably ACK, BYE, or CANCEL).

 Jan.

On 28-08 17:42, Jiang zhou wrote:
> With ser-0.8.14_linux_i386.tar.gz verion and cfg file as bellow.
> The callee recieve error messages:
> 
> RECEIVE TIME: 16626717
> RECEIVE << 210.22.131.228:5060
> INVITE sip:7776 at 210.22.131.226:5060 SIP/2.0
> Record-Route: <sip:7776 at 210.22.131.228;ftag=3498;lr=on>
> Via: SIP/2.0/UDP 210.22.131.228;branch=z9hG4bK262e.c0776712.0
> Via: SIP/2.0/UDP 192.168.0.120:5060;rport=15060;received=210.22.131.226;branch=z9hG4bK16045
> From: <sip:8000 at 210.22.131.228>;tag=3498
> To: <sip:7776 at 210.22.131.228>
> Call-ID: 16927 at 192.168.0.120
> CSeq: 20 INVITE
> Contact: <sip:8000 at 210.22.131.226:15060>
> Max-Forwards: 4
> User-Agent: eXosip/0.1
> Subject: test subject
> Expires: 120
> Allow: INVITE, ACK, CANCEL, BYE, OPTIONS, REFER, SUBSCRIBE, NOTIFY, MESSAGE
> Content-Type: application/sdp
> Content-Length: 225
> Alex-hint: NAThelper
> Alex-hint: SDP rewritten
> P-hint: usrloc applied
> NAT: ...
> 
> v=0
> o=userX 20000001 20000001 IN IP4 192.168.0.120
> s=A call
> c=IN IP4 210.22.131.226210.22.131.228
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/*210.22.131.226 is my nat's ip and 210.22.131.228 is my ser ip RTP proxy is run at this server.*?
> t=4 3604
> m=audio 35058 RTP/AVP 8
> a=rtpmap:8 pcma/8000
> a=direction:active
> a=oldmediaip:192.168.0.120
> a=nortpproxy:yes
> 
> log message show the follow error:
> Aug 28 17:34:33 sipod-sh /usr/local/sbin/ser[10986]: ERROR: extract_body: message body has lenght zero 
> Aug 28 17:34:33 sipod-sh /usr/local/sbin/ser[10986]: ERROR: fix_nated_sdp: cannot extract body from msg! 
> Aug 28 17:34:33 sipod-sh /usr/local/sbin/ser[10986]: ERROR: extract_body: message body has lenght zero 
> Aug 28 17:34:33 sipod-sh /usr/local/sbin/ser[10986]: ERROR: force_rtp_proxy2: can't extract body from the message 
> Aug 28 17:34:33 sipod-sh /usr/local/sbin/ser[10987]: ERROR: extract_body: message body has lenght zero 
> Aug 28 17:34:33 sipod-sh /usr/local/sbin/ser[10987]: ERROR: fix_nated_sdp: cannot extract body from msg! 
> Aug 28 17:34:33 sipod-sh /usr/local/sbin/ser[10987]: ERROR: extract_body: message body has lenght zero 
> Aug 28 17:34:33 sipod-sh /usr/local/sbin/ser[10987]: ERROR: force_rtp_proxy2: can't extract body from the message 
> Aug 28 17:34:42 sipod-sh /usr/local/sbin/ser[10990]: ERROR: extract_body: message body has lenght zero 
> Aug 28 17:34:42 sipod-sh /usr/local/sbin/ser[10990]: ERROR: fix_nated_sdp: cannot extract body from msg! 
> Aug 28 17:34:42 sipod-sh /usr/local/sbin/ser[10990]: ERROR: extract_body: message body has lenght zero 
> Aug 28 17:34:42 sipod-sh /usr/local/sbin/ser[10990]: ERROR: force_rtp_proxy2: can't extract body from the message 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>   ----- Original Message ----- 
>   From: Jiang zhou 
>   To: serusers at lists.iptel.org 
>   Sent: Saturday, August 28, 2004 4:56 PM
>   Subject: [Serusers] rtpproxy problem
> 
> 
>   Does someone run ser-8.14 version with nathelper and rtpproxy successful?
>   Or does someone can run the latest cvs verion ser and rtpproxy successful?
> 
>   In cvs version I have gotten the follow errors:
>   ug 28 16:32:00 sipod-sh /usr/local/sbin/ser[10654]: WARNING: no fifo_db_url given - fifo DB commands disabled! 
>   Aug 28 16:32:05 sipod-sh /usr/local/sbin/ser[10659]: NOTICE:maxfwd:process_maxfwd_header: value 70 decreased to 16 
>   Aug 28 16:32:16 sipod-sh /usr/local/sbin/ser[10660]: NOTICE:maxfwd:process_maxfwd_header: value 70 decreased to 16 
>   Aug 28 16:32:19 sipod-sh /usr/local/sbin/ser[10662]: NOTICE:maxfwd:process_maxfwd_header: value 70 decreased to 16 
>   Aug 28 16:32:19 sipod-sh /usr/local/sbin/ser[10662]: ERROR: alter_mediaip: you can't rewrite the same SDP twice, check your config! 
>   Aug 28 16:32:19 sipod-sh /usr/local/sbin/ser[10662]: ERROR: fix_nated_sdp: can't alter media IP
>   Aug 28 16:32:19 sipod-sh /usr/local/sbin/ser[10662]: ERROR: alter_mediaip: you can't rewrite the same SDP twice, check your config! 
>   Aug 28 16:32:20 sipod-sh /usr/local/sbin/ser[10660]: WARNING: run_actions: null action list (rec_level=1) 
>   Aug 28 16:32:20 sipod-sh /usr/local/sbin/ser[10659]: WARNING: run_actions: null action list (rec_level=1) 
>   Aug 28 16:32:20 sipod-sh /usr/local/sbin/ser[10662]: WARNING: run_actions: null action list (rec_level=1) 
>   Aug 28 16:32:25 sipod-sh /usr/local/sbin/ser[10659]: WARNING: run_actions: null action list (rec_level=1) 
>   Aug 28 16:32:25 sipod-sh /usr/local/sbin/ser[10660]: NOTICE:maxfwd:process_maxfwd_header: value 70 decreased to 16 
>   Aug 28 16:32:26 sipod-sh /usr/local/sbin/ser[10661]: WARNING: run_actions: null action list (rec_level=1) 
>   Aug 28 16:34:39 sipod-sh /usr/local/sbin/ser[10660]: NOTICE:maxfwd:process_maxfwd_header: value 70 decreased to 16 
> 
>   In 8.14 version I have gotten follow errors:
> 
>   ug 28 16:53:41 sipod-sh /usr/local/sbin/ser[10779]: WARNING: run_actions: null action list (rec_level=1) 
>   Aug 28 16:53:41 sipod-sh /usr/local/sbin/ser[10776]: WARNING: run_actions: null action list (rec_level=1) 
>   Aug 28 16:53:41 sipod-sh /usr/local/sbin/ser[10777]: WARNING: run_actions: null action list (rec_level=1) 
>   Aug 28 16:53:44 sipod-sh /usr/local/sbin/ser[10776]: WARNING: run_actions: null action list (rec_level=1) 
>   Aug 28 16:53:46 sipod-sh /usr/local/sbin/ser[10777]: WARNING: run_actions: null action list (rec_level=1)
> 
>   Can some give me a successful configure file and verion infromation?
> 
> 
>   Thank you.
> 
> 
> 
> ------------------------------------------------------------------------------
> 
> 
>   _______________________________________________
>   Serusers mailing list
>   serusers at lists.iptel.org
>   http://lists.iptel.org/mailman/listinfo/serusers


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




More information about the sr-users mailing list