[OpenSIPS-Devel] [ opensips-Bugs-2342336 ] Failed to generate 404 reply when a final 404 was sent out

SourceForge.net noreply at sourceforge.net
Sun Sep 27 10:55:20 CEST 2009


Bugs item #2342336, was opened at 2008-11-25 10:52
Message generated for change (Settings changed) made by bogdan_iancu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2342336&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: trunk
>Status: Closed
>Resolution: Invalid
Priority: 5
Private: No
Submitted By: Nathan (rmnathan)
Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
Summary: Failed to generate 404 reply when a final 404 was sent out

Initial Comment:
Version : svn version for trunk

Error Message:
Nov 25 03:40:08 [13536] DBG:rls:rls_handle_subscribe: list not found - search for uri = sip:s3-1 at 192.168.166.150
Nov 25 03:40:08 [13536] DBG:core:parse_headers: flags=ffffffffffffffff
Nov 25 03:40:08 [13536] DBG:core:check_via_address: params 192.168.166.150, 192.168.166.150, 0
Nov 25 03:40:08 [13536] ERROR:tm:_reply_light: failed to generate 404 reply when a final 404 was sent out
Nov 25 03:40:08 [13536] DBG:tm:cleanup_uac_timers: RETR/FR timers reset
Nov 25 03:40:08 [13536] DBG:tm:put_on_wait: put on WAIT
Nov 25 03:40:08 [13536] ERROR:signaling:sig_send_reply_mod: failed to send reply with tm module
Nov 25 03:40:08 [13536] ERROR:rls:rls_handle_subscribe: failed to send 400 reply

----------------------------------------------------------------------

>Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2009-09-27 11:55

Message:
Hi Nathan,

Looking at the trace you provided, I say it is a script error - you simply
call twice in the script the handle_subscribe() function for the same
SUBSCRIBE request. The logs show this very clearly.

So, be sure you call the function only once!

If something else comes up,please open a new ticket.

Regards,
Bogdan

----------------------------------------------------------------------

Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2009-03-18 12:41

Message:
Hi Nathan,

trying to sort this out. Can you provide an output (use debug=6) for the
entire processing of the SUBSCRIBE? (starting with receiving the request)?

Thanks and regards,
Bogdan

----------------------------------------------------------------------

Comment By: Anca Vamanu (anca_vamanu)
Date: 2009-03-17 15:32

Message:
Hi,

What is the format of the resource-list.txt document? The RLS module
expects it to be a valid 'rls-services', having an node with tag 'list' and
attribute 'uri' = the uri of the list you want to subscribe to. 
In the first implementation that was still present in 1.4.2 expected the
document to be of type resource-list. I fixed this in the next versions. 

regards,
Anca


----------------------------------------------------------------------

Comment By: Nathan (rmnathan)
Date: 2008-11-25 14:24

Message:
Hi Bogdan,
At SIP level 404 was sent out by opensips.
can u explain me why am getting following error?
DBG:rls:get_resource_list: No rl document found in database
But i have two RLS list in database.
mysql> desc xcap;
+----------+------------------+------+-----+---------+----------------+
| Field    | Type             | Null | Key | Default | Extra          |
+----------+------------------+------+-----+---------+----------------+
| id       | int(10) unsigned | NO   | PRI | NULL    | auto_increment |
| username | varchar(64)      | NO   | MUL |         |                |
| domain   | varchar(64)      | NO   |     |         |                |
| doc      | blob             | NO   |     |         |                |
| doc_type | int(11)          | NO   |     |         |                |
| etag     | varchar(64)      | NO   |     |         |                |
| source   | int(11)          | NO   | MUL |         |                |
| doc_uri  | varchar(128)     | NO   |     |         |                |
| port     | int(11)          | NO   |     |         |                |
+----------+------------------+------+-----+---------+----------------+
9 rows in set (0.00 sec)

mysql> select id, username, domain, doc_type, etag, source, doc_uri, port
from xcap ;
+----+----------+-----------------+----------+----------------------------------+--------+-------------------+------+
| id | username | domain          | doc_type | etag                       
     | source | doc_uri           | port |
+----+----------+-----------------+----------+----------------------------------+--------+-------------------+------+
|  1 | s3-1     | 192.168.166.150 |        4 |
4709f53ac7be212e34bb7652d0a0df4c |      0 | resource-list.xml |    0 |
|  2 | s4-1     | 192.168.166.150 |        4 |
37c1be25e27970454b31d3202005db77 |      0 | resource-list.xml |    0 |
+----+----------+-----------------+----------+----------------------------------+--------+-------------------+------+
2 rows in set (0.00 sec)

The same setup was worked fine in 1.4.2 release build.

Here with full log is attached.


Thanks, 
Nathan

----------------------------------------------------------------------

Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2008-11-25 12:57

Message:
Hi Nathan,

A translation of the error is "trying to send a second 404", so could you
check on the SIP level if a 404 reply was indeed sent out by opensips?
Also, can you provide a full log (for the complete processing) ? - you can
send it to me privately if too large.

Thanks and regards,
Bogdan

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2342336&group_id=232389



More information about the Devel mailing list