[SR-Users] Function to test DB connection in the cfg file?

Daniel-Constantin Mierla miconda at gmail.com
Mon Nov 11 08:39:50 CET 2013


Hello,

On 11/10/13 9:33 PM, Allen Zhang wrote:
>
> Hi all,
>
> This is a re-post. My email didn't seem to get on the list last time.
>
It got and was replied as well, see the archive:

- http://lists.sip-router.org/pipermail/sr-users/2013-November/date.html

Cheers,
Daniel

> Is there a function I can use to test database connection from the 
> routing script in the cfg file?
>
> My dispatcher uses OPTIONS probing. When the destination receives the 
> OPTIONS request, I'd like to detect the health status of the database 
> connection before sending a reply back.
>
> Note the OPTIONS request doesn't have a user part in the RURI. Hence, 
> is_subscriber() and alias_db_lookup() don't work.
>
> Any suggestion?
>
> Regards,
>
> Allen Zhang
>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Trainings - Berlin, Nov 25-28
   - more details about Kamailio trainings at http://www.asipto.com -

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20131111/9cf8fd4b/attachment.html>


More information about the sr-users mailing list