Hi all.
I've got nathelper and rtpproxy working very well with my firewall. However I do still recieve these messages in my syslog. I am only catching 183 and 2xx errors in my onreply_route so I'm very confused how to prevent these errors.
I'm using ser-0.8.99-dev12. Can anyone give me some advise? Cheers, Paul
NOTE: The SIP message that caused these errors is at the bottom of this message.
0(27011) ERROR: extract_body: message body has length zero 0(27011) ERROR: force_rtp_proxy2: can't extract body from the message 0(27011) ERROR: on_reply processing failed
My onreply_route is here:
onreply_route[1] {
if (isflagset(2) && status =~ "(183)|2[0-9][0-9]") {
fix_nated_contact();
xlog("L_ERR", "%mb"); force_rtp_proxy();
} else if (nat_uac_test("1")) {
fix_nated_contact(); }; }
0(27011) SIP/2.0 200 OK Via: SIP/2.0/UDP 67.184.42.101;branch=z9hG4bKe7ac.628388e2.0 Via: SIP/2.0/UDP 192.168.0.83;rport=5060;received=68.184.42.171;branch=z9hG4bKb4bfc6084f306712 From: sip:9990010001@sip.mycompany.com;user=phone;tag=0d5452e4bee210e3 To: "Andrew" sip:9990010002@sip.mycompany.com;user=phone;tag=b73c75ac247b63db Call-ID: 0d5bc1fb337cd7eb@68.184.40.199 CSeq: 26976 BYE User-Agent: Grandstream BT100 1.0.5.11 Contact: sip:9990010002@68.184.40.199;user=phone Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE Content-Length: 0
__________________________________ Do you Yahoo!? The all-new My Yahoo! - Get yours free! http://my.yahoo.com
Hi All.
I've hacked my ser.cfg but can someone comment on why I would be recieving a "200 OK" with a Content-Length: 0?
The change I made to my onreply_route is below. The only thing I can see about these messages versus others is that the CSeq says "CSeq: {some digits} BYE" with "Content-Length: 0".
So for these messages I'm just not calling force_rtp_proxy().
I don't know if this is a symptom of my Grandstream BT100 only of if other ATAs or IP phones do this.
Regards, Paul
onreply_route[1] {
if (isflagset(2) && status =~ "(183)|2[0-9][0-9]") {
fix_nated_contact();
if (!(search("^Content-Length:\ 0")) { force_rtp_proxy(); };
} else if (nat_uac_test("1")) {
fix_nated_contact(); }; }
--- Java Rockx javarockx@yahoo.com wrote:
Hi all.
I've got nathelper and rtpproxy working very well with my firewall. However I do still recieve these messages in my syslog. I am only catching 183 and 2xx errors in my onreply_route so I'm very confused how to prevent these errors.
I'm using ser-0.8.99-dev12. Can anyone give me some advise? Cheers, Paul
NOTE: The SIP message that caused these errors is at the bottom of this message.
0(27011) ERROR: extract_body: message body has length zero 0(27011) ERROR: force_rtp_proxy2: can't extract body from the message 0(27011) ERROR: on_reply processing failed
My onreply_route is here:
onreply_route[1] {
if (isflagset(2) && status =~ "(183)|2[0-9][0-9]") { fix_nated_contact(); xlog("L_ERR", "%mb"); force_rtp_proxy(); } else if (nat_uac_test("1")) { fix_nated_contact(); };
}
0(27011) SIP/2.0 200 OK Via: SIP/2.0/UDP 67.184.42.101;branch=z9hG4bKe7ac.628388e2.0 Via: SIP/2.0/UDP 192.168.0.83;rport=5060;received=68.184.42.171;branch=z9hG4bKb4bfc6084f306712 From: sip:9990010001@sip.mycompany.com;user=phone;tag=0d5452e4bee210e3 To: "Andrew" sip:9990010002@sip.mycompany.com;user=phone;tag=b73c75ac247b63db Call-ID: 0d5bc1fb337cd7eb@68.184.40.199 CSeq: 26976 BYE User-Agent: Grandstream BT100 1.0.5.11 Contact: sip:9990010002@68.184.40.199;user=phone Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE Content-Length: 0
__________________________________ Do you Yahoo!? The all-new My Yahoo! - Get yours free! http://my.yahoo.com
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
__________________________________ Do you Yahoo!? The all-new My Yahoo! - Get yours free! http://my.yahoo.com
I've hacked my ser.cfg but can someone comment on why I would be recieving a "200 OK" with a Content-Length: 0?
The change I made to my onreply_route is below. The only thing I can see about these messages versus others is that the CSeq says "CSeq: {some digits} BYE" with "Content-Length: 0".
You answered your question!
Not every 200 OK mandated to have content. Only 200 OK received in reply to INVITE will have content. Also, 180 or 183 may have early media description.
You may be doing t_on_reply for all the methods. IMO, you will need to do that only for INVITE.
Thanks for the information.
I did try to process only INVITE messages, but when I do that I end up with one-way audio. So for now I'm going to keep on processing all 183 and 2xx messages.
Thanks again. Paul
--- Ranga rangarao.v@gmail.com wrote:
I've hacked my ser.cfg but can someone comment on why I would be recieving a "200 OK" with a Content-Length: 0?
The change I made to my onreply_route is below. The only thing I can see about these messages versus others is that the CSeq says "CSeq: {some digits} BYE" with "Content-Length: 0".
You answered your question!
Not every 200 OK mandated to have content. Only 200 OK received in reply to INVITE will have content. Also, 180 or 183 may have early media description.
You may be doing t_on_reply for all the methods. IMO, you will need to do that only for INVITE.
__________________________________ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com