You do not need to check usrloc t to implement what you want. Define a timer and when you forward the INVITE to the PBX, you will automatically jump to the failure_route[] if you do not receive a response from the PBX (PBX down!) and you can put your logic there.
From: "sandrinho1976@libero.it" sandrinho1976@libero.it To: "serusers" serusers@lists.iptel.org Subject: [Serusers] how to search in usrloc? Date: Fri, 3 Nov 2006 01:13:24 +0100
Hi everyone.
I'm facing this problem when configuring a Ser as a proxy and a registrar.
I have the Ser and a IP pbx: the pbx registers itself on the proxy as pbx@<pbx_ip> (Contact header). I had to manage INVITEs messages for incoming call that are going towards the Ser, sent by UACs in the network.
INVITEs are coming in the form <telephone_number>@<ser_ip> (Req-URI): Ser had to decide if <telephone_number> is managed by the IP pbx (it has this information) and eventually, do a rewrite uri to <telephone_number>@<pbx_ip> and then forward the message to pbx.
So far, it's all ok.
Unfortunately, i have to handle also this situation: the ip pbx is down. At the present, the INVITE is forwarded towards the pbx, the ip pbx does not respond and after 10 seconds the requesting UACs sends a CANCEL. This latency is not acceptable. I'm looking for a way to implement this: after the rewrite uri to <telephone_number>@<pbx_ip>, look if I have a contact in usrloc with <pbx_ip> (i.e. the pbx is still registered): if not, send immediately a response 4xx to UAC. The problem is that i'm not able to access the usrloc db from the routing script... any hint?
Thanks a lot...
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
_________________________________________________________________ Not only does Windows Live OneCare provide all-in-one PC care to keep your computer protected and well-maintained, but it also makes creating backup files a breeze. Try it today! http://ideas.live.com/programpage.aspx?versionid=b2456790-90e6-4d28-9219-5d7...