Presence xml

classic Classic list List threaded Threaded
16 messages Options
Reply | Threaded
Open this post in threaded view
|

Presence xml

troxlinux
Hi list , I tried to add presence to my sipserver

check my config

loadmodule "presence.so"
loadmodule "presence_xml.so"

## --presencia modulos
modparam("presence|presence_xml", "db_url", "mysql://ossips:xxxx@localhost/opensips")
modparam("presence_xml", "force_active", 1)
modparam("presence", "server_address", "sip:172.x.x.x:5060" )


error log:


ERROR:core:set_mod_param_regex: parameter <db_url> not found in module <presence_xml>
Aug 27 15:15:48 sipia opensips: CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 86, column 20-21: Parameter <db_url> not found in module <presence|presence_xml> - can't set
Aug 27 15:15:48 sipia opensips: ERROR:core:main: bad config file (1 errors)
Aug 27 15:17:45 sipia opensips: WARNING:core:warn: warning in config file /etc/opensips/opensips.cfg, line 16, column 13-16: tls support not compiled in
Aug 27 15:17:45 sipia opensips: ERROR:core:set_mod_param_regex: parameter <db_url> not found in module <presence_xml>
Aug 27 15:17:45 sipia opensips: CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 86, column 20-21: Parameter <db_url> not found in module <presence|presence_xml> - can't set
Aug 27 15:17:45 sipia opensips: ERROR:core:main: bad config file (1 errors)


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Presence xml

troxlinux
I have already the module

/lib64/opensips/modules/presence_xml.so



2013/8/27 troxlinux <[hidden email]>
Hi list , I tried to add presence to my sipserver

check my config

loadmodule "presence.so"
loadmodule "presence_xml.so"

## --presencia modulos
modparam("presence|presence_xml", "db_url", "mysql://ossips:xxxx@localhost/opensips")
modparam("presence_xml", "force_active", 1)
modparam("presence", "server_address", "sip:172.x.x.x:5060" )


error log:


ERROR:core:set_mod_param_regex: parameter <db_url> not found in module <presence_xml>
Aug 27 15:15:48 sipia opensips: CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 86, column 20-21: Parameter <db_url> not found in module <presence|presence_xml> - can't set
Aug 27 15:15:48 sipia opensips: ERROR:core:main: bad config file (1 errors)
Aug 27 15:17:45 sipia opensips: WARNING:core:warn: warning in config file /etc/opensips/opensips.cfg, line 16, column 13-16: tls support not compiled in
Aug 27 15:17:45 sipia opensips: ERROR:core:set_mod_param_regex: parameter <db_url> not found in module <presence_xml>
Aug 27 15:17:45 sipia opensips: CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 86, column 20-21: Parameter <db_url> not found in module <presence|presence_xml> - can't set
Aug 27 15:17:45 sipia opensips: ERROR:core:main: bad config file (1 errors)




--
rickygm

http://gnuforever.homelinux.com

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Presence xml

shaheryarkh
That's because presence_xml does not have db_url parameter anymore.


Also when asking for help, it would be better if you mention your opensips version / revision. This will save everybody's time.

Thank you.




On Wed, Aug 28, 2013 at 12:58 AM, troxlinux <[hidden email]> wrote:
I have already the module

/lib64/opensips/modules/presence_xml.so



2013/8/27 troxlinux <[hidden email]>
Hi list , I tried to add presence to my sipserver

check my config

loadmodule "presence.so"
loadmodule "presence_xml.so"

## --presencia modulos
modparam("presence|presence_xml", "db_url", "mysql://ossips:xxxx@localhost/opensips")
modparam("presence_xml", "force_active", 1)
modparam("presence", "server_address", "sip:172.x.x.x:5060" )


error log:


ERROR:core:set_mod_param_regex: parameter <db_url> not found in module <presence_xml>
Aug 27 15:15:48 sipia opensips: CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 86, column 20-21: Parameter <db_url> not found in module <presence|presence_xml> - can't set
Aug 27 15:15:48 sipia opensips: ERROR:core:main: bad config file (1 errors)
Aug 27 15:17:45 sipia opensips: WARNING:core:warn: warning in config file /etc/opensips/opensips.cfg, line 16, column 13-16: tls support not compiled in
Aug 27 15:17:45 sipia opensips: ERROR:core:set_mod_param_regex: parameter <db_url> not found in module <presence_xml>
Aug 27 15:17:45 sipia opensips: CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 86, column 20-21: Parameter <db_url> not found in module <presence|presence_xml> - can't set
Aug 27 15:17:45 sipia opensips: ERROR:core:main: bad config file (1 errors)




--
rickygm

http://gnuforever.homelinux.com

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




--
Mit freundlichen Grüßen
Muhammad Shahzad
-----------------------------------
CISCO Rich Media Communication Specialist (CRMCS)
CISCO Certified Network Associate (CCNA)
Cell: +49 176 99 83 10 85
MSN: [hidden email]
Email: [hidden email]

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Presence xml

troxlinux
Hi ,  you're right I forgot to post the version of Use , I made the necessary changes, but I'm still having problems, do not know if I'm doing it correctly

loadmodule "presence.so"
loadmodule "presence_xml.so"
modparam("presence|presence_xml", "db_url") #
modparam("presence_xml", "force_active", 1)
modparam("presence", "server_address", "sip:172.x.x.x:5060") #


CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 87, column 16-17: syntax error
Aug 28 08:39:17 sipia opensips: CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 87, column 16-17: Invalid arguments
Aug 28 08:39:17 sipia opensips: CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 88, column 1-9:


line 87 and 88 is

modparam("presence|presence_xml", "db_url") #
modparam("presence_xml", "force_active", 1)

I´m not using an xcap server

regards my friendss


2013/8/27 Muhammad Shahzad <[hidden email]>
That's because presence_xml does not have db_url parameter anymore.


Also when asking for help, it would be better if you mention your opensips version / revision. This will save everybody's time.

Thank you.




On Wed, Aug 28, 2013 at 12:58 AM, troxlinux <[hidden email]> wrote:
I have already the module

/lib64/opensips/modules/presence_xml.so



2013/8/27 troxlinux <[hidden email]>
Hi list , I tried to add presence to my sipserver

check my config

loadmodule "presence.so"
loadmodule "presence_xml.so"

## --presencia modulos
modparam("presence|presence_xml", "db_url", "mysql://ossips:xxxx@localhost/opensips")
modparam("presence_xml", "force_active", 1)
modparam("presence", "server_address", "sip:172.x.x.x:5060" )


error log:


ERROR:core:set_mod_param_regex: parameter <db_url> not found in module <presence_xml>
Aug 27 15:15:48 sipia opensips: CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 86, column 20-21: Parameter <db_url> not found in module <presence|presence_xml> - can't set
Aug 27 15:15:48 sipia opensips: ERROR:core:main: bad config file (1 errors)
Aug 27 15:17:45 sipia opensips: WARNING:core:warn: warning in config file /etc/opensips/opensips.cfg, line 16, column 13-16: tls support not compiled in
Aug 27 15:17:45 sipia opensips: ERROR:core:set_mod_param_regex: parameter <db_url> not found in module <presence_xml>
Aug 27 15:17:45 sipia opensips: CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 86, column 20-21: Parameter <db_url> not found in module <presence|presence_xml> - can't set
Aug 27 15:17:45 sipia opensips: ERROR:core:main: bad config file (1 errors)




--
rickygm

http://gnuforever.homelinux.com

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




--
Mit freundlichen Grüßen
Muhammad Shahzad
-----------------------------------
CISCO Rich Media Communication Specialist (CRMCS)
CISCO Certified Network Associate (CCNA)
Cell: <a href="tel:%2B49%20176%2099%2083%2010%2085" value="+4917699831085" target="_blank">+49 176 99 83 10 85
MSN: [hidden email]
Email: [hidden email]

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




--
rickygm

http://gnuforever.homelinux.com

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Presence xml

troxlinux
jejej my version is 1.9.1


2013/8/28 troxlinux <[hidden email]>
Hi ,  you're right I forgot to post the version of Use , I made the necessary changes, but I'm still having problems, do not know if I'm doing it correctly

loadmodule "presence.so"
loadmodule "presence_xml.so"
modparam("presence|presence_xml", "db_url") #
modparam("presence_xml", "force_active", 1)
modparam("presence", "server_address", "sip:172.x.x.x:5060") #


CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 87, column 16-17: syntax error
Aug 28 08:39:17 sipia opensips: CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 87, column 16-17: Invalid arguments
Aug 28 08:39:17 sipia opensips: CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 88, column 1-9:


line 87 and 88 is

modparam("presence|presence_xml", "db_url") #
modparam("presence_xml", "force_active", 1)

I´m not using an xcap server

regards my friendss


2013/8/27 Muhammad Shahzad <[hidden email]>
That's because presence_xml does not have db_url parameter anymore.


Also when asking for help, it would be better if you mention your opensips version / revision. This will save everybody's time.

Thank you.




On Wed, Aug 28, 2013 at 12:58 AM, troxlinux <[hidden email]> wrote:
I have already the module

/lib64/opensips/modules/presence_xml.so



2013/8/27 troxlinux <[hidden email]>
Hi list , I tried to add presence to my sipserver

check my config

loadmodule "presence.so"
loadmodule "presence_xml.so"

## --presencia modulos
modparam("presence|presence_xml", "db_url", "mysql://ossips:xxxx@localhost/opensips")
modparam("presence_xml", "force_active", 1)
modparam("presence", "server_address", "sip:172.x.x.x:5060" )


error log:


ERROR:core:set_mod_param_regex: parameter <db_url> not found in module <presence_xml>
Aug 27 15:15:48 sipia opensips: CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 86, column 20-21: Parameter <db_url> not found in module <presence|presence_xml> - can't set
Aug 27 15:15:48 sipia opensips: ERROR:core:main: bad config file (1 errors)
Aug 27 15:17:45 sipia opensips: WARNING:core:warn: warning in config file /etc/opensips/opensips.cfg, line 16, column 13-16: tls support not compiled in
Aug 27 15:17:45 sipia opensips: ERROR:core:set_mod_param_regex: parameter <db_url> not found in module <presence_xml>
Aug 27 15:17:45 sipia opensips: CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 86, column 20-21: Parameter <db_url> not found in module <presence|presence_xml> - can't set
Aug 27 15:17:45 sipia opensips: ERROR:core:main: bad config file (1 errors)




--
rickygm

http://gnuforever.homelinux.com

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




--
Mit freundlichen Grüßen
Muhammad Shahzad
-----------------------------------
CISCO Rich Media Communication Specialist (CRMCS)
CISCO Certified Network Associate (CCNA)
Cell: <a href="tel:%2B49%20176%2099%2083%2010%2085" value="+4917699831085" target="_blank">+49 176 99 83 10 85
MSN: [hidden email]
Email: [hidden email]

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




--
rickygm

http://gnuforever.homelinux.com



--
rickygm

http://gnuforever.homelinux.com

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Presence xml

troxlinux

look there :

Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:db_mysql:db_mysql_connect: driver error(1045): Access denied for user ''ossips@'localhost' (using password: YES)
Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:db_mysql:db_mysql_new_connection: initial connect failed
Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:core:db_do_init: could not add connection to the pool
Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:presence:mod_init: connecting to database failed
Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:core:init_mod: failed to initialize module presence
Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:core:main: error while initializing modules

the user is correct to connect to mysql , my attention this message

Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:core:init_mod: failed to initialize module presence
le /etc/opensips/opensips.cfg, line 87, column 16-17: syntax error
Aug 28 08:39:17 sipia opensips: CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 87, column 16-17: Invalid arguments
Aug 28 08:39:17 sipia opensips: CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 88, column 1-9:



--
rickygm

http://gnuforever.homelinux.com

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Presence xml

Saúl Ibarra Corretgé

On Aug 28, 2013, at 6:05 PM, troxlinux wrote:

>
> look there :
>
> Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:db_mysql:db_mysql_connect: driver error(1045): Access denied for user ''ossips@'localhost' (using password: YES)
> Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:db_mysql:db_mysql_new_connection: initial connect failed
> Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:core:db_do_init: could not add connection to the pool
> Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:presence:mod_init: connecting to database failed
> Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:core:init_mod: failed to initialize module presence
> Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:core:main: error while initializing modules
>
> the user is correct to connect to mysql , my attention this message
>

Your DB connection seems to be wrong.

> Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:core:init_mod: failed to initialize module presence
> le /etc/opensips/opensips.cfg, line 87, column 16-17: syntax error
> Aug 28 08:39:17 sipia opensips: CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 87, column 16-17: Invalid arguments
> Aug 28 08:39:17 sipia opensips: CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 88, column 1-9:
>

Well, what do you have on those lines? (87 and 88)

--
Saúl Ibarra Corretgé
AG Projects




_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Presence xml

troxlinux
saul my connection to mysql works perfect with the root user, and the user OpenSIPS bd,

mysqld (pid 2411) is running...


line 87 and 88

modparam("presence", "db_url","mysql://
ossips:xxx@localhost/opensips")
modparam("presence", "server_address", "sip:172.x.x.x:5060")





2013/8/28 Saúl Ibarra Corretgé <[hidden email]>

On Aug 28, 2013, at 6:05 PM, troxlinux wrote:

>
> look there :
>
> Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:db_mysql:db_mysql_connect: driver error(1045): Access denied for user ''ossips@'localhost' (using password: YES)
> Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:db_mysql:db_mysql_new_connection: initial connect failed
> Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:core:db_do_init: could not add connection to the pool
> Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:presence:mod_init: connecting to database failed
> Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:core:init_mod: failed to initialize module presence
> Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:core:main: error while initializing modules
>
> the user is correct to connect to mysql , my attention this message
>

Your DB connection seems to be wrong.

> Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:core:init_mod: failed to initialize module presence
> le /etc/opensips/opensips.cfg, line 87, column 16-17: syntax error
> Aug 28 08:39:17 sipia opensips: CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 87, column 16-17: Invalid arguments
> Aug 28 08:39:17 sipia opensips: CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 88, column 1-9:
>

Well, what do you have on those lines? (87 and 88)

--
Saúl Ibarra Corretgé
AG Projects




_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



--
rickygm

http://gnuforever.homelinux.com

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Presence xml

troxlinux
if I remove all configuration starts successfully OpenSIPS presence

Stopping opensips: not running                             [WARNING]
Starting opensips:                                         [  OK  ]



2013/8/28 troxlinux <[hidden email]>
saul my connection to mysql works perfect with the root user, and the user OpenSIPS bd,

mysqld (pid 2411) is running...


line 87 and 88

modparam("presence", "db_url","mysql://
ossips:xxx@localhost/opensips")

modparam("presence", "server_address", "sip:172.x.x.x:5060")





2013/8/28 Saúl Ibarra Corretgé <[hidden email]>

On Aug 28, 2013, at 6:05 PM, troxlinux wrote:

>
> look there :
>
> Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:db_mysql:db_mysql_connect: driver error(1045): Access denied for user ''ossips@'localhost' (using password: YES)
> Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:db_mysql:db_mysql_new_connection: initial connect failed
> Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:core:db_do_init: could not add connection to the pool
> Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:presence:mod_init: connecting to database failed
> Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:core:init_mod: failed to initialize module presence
> Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:core:main: error while initializing modules
>
> the user is correct to connect to mysql , my attention this message
>

Your DB connection seems to be wrong.

> Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:core:init_mod: failed to initialize module presence
> le /etc/opensips/opensips.cfg, line 87, column 16-17: syntax error
> Aug 28 08:39:17 sipia opensips: CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 87, column 16-17: Invalid arguments
> Aug 28 08:39:17 sipia opensips: CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 88, column 1-9:
>

Well, what do you have on those lines? (87 and 88)

--
Saúl Ibarra Corretgé
AG Projects




_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



--
rickygm

http://gnuforever.homelinux.com



--
rickygm

http://gnuforever.homelinux.com

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Presence xml

Saúl Ibarra Corretgé
In reply to this post by troxlinux

On Aug 28, 2013, at 6:21 PM, troxlinux wrote:

> saul my connection to mysql works perfect with the root user, and the user OpenSIPS bd,
>
> mysqld (pid 2411) is running...
>

So, does "mysql -uossips -pxxx -hlocalhost opensips" work?

>
> line 87 and 88
>
> modparam("presence", "db_url","mysql://ossips:xxx@localhost/opensips")
> modparam("presence", "server_address", "sip:172.x.x.x:5060")
>

These look fine, did you load the db_mysql beforehand?

>
>
>
>
> 2013/8/28 Saúl Ibarra Corretgé <[hidden email]>
>
> On Aug 28, 2013, at 6:05 PM, troxlinux wrote:
>
> >
> > look there :
> >
> > Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:db_mysql:db_mysql_connect: driver error(1045): Access denied for user ''ossips@'localhost' (using password: YES)
> > Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:db_mysql:db_mysql_new_connection: initial connect failed
> > Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:core:db_do_init: could not add connection to the pool
> > Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:presence:mod_init: connecting to database failed
> > Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:core:init_mod: failed to initialize module presence
> > Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:core:main: error while initializing modules
> >
> > the user is correct to connect to mysql , my attention this message
> >
>
> Your DB connection seems to be wrong.
>
> > Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:core:init_mod: failed to initialize module presence
> > le /etc/opensips/opensips.cfg, line 87, column 16-17: syntax error
> > Aug 28 08:39:17 sipia opensips: CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 87, column 16-17: Invalid arguments
> > Aug 28 08:39:17 sipia opensips: CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 88, column 1-9:
> >
>
> Well, what do you have on those lines? (87 and 88)
>
> --
> Saúl Ibarra Corretgé
> AG Projects
>
>
>
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> --
> rickygm
>
> http://gnuforever.homelinux.com
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

--
Saúl Ibarra Corretgé
AG Projects




_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Presence xml

troxlinux
Saul, change the user en opensips ,  now I'm using the mysql root, and the error message changes

Aug 28 13:44:13 sipia /sbin/opensips[5081]: ERROR:presence_xml:mod_init: Can't bind xcap
Aug 28 13:44:13 sipia /sbin/opensips[5081]: ERROR:core:init_mod: failed to initialize module presence_xml
Aug 28 13:44:13 sipia /sbin/opensips[5081]: ERROR:core:main: error while initializing modules



2013/8/28 Saúl Ibarra Corretgé <[hidden email]>

On Aug 28, 2013, at 6:21 PM, troxlinux wrote:

> saul my connection to mysql works perfect with the root user, and the user OpenSIPS bd,
>
> mysqld (pid 2411) is running...
>

So, does "mysql -uossips -pxxx -hlocalhost opensips" work?

>
> line 87 and 88
>
> modparam("presence", "db_url","mysql://ossips:xxx@localhost/opensips")
> modparam("presence", "server_address", "sip:172.x.x.x:5060")
>

These look fine, did you load the db_mysql beforehand?

>
>
>
>
> 2013/8/28 Saúl Ibarra Corretgé <[hidden email]>
>
> On Aug 28, 2013, at 6:05 PM, troxlinux wrote:
>
> >
> > look there :
> >
> > Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:db_mysql:db_mysql_connect: driver error(1045): Access denied for user ''ossips@'localhost' (using password: YES)
> > Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:db_mysql:db_mysql_new_connection: initial connect failed
> > Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:core:db_do_init: could not add connection to the pool
> > Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:presence:mod_init: connecting to database failed
> > Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:core:init_mod: failed to initialize module presence
> > Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:core:main: error while initializing modules
> >
> > the user is correct to connect to mysql , my attention this message
> >
>
> Your DB connection seems to be wrong.
>
> > Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:core:init_mod: failed to initialize module presence
> > le /etc/opensips/opensips.cfg, line 87, column 16-17: syntax error
> > Aug 28 08:39:17 sipia opensips: CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 87, column 16-17: Invalid arguments
> > Aug 28 08:39:17 sipia opensips: CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 88, column 1-9:
> >
>
> Well, what do you have on those lines? (87 and 88)
>
> --
> Saúl Ibarra Corretgé
> AG Projects
>
>
>
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> --
> rickygm
>
> http://gnuforever.homelinux.com
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

--
Saúl Ibarra Corretgé
AG Projects




_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



--
rickygm

http://gnuforever.homelinux.com

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Presence xml

troxlinux
if I disabled module presence_xml opensips running fine

#loadmodule "presence_xml.so"
modparam("presence", "db_url","mysql://root:xxxxx@localhost/opensips")
modparam("presence", "server_address", "sip:sa@172.16.8.48:5060")
#modparam("presence_xml", "db_url") # CUSTOMIZE ME
#modparam("presence_xml", "force_active", 1)

but , error persists in the log when open softphone

opensips[5719]: ERROR:presence:handle_publish: Missing or unsupported event header field value
Aug 28 14:15:13 sipia /sbin/opensips[5719]: ERROR:presence:handle_publish: #011event=[presence]

I think that disabled presence_xml.so





2013/8/28 troxlinux <[hidden email]>
Saul, change the user en opensips ,  now I'm using the mysql root, and the error message changes

Aug 28 13:44:13 sipia /sbin/opensips[5081]: ERROR:presence_xml:mod_init: Can't bind xcap
Aug 28 13:44:13 sipia /sbin/opensips[5081]: ERROR:core:init_mod: failed to initialize module presence_xml
Aug 28 13:44:13 sipia /sbin/opensips[5081]: ERROR:core:main: error while initializing modules



2013/8/28 Saúl Ibarra Corretgé <[hidden email]>

On Aug 28, 2013, at 6:21 PM, troxlinux wrote:

> saul my connection to mysql works perfect with the root user, and the user OpenSIPS bd,
>
> mysqld (pid 2411) is running...
>

So, does "mysql -uossips -pxxx -hlocalhost opensips" work?

>
> line 87 and 88
>
> modparam("presence", "db_url","mysql://ossips:xxx@localhost/opensips")
> modparam("presence", "server_address", "sip:172.x.x.x:5060")
>

These look fine, did you load the db_mysql beforehand?

>
>
>
>
> 2013/8/28 Saúl Ibarra Corretgé <[hidden email]>
>
> On Aug 28, 2013, at 6:05 PM, troxlinux wrote:
>
> >
> > look there :
> >
> > Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:db_mysql:db_mysql_connect: driver error(1045): Access denied for user ''ossips@'localhost' (using password: YES)
> > Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:db_mysql:db_mysql_new_connection: initial connect failed
> > Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:core:db_do_init: could not add connection to the pool
> > Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:presence:mod_init: connecting to database failed
> > Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:core:init_mod: failed to initialize module presence
> > Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:core:main: error while initializing modules
> >
> > the user is correct to connect to mysql , my attention this message
> >
>
> Your DB connection seems to be wrong.
>
> > Aug 28 09:54:41 sipia /sbin/opensips[27216]: ERROR:core:init_mod: failed to initialize module presence
> > le /etc/opensips/opensips.cfg, line 87, column 16-17: syntax error
> > Aug 28 08:39:17 sipia opensips: CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 87, column 16-17: Invalid arguments
> > Aug 28 08:39:17 sipia opensips: CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 88, column 1-9:
> >
>
> Well, what do you have on those lines? (87 and 88)
>
> --
> Saúl Ibarra Corretgé
> AG Projects
>
>
>
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> --
> rickygm
>
> http://gnuforever.homelinux.com
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

--
Saúl Ibarra Corretgé
AG Projects




_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



--
rickygm

http://gnuforever.homelinux.com



--
rickygm

http://gnuforever.homelinux.com

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Presence xml

Saúl Ibarra Corretgé

On Aug 28, 2013, at 10:24 PM, troxlinux wrote:

> if I disabled module presence_xml opensips running fine
>
> #loadmodule "presence_xml.so"
> modparam("presence", "db_url","mysql://root:xxxxx@localhost/opensips")
> modparam("presence", "server_address", "sip:sa@172.16.8.48:5060")
> #modparam("presence_xml", "db_url") # CUSTOMIZE ME
> #modparam("presence_xml", "force_active", 1)
>
> but , error persists in the log when open softphone
>

Well, this error has nothing to do with the previous ones.

> opensips[5719]: ERROR:presence:handle_publish: Missing or unsupported event header field value
> Aug 28 14:15:13 sipia /sbin/opensips[5719]: ERROR:presence:handle_publish: #011event=[presence]
>
> I think that disabled presence_xml.so
>

If you want to handle the 'presence' event you'll need the presence_xml module. You'll also need the xcap module unless you set force_active to 1.

--
Saúl Ibarra Corretgé
AG Projects




_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Presence xml

troxlinux
ummm , I need load module xcap.so ?


2013/8/28 Saúl Ibarra Corretgé <[hidden email]>

On Aug 28, 2013, at 10:24 PM, troxlinux wrote:

> if I disabled module presence_xml opensips running fine
>
> #loadmodule "presence_xml.so"
> modparam("presence", "db_url","mysql://root:xxxxx@localhost/opensips")
> modparam("presence", "server_address", "sip:sa@172.16.8.48:5060")
> #modparam("presence_xml", "db_url") # CUSTOMIZE ME
> #modparam("presence_xml", "force_active", 1)
>
> but , error persists in the log when open softphone
>

Well, this error has nothing to do with the previous ones.

> opensips[5719]: ERROR:presence:handle_publish: Missing or unsupported event header field value
> Aug 28 14:15:13 sipia /sbin/opensips[5719]: ERROR:presence:handle_publish: #011event=[presence]
>
> I think that disabled presence_xml.so
>

If you want to handle the 'presence' event you'll need the presence_xml module. You'll also need the xcap module unless you set force_active to 1.

--
Saúl Ibarra Corretgé
AG Projects




_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



--
rickygm

http://gnuforever.homelinux.com

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Presence xml

troxlinux
but I have a question, It is then necessary to mount a server openxcap?


2013/8/28 troxlinux <[hidden email]>
ummm , I need load module xcap.so ?


2013/8/28 Saúl Ibarra Corretgé <[hidden email]>

On Aug 28, 2013, at 10:24 PM, troxlinux wrote:

> if I disabled module presence_xml opensips running fine
>
> #loadmodule "presence_xml.so"
> modparam("presence", "db_url","mysql://root:xxxxx@localhost/opensips")
> modparam("presence", "server_address", "sip:sa@172.16.8.48:5060")
> #modparam("presence_xml", "db_url") # CUSTOMIZE ME
> #modparam("presence_xml", "force_active", 1)
>
> but , error persists in the log when open softphone
>

Well, this error has nothing to do with the previous ones.

> opensips[5719]: ERROR:presence:handle_publish: Missing or unsupported event header field value
> Aug 28 14:15:13 sipia /sbin/opensips[5719]: ERROR:presence:handle_publish: #011event=[presence]
>
> I think that disabled presence_xml.so
>

If you want to handle the 'presence' event you'll need the presence_xml module. You'll also need the xcap module unless you set force_active to 1.

--
Saúl Ibarra Corretgé
AG Projects




_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



--
rickygm

http://gnuforever.homelinux.com



--
rickygm

http://gnuforever.homelinux.com

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Presence xml

troxlinux
I am currently using version 1.8.3 and I work with the presence ,
in my other thread got different settings and I could not make it work the simple presence.

?


2013/8/28 troxlinux <[hidden email]>
but I have a question, It is then necessary to mount a server openxcap?


2013/8/28 troxlinux <[hidden email]>
ummm , I need load module xcap.so ?


2013/8/28 Saúl Ibarra Corretgé <[hidden email]>

On Aug 28, 2013, at 10:24 PM, troxlinux wrote:

> if I disabled module presence_xml opensips running fine
>
> #loadmodule "presence_xml.so"
> modparam("presence", "db_url","mysql://root:xxxxx@localhost/opensips")
> modparam("presence", "server_address", "sip:sa@172.16.8.48:5060")
> #modparam("presence_xml", "db_url") # CUSTOMIZE ME
> #modparam("presence_xml", "force_active", 1)
>
> but , error persists in the log when open softphone
>

Well, this error has nothing to do with the previous ones.

> opensips[5719]: ERROR:presence:handle_publish: Missing or unsupported event header field value
> Aug 28 14:15:13 sipia /sbin/opensips[5719]: ERROR:presence:handle_publish: #011event=[presence]
>
> I think that disabled presence_xml.so
>

If you want to handle the 'presence' event you'll need the presence_xml module. You'll also need the xcap module unless you set force_active to 1.

--
Saúl Ibarra Corretgé
AG Projects




_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



--
rickygm

http://gnuforever.homelinux.com



--
rickygm

http://gnuforever.homelinux.com



--
rickygm

http://gnuforever.homelinux.com

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users