The following Presence examples will cause a database permissions problem if the OpenSIPS username/password has been changed from the default value
Adding the following line to the examples should resolve this problem:
modparam("presence_xml", "db_url", "mysql://opensips:firstname.lastname@example.org/opensips")
Most people change the default username and/or password for access to the OpenSIPS database.
The example shows where the db_url's need to be changed, except for presence_xml. Without the above line being changed, the default OpenSIPS username/password will be used and a failure during startup will happen.
Adding the above line will clearly show the users of the examples what db_url's need to be modified.