fix loose routing with TEL Req-URI with preloaded Route, check Service-Route

Project:Call Session Control Functions
Component:Code
Category:bug
Priority:normal
Assigned:Unassigned
Status:active
Description

Currently, rr module's loose_route fails simply because it finds a tel Req-URI and doesn't even try to find "myself" in the first Route.
A previous fix was attempted (currently removed):
http://svn.berlios.de/viewcvs/openimscore/ser_ims/trunk/modules/rr/loose...
But this fix only solved the first of the following situations affected by this bug:
- AS sending initial INVITE to I-CSCF: AS includes Route with I-CSCF URI, loose_route should simply remove this Route and let I-CSCF route the request (ENUM).
- P-CSCF processing orig. initial INVITE: currently S-CSCF only sends S-CSCF URI in Service-Route, then client does not include P-CSCF in Route in initial INVITE, so loose_route has wrong behaviour even with the above fix because it doesn't find "myself" (P-CSCF URI) in the first Route. Service-Route should probably include P-CSCF.