Problem Starting Openser

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

Problem Starting Openser

ASHWINI NAIDU
hi all,

   Happy New year to all of You


Coming to the point. I am using Centos 5. I upgraded the openser-1.2.2-tls to openser-1.3.4-tls. But i am not able to start the openser using

1. /etc/init.d/openser start

[root@localhost /]# /etc/init.d/openser start
Starting openser:
[root@localhost /]#

it just shows Starting openser and quits.

2. /sbin/openser start

  I am having the same problem as above.

3. /sbin/openserctl start

it shows error

database engine 'MYSQL' loaded
Control engine 'FIFO' loaded

INFO: Starting OpenSER :

ERROR: PID file /var/run/openser.pid does not exist -- OpenSER start failed


As per openser documents the files and paths are right in place.

Thanks in Advance
--
Thanking You,
Ashwini BR Naidu

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

Re: Problem Starting Openser

J Santos
Message
 
 
Hello Ashwini ,
 
I was having this exactly same problem in my CentOs 64 bits just a couple of days ago.
 
In my case the problem was very simple.
 
I was not supplying correctly the mysql password on opensips.cfg
 
mysql://[username]:[password]@localhost:mysql/opensips")
 
regards
 
Jair Santos
 

 

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of ASHWINI NAIDU
Sent: Thursday, January 01, 2009 4:40 AM
To: [hidden email]
Subject: [OpenSIPS-Users] Problem Starting Openser

hi all,

   Happy New year to all of You


Coming to the point. I am using Centos 5. I upgraded the openser-1.2.2-tls to openser-1.3.4-tls. But i am not able to start the openser using

1. /etc/init.d/openser start

[root@localhost /]# /etc/init.d/openser start
Starting openser:
[root@localhost /]#

it just shows Starting openser and quits.

2. /sbin/openser start

  I am having the same problem as above.

3. /sbin/openserctl start

it shows error

database engine 'MYSQL' loaded
Control engine 'FIFO' loaded

INFO: Starting OpenSER :

ERROR: PID file /var/run/openser.pid does not exist -- OpenSER start failed


As per openser documents the files and paths are right in place.

Thanks in Advance
--
Thanking You,
Ashwini BR Naidu

No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.176 / Virus Database: 270.10.1/1870 - Release Date: 12/31/2008 8:44 AM


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

OpenXCAP Put 401 Unauthorized

Jun.Wen
Message
Hi, All, Happy new year to all the team here.
 
Please help me to figure out what is going wrong with my openxcap. Thanks in advance.
 
I've built up openxcap in debian according to the installation guide and the it works as followings info from error.log.
-------------------------------------------------------------------------------------------------------------------------------
2009-01-02 02:56:26-0500 [-] Starting OpenXCAP 1.0.6
2009-01-02 02:56:37-0500 [-] Supported Root URIs: http://192.168.10.10/xcap-root
2009-01-02 02:56:39-0500 [-] Certificate file 'tls/server.crt' could not be loaded: File 'tls/server.crt' does not exist
2009-01-02 02:56:39-0500 [-] Private key file 'tls/server.key' could not be loaded: File 'tls/server.key' does not exist
2009-01-02 02:56:39-0500 [-] Trusted peers: 192.168.10.0/24, 127.0.0.1
2009-01-02 02:56:39-0500 [-] xcap.server.HTTPFactory starting on 80
--------------------------------------------------------------------------------------------------------------------------------
 
The openxcap server is configured to domain 192.168.10.10 ( local server static IP address ). I also created a test account [hidden email] with pwd 123 by python add-openxcap-user.py in scripts.  While when I tried the python-xcapclient to put a document to the openxcap server, I always encountered "401 Unauthorized" for following details -
-----------------------------------------------------------------------------------------------------------------------------------
xcap:/opt/python-xcaplib/examples# xcapclient -i pres-rules.xml put
put http://192.168.10.10/xcap-root/pres-rules/users/sip:alice@192.168.10.10/index
401 Unauthorized
content-type: text/html
content-length: 141
<html><head><title>Unauthorized</title></head><body><h1>Unauthorized</h1><p>You are not authorized to access this resource.</p></body></html>
-----------------------------------------------------------------------------------------------------------------------------------
 
Please refer the the access.log and it seems something related my domain settings.
 
-----------------------------------------------------------------------------------------------------------------------------------
2009-01-01 08:41:08-0500 [-] 192.168.10.10 'PUT /xcap-root/pres-rules/users/sip:alice@192.168.10.10/index HTTP/1.1' 401 0 141 'python-xcaplib/1.0.8' -
        REQUEST headers:
                Accept-Encoding: identity
                User-Agent: python-xcaplib/1.0.8
                Host: 192.168.10.10
                Content-Type: application/x-www-form-urlencoded
                Authorization: Basic YWxpY2U6MTIz
        RESPONSE headers:
                Date: Thu, 01 Jan 2009 13:41:08 GMT
                Content-Type: text/html
                WWW-Authenticate: basic realm="192.168.10.10"
                Server: OpenXCAP/1.0.6
-----------------------------------------------------------------------------------------------------------------------------------
 
Regards
 
Jun
 
 
 
 
 
 

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

Re: OpenXCAP Put 401 Unauthorized

Adrian Georgescu
I do not find in your logs what is wrong with your setup, it could be either the client or the server configuration.

Can you try your XCAP client using a SIP account from http://sip2sip.info see if that works?

Regards,
Adrian


On Jan 2, 2009, at 2:39 PM, Jun.Wen wrote:

It looks like this -
 
-------------------------------------------------------------------------
xcap:~/.sipclient# cat config.ini
# rename this file to 'config.ini' and copy it in ~/.sipclient/ directory
 
# this will be the default account used by xcapclient
[Account]
sip_address = [hidden email]
password = 123
xcap_root = http://192.168.10.10/xcap-root
 
# this will be used when -a bob command-line switch is provided
[Account_bob]
sip_address = [hidden email]
password = 123
xcap_root = http://192.168.10.10/xcap-root


From: Adrian Georgescu [[hidden email]]
Sent: 2009年1月2日 21:35
To: Jun.Wen
Subject: Re: [OpenSIPS-Users] OpenXCAP Put 401 Unauthorized

What is the content of your xcapclient configuration file .sipclient/config.ini ?

Adrian

On Jan 2, 2009, at 9:33 AM, Jun.Wen wrote:

Hi, All, Happy new year to all the team here.
 
Please help me to figure out what is going wrong with my openxcap. Thanks in advance.
 
I've built up openxcap in debian according to the installation guide and the it works as followings info from error.log.
-------------------------------------------------------------------------------------------------------------------------------
2009-01-02 02:56:26-0500 [-] Starting OpenXCAP 1.0.6
2009-01-02 02:56:37-0500 [-] Supported Root URIs: http://192.168.10.10/xcap-root
2009-01-02 02:56:39-0500 [-] Certificate file 'tls/server.crt' could not be loaded: File 'tls/server.crt' does not exist
2009-01-02 02:56:39-0500 [-] Private key file 'tls/server.key' could not be loaded: File 'tls/server.key' does not exist
2009-01-02 02:56:39-0500 [-] Trusted peers: 192.168.10.0/24, 127.0.0.1
2009-01-02 02:56:39-0500 [-] xcap.server.HTTPFactory starting on 80
--------------------------------------------------------------------------------------------------------------------------------
 
The openxcap server is configured to domain 192.168.10.10 ( local server static IP address ). I also created a test account [hidden email] with pwd 123 by python add-openxcap-user.py in scripts.  While when I tried the python-xcapclient to put a document to the openxcap server, I always encountered "401 Unauthorized" for following details -
-----------------------------------------------------------------------------------------------------------------------------------
xcap:/opt/python-xcaplib/examples# xcapclient -i pres-rules.xml put
put http://192.168.10.10/xcap-root/pres-rules/users/sip:alice@192.168.10.10/index
401 Unauthorized
content-type: text/html
content-length: 141
<html><head><title>Unauthorized</title></head><body><h1>Unauthorized</h1><p>You are not authorized to access this resource.</p></body></html>
-----------------------------------------------------------------------------------------------------------------------------------
 
Please refer the the access.log and it seems something related my domain settings.
 
-----------------------------------------------------------------------------------------------------------------------------------
2009-01-01 08:41:08-0500 [-] 192.168.10.10 'PUT /xcap-root/pres-rules/users/<a href="sip:alice@192.168.10.10/index">sip:alice@192.168.10.10/index HTTP/1.1' 401 0 141 'python-xcaplib/1.0.8' -
        REQUEST headers:
                Accept-Encoding: identity
                User-Agent: python-xcaplib/1.0.8
                Host: 192.168.10.10
                Content-Type: application/x-www-form-urlencoded
                Authorization: Basic YWxpY2U6MTIz
        RESPONSE headers:
                Date: Thu, 01 Jan 2009 13:41:08 GMT
                Content-Type: text/html
                WWW-Authenticate: basic realm="192.168.10.10"
                Server: OpenXCAP/1.0.6
-----------------------------------------------------------------------------------------------------------------------------------
 
Regards
 
Jun
 
 
 
 
 
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



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

Re: Problem Starting Openser

Bogdan-Andrei Iancu
In reply to this post by ASHWINI NAIDU
Hi,

Have you followed
http://www.opensips.org/index.php?n=Resources.DocsTsStart to
troubleshoot your problem?

Regards,
Bogdan

ASHWINI NAIDU wrote:

> hi all,
>
>    Happy New year to all of You
>
>
> Coming to the point. I am using Centos 5. I upgraded the
> openser-1.2.2-tls to openser-1.3.4-tls. But i am not able to start the
> openser using
>
> 1. /etc/init.d/openser start
>
> [root@localhost /]# /etc/init.d/openser start
> Starting openser:
> [root@localhost /]#
>
> it just shows Starting openser and quits.
>
> 2. /sbin/openser start
>
>   I am having the same problem as above.
>
> 3. /sbin/openserctl start
>
> it shows error
>
> database engine 'MYSQL' loaded
> Control engine 'FIFO' loaded
>
> INFO: Starting OpenSER :
>
> ERROR: PID file /var/run/openser.pid does not exist -- OpenSER start
> failed
>
>
> As per openser documents the files and paths are right in place.
>
> Thanks in Advance
> --
> Thanking You,
> Ashwini BR Naidu
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>  


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

Re: OpenXCAP Put 401 Unauthorized

Jun.Wen
In reply to this post by Adrian Georgescu
Adrian,
 
I guess my problem is I did not successfully created users in xcap server by the scripts of "python add-openxcap-user.py". Inside the table of subscriber of mysql, there is no any user record existed.
 
Any tips to create user inside xcap server ?
 
Regards
 
Jun


From: Adrian Georgescu [mailto:[hidden email]]
Sent: 2009年1月3日 1:08
To: Jun.Wen
Cc: [hidden email]
Subject: Re: [OpenSIPS-Users] OpenXCAP Put 401 Unauthorized

I do not find in your logs what is wrong with your setup, it could be either the client or the server configuration.

Can you try your XCAP client using a SIP account from http://sip2sip.info see if that works?

Regards,
Adrian


On Jan 2, 2009, at 2:39 PM, Jun.Wen wrote:

It looks like this -
 
-------------------------------------------------------------------------
xcap:~/.sipclient# cat config.ini
# rename this file to 'config.ini' and copy it in ~/.sipclient/ directory
 
# this will be the default account used by xcapclient
[Account]
sip_address = [hidden email]
password = 123
xcap_root = http://192.168.10.10/xcap-root
 
# this will be used when -a bob command-line switch is provided
[Account_bob]
sip_address = [hidden email]
password = 123
xcap_root = http://192.168.10.10/xcap-root


From: Adrian Georgescu [[hidden email]]
Sent: 2009年1月2日 21:35
To: Jun.Wen
Subject: Re: [OpenSIPS-Users] OpenXCAP Put 401 Unauthorized

What is the content of your xcapclient configuration file .sipclient/config.ini ?

Adrian

On Jan 2, 2009, at 9:33 AM, Jun.Wen wrote:

Hi, All, Happy new year to all the team here.
 
Please help me to figure out what is going wrong with my openxcap. Thanks in advance.
 
I've built up openxcap in debian according to the installation guide and the it works as followings info from error.log.
-------------------------------------------------------------------------------------------------------------------------------
2009-01-02 02:56:26-0500 [-] Starting OpenXCAP 1.0.6
2009-01-02 02:56:37-0500 [-] Supported Root URIs: http://192.168.10.10/xcap-root
2009-01-02 02:56:39-0500 [-] Certificate file 'tls/server.crt' could not be loaded: File 'tls/server.crt' does not exist
2009-01-02 02:56:39-0500 [-] Private key file 'tls/server.key' could not be loaded: File 'tls/server.key' does not exist
2009-01-02 02:56:39-0500 [-] Trusted peers: 192.168.10.0/24, 127.0.0.1
2009-01-02 02:56:39-0500 [-] xcap.server.HTTPFactory starting on 80
--------------------------------------------------------------------------------------------------------------------------------
 
The openxcap server is configured to domain 192.168.10.10 ( local server static IP address ). I also created a test account [hidden email] with pwd 123 by python add-openxcap-user.py in scripts.  While when I tried the python-xcapclient to put a document to the openxcap server, I always encountered "401 Unauthorized" for following details -
-----------------------------------------------------------------------------------------------------------------------------------
xcap:/opt/python-xcaplib/examples# xcapclient -i pres-rules.xml put
put http://192.168.10.10/xcap-root/pres-rules/users/sip:alice@192.168.10.10/index
401 Unauthorized
content-type: text/html
content-length: 141
<html><head><title>Unauthorized</title></head><body><h1>Unauthorized</h1><p>You are not authorized to access this resource.</p></body></html>
-----------------------------------------------------------------------------------------------------------------------------------
 
Please refer the the access.log and it seems something related my domain settings.
 
-----------------------------------------------------------------------------------------------------------------------------------
2009-01-01 08:41:08-0500 [-] 192.168.10.10 'PUT /xcap-root/pres-rules/users/<A href="sip:alice@192.168.10.10/index">sip:alice@192.168.10.10/index HTTP/1.1' 401 0 141 'python-xcaplib/1.0.8' -
        REQUEST headers:
                Accept-Encoding: identity
                User-Agent: python-xcaplib/1.0.8
                Host: 192.168.10.10
                Content-Type: application/x-www-form-urlencoded
                Authorization: Basic YWxpY2U6MTIz
        RESPONSE headers:
                Date: Thu, 01 Jan 2009 13:41:08 GMT
                Content-Type: text/html
                WWW-Authenticate: basic realm="192.168.10.10"
                Server: OpenXCAP/1.0.6
-----------------------------------------------------------------------------------------------------------------------------------
 
Regards
 
Jun
 
 
 
 
 
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



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

Re: OpenXCAP Put 401 Unauthorized

Adrian Georgescu
Did you try opensipsctl command? 

Adrian

On Jan 7, 2009, at 5:33 AM, Jun.Wen wrote:

Adrian,
 
I guess my problem is I did not successfully created users in xcap server by the scripts of "python add-openxcap-user.py". Inside the table of subscriber of mysql, there is no any user record existed.
 
Any tips to create user inside xcap server ?
 
Regards
 
Jun


From: Adrian Georgescu [[hidden email]]
Sent: 2009年1月3日 1:08
To: Jun.Wen
Cc: [hidden email]
Subject: Re: [OpenSIPS-Users] OpenXCAP Put 401 Unauthorized

I do not find in your logs what is wrong with your setup, it could be either the client or the server configuration.

Can you try your XCAP client using a SIP account from http://sip2sip.info see if that works?

Regards,
Adrian


On Jan 2, 2009, at 2:39 PM, Jun.Wen wrote:

It looks like this -
 
-------------------------------------------------------------------------
xcap:~/.sipclient# cat config.ini
# rename this file to 'config.ini' and copy it in ~/.sipclient/ directory
 
# this will be the default account used by xcapclient
[Account]
sip_address = [hidden email]
password = 123
xcap_root = http://192.168.10.10/xcap-root
 
# this will be used when -a bob command-line switch is provided
[Account_bob]
sip_address = [hidden email]
password = 123
xcap_root = http://192.168.10.10/xcap-root


From: Adrian Georgescu [[hidden email]]
Sent: 2009年1月2日 21:35
To: Jun.Wen
Subject: Re: [OpenSIPS-Users] OpenXCAP Put 401 Unauthorized

What is the content of your xcapclient configuration file .sipclient/config.ini ?

Adrian

On Jan 2, 2009, at 9:33 AM, Jun.Wen wrote:

Hi, All, Happy new year to all the team here.
 
Please help me to figure out what is going wrong with my openxcap. Thanks in advance.
 
I've built up openxcap in debian according to the installation guide and the it works as followings info from error.log.
-------------------------------------------------------------------------------------------------------------------------------
2009-01-02 02:56:26-0500 [-] Starting OpenXCAP 1.0.6
2009-01-02 02:56:37-0500 [-] Supported Root URIs: http://192.168.10.10/xcap-root
2009-01-02 02:56:39-0500 [-] Certificate file 'tls/server.crt' could not be loaded: File 'tls/server.crt' does not exist
2009-01-02 02:56:39-0500 [-] Private key file 'tls/server.key' could not be loaded: File 'tls/server.key' does not exist
2009-01-02 02:56:39-0500 [-] Trusted peers: 192.168.10.0/24, 127.0.0.1
2009-01-02 02:56:39-0500 [-] xcap.server.HTTPFactory starting on 80
--------------------------------------------------------------------------------------------------------------------------------
 
The openxcap server is configured to domain 192.168.10.10 ( local server static IP address ). I also created a test account [hidden email] with pwd 123 by python add-openxcap-user.py in scripts.  While when I tried the python-xcapclient to put a document to the openxcap server, I always encountered "401 Unauthorized" for following details -
-----------------------------------------------------------------------------------------------------------------------------------
xcap:/opt/python-xcaplib/examples# xcapclient -i pres-rules.xml put
put http://192.168.10.10/xcap-root/pres-rules/users/sip:alice@192.168.10.10/index
401 Unauthorized
content-type: text/html
content-length: 141
<html><head><title>Unauthorized</title></head><body><h1>Unauthorized</h1><p>You are not authorized to access this resource.</p></body></html>
-----------------------------------------------------------------------------------------------------------------------------------
 
Please refer the the access.log and it seems something related my domain settings.
 
-----------------------------------------------------------------------------------------------------------------------------------
2009-01-01 08:41:08-0500 [-] 192.168.10.10 'PUT /xcap-root/pres-rules/users/<a href="sip:alice@192.168.10.10/index">sip:alice@192.168.10.10/index HTTP/1.1' 401 0 141 'python-xcaplib/1.0.8' -
        REQUEST headers:
                Accept-Encoding: identity
                User-Agent: python-xcaplib/1.0.8
                Host: 192.168.10.10
                Content-Type: application/x-www-form-urlencoded
                Authorization: Basic YWxpY2U6MTIz
        RESPONSE headers:
                Date: Thu, 01 Jan 2009 13:41:08 GMT
                Content-Type: text/html
                WWW-Authenticate: basic realm="192.168.10.10"
                Server: OpenXCAP/1.0.6
-----------------------------------------------------------------------------------------------------------------------------------
 
Regards
 
Jun
 
 
 
 
 
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




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

Re: OpenXCAP Put 401 Unauthorized

Jun.Wen
I did not install opensips with openxcap in same server, is it a must or not ?


From: Adrian Georgescu [mailto:[hidden email]]
Sent: 2009年1月7日 14:49
To: Jun.Wen
Cc: [hidden email]
Subject: Re: [OpenSIPS-Users] OpenXCAP Put 401 Unauthorized

Did you try opensipsctl command? 

Adrian

On Jan 7, 2009, at 5:33 AM, Jun.Wen wrote:

Adrian,
 
I guess my problem is I did not successfully created users in xcap server by the scripts of "python add-openxcap-user.py". Inside the table of subscriber of mysql, there is no any user record existed.
 
Any tips to create user inside xcap server ?
 
Regards
 
Jun


From: Adrian Georgescu [[hidden email]]
Sent: 2009年1月3日 1:08
To: Jun.Wen
Cc: [hidden email]
Subject: Re: [OpenSIPS-Users] OpenXCAP Put 401 Unauthorized

I do not find in your logs what is wrong with your setup, it could be either the client or the server configuration.

Can you try your XCAP client using a SIP account from http://sip2sip.info see if that works?

Regards,
Adrian


On Jan 2, 2009, at 2:39 PM, Jun.Wen wrote:

It looks like this -
 
-------------------------------------------------------------------------
xcap:~/.sipclient# cat config.ini
# rename this file to 'config.ini' and copy it in ~/.sipclient/ directory
 
# this will be the default account used by xcapclient
[Account]
sip_address = [hidden email]
password = 123
xcap_root = http://192.168.10.10/xcap-root
 
# this will be used when -a bob command-line switch is provided
[Account_bob]
sip_address = [hidden email]
password = 123
xcap_root = http://192.168.10.10/xcap-root


From: Adrian Georgescu [[hidden email]]
Sent: 2009年1月2日 21:35
To: Jun.Wen
Subject: Re: [OpenSIPS-Users] OpenXCAP Put 401 Unauthorized

What is the content of your xcapclient configuration file .sipclient/config.ini ?

Adrian

On Jan 2, 2009, at 9:33 AM, Jun.Wen wrote:

Hi, All, Happy new year to all the team here.
 
Please help me to figure out what is going wrong with my openxcap. Thanks in advance.
 
I've built up openxcap in debian according to the installation guide and the it works as followings info from error.log.
-------------------------------------------------------------------------------------------------------------------------------
2009-01-02 02:56:26-0500 [-] Starting OpenXCAP 1.0.6
2009-01-02 02:56:37-0500 [-] Supported Root URIs: http://192.168.10.10/xcap-root
2009-01-02 02:56:39-0500 [-] Certificate file 'tls/server.crt' could not be loaded: File 'tls/server.crt' does not exist
2009-01-02 02:56:39-0500 [-] Private key file 'tls/server.key' could not be loaded: File 'tls/server.key' does not exist
2009-01-02 02:56:39-0500 [-] Trusted peers: 192.168.10.0/24, 127.0.0.1
2009-01-02 02:56:39-0500 [-] xcap.server.HTTPFactory starting on 80
--------------------------------------------------------------------------------------------------------------------------------
 
The openxcap server is configured to domain 192.168.10.10 ( local server static IP address ). I also created a test account [hidden email] with pwd 123 by python add-openxcap-user.py in scripts.  While when I tried the python-xcapclient to put a document to the openxcap server, I always encountered "401 Unauthorized" for following details -
-----------------------------------------------------------------------------------------------------------------------------------
xcap:/opt/python-xcaplib/examples# xcapclient -i pres-rules.xml put
put http://192.168.10.10/xcap-root/pres-rules/users/sip:alice@192.168.10.10/index
401 Unauthorized
content-type: text/html
content-length: 141
<html><head><title>Unauthorized</title></head><body><h1>Unauthorized</h1><p>You are not authorized to access this resource.</p></body></html>
-----------------------------------------------------------------------------------------------------------------------------------
 
Please refer the the access.log and it seems something related my domain settings.
 
-----------------------------------------------------------------------------------------------------------------------------------
2009-01-01 08:41:08-0500 [-] 192.168.10.10 'PUT /xcap-root/pres-rules/users/<A href="sip:alice@192.168.10.10/index">sip:alice@192.168.10.10/index HTTP/1.1' 401 0 141 'python-xcaplib/1.0.8' -
        REQUEST headers:
                Accept-Encoding: identity
                User-Agent: python-xcaplib/1.0.8
                Host: 192.168.10.10
                Content-Type: application/x-www-form-urlencoded
                Authorization: Basic YWxpY2U6MTIz
        RESPONSE headers:
                Date: Thu, 01 Jan 2009 13:41:08 GMT
                Content-Type: text/html
                WWW-Authenticate: basic realm="192.168.10.10"
                Server: OpenXCAP/1.0.6
-----------------------------------------------------------------------------------------------------------------------------------
 
Regards
 
Jun
 
 
 
 
 
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




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

Re: OpenXCAP Put 401 Unauthorized

Adrian Georgescu
The database is commonly shared between the two servers. So you can create an user with opensipsctl command on the sip machine as long as OpenXCAP is using the same database as OpenSIPS.
 
Adrian

On Jan 7, 2009, at 8:29 AM, Jun.Wen wrote:

I did not install opensips with openxcap in same server, is it a must or not ?


From: Adrian Georgescu [[hidden email]]
Sent: 2009年1月7日 14:49
To: Jun.Wen
Cc: [hidden email]
Subject: Re: [OpenSIPS-Users] OpenXCAP Put 401 Unauthorized

Did you try opensipsctl command? 

Adrian

On Jan 7, 2009, at 5:33 AM, Jun.Wen wrote:

Adrian,
 
I guess my problem is I did not successfully created users in xcap server by the scripts of "python add-openxcap-user.py". Inside the table of subscriber of mysql, there is no any user record existed.
 
Any tips to create user inside xcap server ?
 
Regards
 
Jun


From: Adrian Georgescu [[hidden email]]
Sent: 2009年1月3日 1:08
To: Jun.Wen
Cc: [hidden email]
Subject: Re: [OpenSIPS-Users] OpenXCAP Put 401 Unauthorized

I do not find in your logs what is wrong with your setup, it could be either the client or the server configuration.

Can you try your XCAP client using a SIP account from http://sip2sip.info see if that works?

Regards,
Adrian


On Jan 2, 2009, at 2:39 PM, Jun.Wen wrote:

It looks like this -
 
-------------------------------------------------------------------------
xcap:~/.sipclient# cat config.ini
# rename this file to 'config.ini' and copy it in ~/.sipclient/ directory
 
# this will be the default account used by xcapclient
[Account]
sip_address = [hidden email]
password = 123
xcap_root = http://192.168.10.10/xcap-root
 
# this will be used when -a bob command-line switch is provided
[Account_bob]
sip_address = [hidden email]
password = 123
xcap_root = http://192.168.10.10/xcap-root


From: Adrian Georgescu [[hidden email]]
Sent: 2009年1月2日 21:35
To: Jun.Wen
Subject: Re: [OpenSIPS-Users] OpenXCAP Put 401 Unauthorized

What is the content of your xcapclient configuration file .sipclient/config.ini ?

Adrian

On Jan 2, 2009, at 9:33 AM, Jun.Wen wrote:

Hi, All, Happy new year to all the team here.
 
Please help me to figure out what is going wrong with my openxcap. Thanks in advance.
 
I've built up openxcap in debian according to the installation guide and the it works as followings info from error.log.
-------------------------------------------------------------------------------------------------------------------------------
2009-01-02 02:56:26-0500 [-] Starting OpenXCAP 1.0.6
2009-01-02 02:56:37-0500 [-] Supported Root URIs: http://192.168.10.10/xcap-root
2009-01-02 02:56:39-0500 [-] Certificate file 'tls/server.crt' could not be loaded: File 'tls/server.crt' does not exist
2009-01-02 02:56:39-0500 [-] Private key file 'tls/server.key' could not be loaded: File 'tls/server.key' does not exist
2009-01-02 02:56:39-0500 [-] Trusted peers: 192.168.10.0/24, 127.0.0.1
2009-01-02 02:56:39-0500 [-] xcap.server.HTTPFactory starting on 80
--------------------------------------------------------------------------------------------------------------------------------
 
The openxcap server is configured to domain 192.168.10.10 ( local server static IP address ). I also created a test account [hidden email] with pwd 123 by python add-openxcap-user.py in scripts.  While when I tried the python-xcapclient to put a document to the openxcap server, I always encountered "401 Unauthorized" for following details -
-----------------------------------------------------------------------------------------------------------------------------------
xcap:/opt/python-xcaplib/examples# xcapclient -i pres-rules.xml put
put http://192.168.10.10/xcap-root/pres-rules/users/sip:alice@192.168.10.10/index
401 Unauthorized
content-type: text/html
content-length: 141
<html><head><title>Unauthorized</title></head><body><h1>Unauthorized</h1><p>You are not authorized to access this resource.</p></body></html>
-----------------------------------------------------------------------------------------------------------------------------------
 
Please refer the the access.log and it seems something related my domain settings.
 
-----------------------------------------------------------------------------------------------------------------------------------
2009-01-01 08:41:08-0500 [-] 192.168.10.10 'PUT /xcap-root/pres-rules/users/<a href="sip:alice@192.168.10.10/index">sip:alice@192.168.10.10/index HTTP/1.1' 401 0 141 'python-xcaplib/1.0.8' -
        REQUEST headers:
                Accept-Encoding: identity
                User-Agent: python-xcaplib/1.0.8
                Host: 192.168.10.10
                Content-Type: application/x-www-form-urlencoded
                Authorization: Basic YWxpY2U6MTIz
        RESPONSE headers:
                Date: Thu, 01 Jan 2009 13:41:08 GMT
                Content-Type: text/html
                WWW-Authenticate: basic realm="192.168.10.10"
                Server: OpenXCAP/1.0.6
-----------------------------------------------------------------------------------------------------------------------------------
 
Regards
 
Jun
 
 
 
 
 
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users





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

Re: OpenXCAP Put 401 Unauthorized

Jun.Wen
I've created an user in another opensips server and confirmed that user in the table of subscriber of opensips database. How can I let OpenXCAP to visit the mysql of OpenSIPS ?
 
The following is part of my OpenXCAP config.ini :
-------------------------------------------------------------------------
[Server]
address = 0.0.0.0
port = 80
backend = OpenSER
[Database]
authentication_db_uri = mysql://root:openxcap@localhost/openxcap
storage_db_uri = mysql://root:openxcap@localhost/openxcap
subscriber_table = subscriber
xcap_table = xcap

[OpenSER]

xmlrpc_url = http://osips.mylab.net:8080
-------------------------------------------------------------------------
 


From: Adrian Georgescu [mailto:[hidden email]]
Sent: 2009年1月7日 15:49
To: Jun.Wen
Cc: [hidden email]
Subject: Re: [OpenSIPS-Users] OpenXCAP Put 401 Unauthorized

The database is commonly shared between the two servers. So you can create an user with opensipsctl command on the sip machine as long as OpenXCAP is using the same database as OpenSIPS.
 
Adrian

On Jan 7, 2009, at 8:29 AM, Jun.Wen wrote:

I did not install opensips with openxcap in same server, is it a must or not ?


From: Adrian Georgescu [[hidden email]]
Sent: 2009年1月7日 14:49
To: Jun.Wen
Cc: [hidden email]
Subject: Re: [OpenSIPS-Users] OpenXCAP Put 401 Unauthorized

Did you try opensipsctl command? 

Adrian

On Jan 7, 2009, at 5:33 AM, Jun.Wen wrote:

Adrian,
 
I guess my problem is I did not successfully created users in xcap server by the scripts of "python add-openxcap-user.py". Inside the table of subscriber of mysql, there is no any user record existed.
 
Any tips to create user inside xcap server ?
 
Regards
 
Jun


From: Adrian Georgescu [[hidden email]]
Sent: 2009年1月3日 1:08
To: Jun.Wen
Cc: [hidden email]
Subject: Re: [OpenSIPS-Users] OpenXCAP Put 401 Unauthorized

I do not find in your logs what is wrong with your setup, it could be either the client or the server configuration.

Can you try your XCAP client using a SIP account from http://sip2sip.info see if that works?

Regards,
Adrian


On Jan 2, 2009, at 2:39 PM, Jun.Wen wrote:

It looks like this -
 
-------------------------------------------------------------------------
xcap:~/.sipclient# cat config.ini
# rename this file to 'config.ini' and copy it in ~/.sipclient/ directory
 
# this will be the default account used by xcapclient
[Account]
sip_address = [hidden email]
password = 123
xcap_root = http://192.168.10.10/xcap-root
 
# this will be used when -a bob command-line switch is provided
[Account_bob]
sip_address = [hidden email]
password = 123
xcap_root = http://192.168.10.10/xcap-root


From: Adrian Georgescu [[hidden email]]
Sent: 2009年1月2日 21:35
To: Jun.Wen
Subject: Re: [OpenSIPS-Users] OpenXCAP Put 401 Unauthorized

What is the content of your xcapclient configuration file .sipclient/config.ini ?

Adrian

On Jan 2, 2009, at 9:33 AM, Jun.Wen wrote:

Hi, All, Happy new year to all the team here.
 
Please help me to figure out what is going wrong with my openxcap. Thanks in advance.
 
I've built up openxcap in debian according to the installation guide and the it works as followings info from error.log.
-------------------------------------------------------------------------------------------------------------------------------
2009-01-02 02:56:26-0500 [-] Starting OpenXCAP 1.0.6
2009-01-02 02:56:37-0500 [-] Supported Root URIs: http://192.168.10.10/xcap-root
2009-01-02 02:56:39-0500 [-] Certificate file 'tls/server.crt' could not be loaded: File 'tls/server.crt' does not exist
2009-01-02 02:56:39-0500 [-] Private key file 'tls/server.key' could not be loaded: File 'tls/server.key' does not exist
2009-01-02 02:56:39-0500 [-] Trusted peers: 192.168.10.0/24, 127.0.0.1
2009-01-02 02:56:39-0500 [-] xcap.server.HTTPFactory starting on 80
--------------------------------------------------------------------------------------------------------------------------------
 
The openxcap server is configured to domain 192.168.10.10 ( local server static IP address ). I also created a test account [hidden email] with pwd 123 by python add-openxcap-user.py in scripts.  While when I tried the python-xcapclient to put a document to the openxcap server, I always encountered "401 Unauthorized" for following details -
-----------------------------------------------------------------------------------------------------------------------------------
xcap:/opt/python-xcaplib/examples# xcapclient -i pres-rules.xml put
put http://192.168.10.10/xcap-root/pres-rules/users/sip:alice@192.168.10.10/index
401 Unauthorized
content-type: text/html
content-length: 141
<html><head><title>Unauthorized</title></head><body><h1>Unauthorized</h1><p>You are not authorized to access this resource.</p></body></html>
-----------------------------------------------------------------------------------------------------------------------------------
 
Please refer the the access.log and it seems something related my domain settings.
 
-----------------------------------------------------------------------------------------------------------------------------------
2009-01-01 08:41:08-0500 [-] 192.168.10.10 'PUT /xcap-root/pres-rules/users/<A href="sip:alice@192.168.10.10/index">sip:alice@192.168.10.10/index HTTP/1.1' 401 0 141 'python-xcaplib/1.0.8' -
        REQUEST headers:
                Accept-Encoding: identity
                User-Agent: python-xcaplib/1.0.8
                Host: 192.168.10.10
                Content-Type: application/x-www-form-urlencoded
                Authorization: Basic YWxpY2U6MTIz
        RESPONSE headers:
                Date: Thu, 01 Jan 2009 13:41:08 GMT
                Content-Type: text/html
                WWW-Authenticate: basic realm="192.168.10.10"
                Server: OpenXCAP/1.0.6
-----------------------------------------------------------------------------------------------------------------------------------
 
Regards
 
Jun
 
 
 
 
 
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users





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

Re: OpenXCAP Put 401 Unauthorized

Adrian Georgescu
What exactly do you mean, can you re-phase the question?

Adrian


On Jan 7, 2009, at 2:17 PM, Jun.Wen wrote:

I've created an user in another opensips server and confirmed that user in the table of subscriber of opensips database. How can I let OpenXCAP to visit the mysql of OpenSIPS ?
 
The following is part of my OpenXCAP config.ini :
-------------------------------------------------------------------------
[Server]
address = 0.0.0.0
port = 80
backend = OpenSER
[Database]
authentication_db_uri = mysql://root:openxcap@localhost/openxcap
storage_db_uri = mysql://root:openxcap@localhost/openxcap
subscriber_table = subscriber
xcap_table = xcap

[OpenSER]

xmlrpc_url = http://osips.mylab.net:8080
-------------------------------------------------------------------------
 


From: Adrian Georgescu [[hidden email]]
Sent: 2009年1月7日 15:49
To: Jun.Wen
Cc: [hidden email]
Subject: Re: [OpenSIPS-Users] OpenXCAP Put 401 Unauthorized

The database is commonly shared between the two servers. So you can create an user with opensipsctl command on the sip machine as long as OpenXCAP is using the same database as OpenSIPS.
 
Adrian

On Jan 7, 2009, at 8:29 AM, Jun.Wen wrote:

I did not install opensips with openxcap in same server, is it a must or not ?


From: Adrian Georgescu [[hidden email]]
Sent: 2009年1月7日 14:49
To: Jun.Wen
Cc: [hidden email]
Subject: Re: [OpenSIPS-Users] OpenXCAP Put 401 Unauthorized

Did you try opensipsctl command? 

Adrian

On Jan 7, 2009, at 5:33 AM, Jun.Wen wrote:

Adrian,
 
I guess my problem is I did not successfully created users in xcap server by the scripts of "python add-openxcap-user.py". Inside the table of subscriber of mysql, there is no any user record existed.
 
Any tips to create user inside xcap server ?
 
Regards
 
Jun


From: Adrian Georgescu [[hidden email]]
Sent: 2009年1月3日 1:08
To: Jun.Wen
Cc: [hidden email]
Subject: Re: [OpenSIPS-Users] OpenXCAP Put 401 Unauthorized

I do not find in your logs what is wrong with your setup, it could be either the client or the server configuration.

Can you try your XCAP client using a SIP account from http://sip2sip.info see if that works?

Regards,
Adrian


On Jan 2, 2009, at 2:39 PM, Jun.Wen wrote:

It looks like this -
 
-------------------------------------------------------------------------
xcap:~/.sipclient# cat config.ini
# rename this file to 'config.ini' and copy it in ~/.sipclient/ directory
 
# this will be the default account used by xcapclient
[Account]
sip_address = [hidden email]
password = 123
xcap_root = http://192.168.10.10/xcap-root
 
# this will be used when -a bob command-line switch is provided
[Account_bob]
sip_address = [hidden email]
password = 123
xcap_root = http://192.168.10.10/xcap-root


From: Adrian Georgescu [[hidden email]]
Sent: 2009年1月2日 21:35
To: Jun.Wen
Subject: Re: [OpenSIPS-Users] OpenXCAP Put 401 Unauthorized

What is the content of your xcapclient configuration file .sipclient/config.ini ?

Adrian

On Jan 2, 2009, at 9:33 AM, Jun.Wen wrote:

Hi, All, Happy new year to all the team here.
 
Please help me to figure out what is going wrong with my openxcap. Thanks in advance.
 
I've built up openxcap in debian according to the installation guide and the it works as followings info from error.log.
-------------------------------------------------------------------------------------------------------------------------------
2009-01-02 02:56:26-0500 [-] Starting OpenXCAP 1.0.6
2009-01-02 02:56:37-0500 [-] Supported Root URIs: http://192.168.10.10/xcap-root
2009-01-02 02:56:39-0500 [-] Certificate file 'tls/server.crt' could not be loaded: File 'tls/server.crt' does not exist
2009-01-02 02:56:39-0500 [-] Private key file 'tls/server.key' could not be loaded: File 'tls/server.key' does not exist
2009-01-02 02:56:39-0500 [-] Trusted peers: 192.168.10.0/24, 127.0.0.1
2009-01-02 02:56:39-0500 [-] xcap.server.HTTPFactory starting on 80
--------------------------------------------------------------------------------------------------------------------------------
 
The openxcap server is configured to domain 192.168.10.10 ( local server static IP address ). I also created a test account [hidden email] with pwd 123 by python add-openxcap-user.py in scripts.  While when I tried the python-xcapclient to put a document to the openxcap server, I always encountered "401 Unauthorized" for following details -
-----------------------------------------------------------------------------------------------------------------------------------
xcap:/opt/python-xcaplib/examples# xcapclient -i pres-rules.xml put
put http://192.168.10.10/xcap-root/pres-rules/users/sip:alice@192.168.10.10/index
401 Unauthorized
content-type: text/html
content-length: 141
<html><head><title>Unauthorized</title></head><body><h1>Unauthorized</h1><p>You are not authorized to access this resource.</p></body></html>
-----------------------------------------------------------------------------------------------------------------------------------
 
Please refer the the access.log and it seems something related my domain settings.
 
-----------------------------------------------------------------------------------------------------------------------------------
2009-01-01 08:41:08-0500 [-] 192.168.10.10 'PUT /xcap-root/pres-rules/users/<a href="sip:alice@192.168.10.10/index">sip:alice@192.168.10.10/index HTTP/1.1' 401 0 141 'python-xcaplib/1.0.8' -
        REQUEST headers:
                Accept-Encoding: identity
                User-Agent: python-xcaplib/1.0.8
                Host: 192.168.10.10
                Content-Type: application/x-www-form-urlencoded
                Authorization: Basic YWxpY2U6MTIz
        RESPONSE headers:
                Date: Thu, 01 Jan 2009 13:41:08 GMT
                Content-Type: text/html
                WWW-Authenticate: basic realm="192.168.10.10"
                Server: OpenXCAP/1.0.6
-----------------------------------------------------------------------------------------------------------------------------------
 
Regards
 
Jun
 
 
 
 
 
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users






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

Re: OpenXCAP Put 401 Unauthorized

Jun.Wen
Adrian,
 
Sorry for my awkward question. I mean I've created a test user inside another machine of OpenSIPS. How can I configure OpenXCAP using the same database as OpenSIPS. I posted my config.ini of OpenXCAP here if you can see the that is correct or now.
 
Regards
 
Jun




CC: [hidden email]
From: [hidden email]
To: [hidden email]
Date: Wed, 7 Jan 2009 16:42:51 +0100
Subject: Re: [OpenSIPS-Users] OpenXCAP Put 401 Unauthorized

What exactly do you mean, can you re-phase the question?

Adrian


On Jan 7, 2009, at 2:17 PM, Jun.Wen wrote:

I've created an user in another opensips server and confirmed that user in the table of subscriber of opensips database. How can I let OpenXCAP to visit the mysql of OpenSIPS ?
 
The following is part of my OpenXCAP config.ini :
-------------------------------------------------------------------------
[Server]
address = 0.0.0.0
port = 80
backend = OpenSER
[Database]
authentication_db_uri = mysql://root:openxcap@localhost/openxcap
storage_db_uri = mysql://root:openxcap@localhost/openxcap
subscriber_table = subscriber
xcap_table = xcap

[OpenSER]

xmlrpc_url = http://osips.mylab.net:8080
-------------------------------------------------------------------------
 


From: Adrian Georgescu [[hidden email]]
Sent: 2009年1月7日 15:49
To: Jun.Wen
Cc: [hidden email]
Subject: Re: [OpenSIPS-Users] OpenXCAP Put 401 Unauthorized

The database is commonly shared between the two servers. So you can create an user with opensipsctl command on the sip machine as long as OpenXCAP is using the same database as OpenSIPS.
 
Adrian

On Jan 7, 2009, at 8:29 AM, Jun.Wen wrote:

I did not install opensips with openxcap in same server, is it a must or not ?


From: Adrian Georgescu [[hidden email]]
Sent: 2009年1月7日 14:49
To: Jun.Wen
Cc: [hidden email]
Subject: Re: [OpenSIPS-Users] OpenXCAP Put 401 Unauthorized

Did you try opensipsctl command? 

Adrian

On Jan 7, 2009, at 5:33 AM, Jun.Wen wrote:

Adrian,
 
I guess my problem is I did not successfully created users in xcap server by the scripts of "python add-openxcap-user.py". Inside the table of subscriber of mysql, there is no any user record existed.
 
Any tips to create user inside xcap server ?
 
Regards
 
Jun


From: Adrian Georgescu [[hidden email]]
Sent: 2009年1月3日 1:08
To: Jun.Wen
Cc: [hidden email]
Subject: Re: [OpenSIPS-Users] OpenXCAP Put 401 Unauthorized

I do not find in your logs what is wrong with your setup, it could be either the client or the server configuration.

Can you try your XCAP client using a SIP account from http://sip2sip.info see if that works?

Regards,
Adrian


On Jan 2, 2009, at 2:39 PM, Jun.Wen wrote:

It looks like this -
 
-------------------------------------------------------------------------
xcap:~/.sipclient# cat config.ini
# rename this file to 'config.ini' and copy it in ~/.sipclient/ directory
 
# this will be the default account used by xcapclient
[Account]
sip_address = [hidden email]
password = 123
xcap_root = http://192.168.10.10/xcap-root
 
# this will be used when -a bob command-line switch is provided
[Account_bob]
sip_address = [hidden email]
password = 123
xcap_root = http://192.168.10.10/xcap-root


From: Adrian Georgescu [[hidden email]]
Sent: 2009年1月2日 21:35
To: Jun.Wen
Subject: Re: [OpenSIPS-Users] OpenXCAP Put 401 Unauthorized

What is the content of your xcapclient configuration file .sipclient/config.ini ?

Adrian

On Jan 2, 2009, at 9:33 AM, Jun.Wen wrote:

Hi, All, Happy new year to all the team here.
 
Please help me to figure out what is going wrong with my openxcap. Thanks in advance.
 
I've built up openxcap in debian according to the installation guide and the it works as followings info from error.log.
-------------------------------------------------------------------------------------------------------------------------------
2009-01-02 02:56:26-0500 [-] Starting OpenXCAP 1.0.6
2009-01-02 02:56:37-0500 [-] Supported Root URIs: http://192.168.10.10/xcap-root
2009-01-02 02:56:39-0500 [-] Certificate file 'tls/server.crt' could not be loaded: File 'tls/server.crt' does not exist
2009-01-02 02:56:39-0500 [-] Private key file 'tls/server.key' could not be loaded: File 'tls/server.key' does not exist
2009-01-02 02:56:39-0500 [-] Trusted peers: 192.168.10.0/24, 127.0.0.1
2009-01-02 02:56:39-0500 [-] xcap.server.HTTPFactory starting on 80
--------------------------------------------------------------------------------------------------------------------------------
 
The openxcap server is configured to domain 192.168.10.10 ( local server static IP address ). I also created a test account [hidden email] with pwd 123 by python add-openxcap-user.py in scripts.  While when I tried the python-xcapclient to put a document to the openxcap server, I always encountered "401 Unauthorized" for following details -
-----------------------------------------------------------------------------------------------------------------------------------
xcap:/opt/python-xcaplib/examples# xcapclient -i pres-rules.xml put
put http://192.168.10.10/xcap-root/pres-rules/users/sip:alice@192.168.10.10/index
401 Unauthorized
content-type: text/html
content-length: 141
<html><head><title>Unauthorized</title></head><body><h1>Unauthorized</h1><p>You are not authorized to access this resource.</p></body></html>
-----------------------------------------------------------------------------------------------------------------------------------
 
Please refer the the access.log and it seems something related my domain settings.
 
-----------------------------------------------------------------------------------------------------------------------------------
2009-01-01 08:41:08-0500 [-] 192.168.10.10 'PUT /xcap-root/pres-rules/users/sip:alice@192.168.10.10/index HTTP/1.1' 401 0 141 'python-xcaplib/1.0.8' -
        REQUEST headers:
                Accept-Encoding: identity
                User-Agent: python-xcaplib/1.0.8
                Host: 192.168.10.10
                Content-Type: application/x-www-form-urlencoded
                Authorization: Basic YWxpY2U6MTIz
        RESPONSE headers:
                Date: Thu, 01 Jan 2009 13:41:08 GMT
                Content-Type: text/html
                WWW-Authenticate: basic realm="192.168.10.10"
                Server: OpenXCAP/1.0.6
-----------------------------------------------------------------------------------------------------------------------------------
 
Regards
 
Jun
 
 
 
 
 
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users







MSN保护盾,十八般武艺保障MSN安全! 现在就下载!
_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: OpenXCAP Put 401 Unauthorized

Adrian Georgescu
By setting:

authentication_db_uri = mysql://root:openxcap@localhost/openxcap
storage_db_uri = mysql://root:openxcap@localhost/openxcap

To your opensips database.

Adrian

On Jan 9, 2009, at 5:13 AM, wenjun wrote:

Adrian,
 
Sorry for my awkward question. I mean I've created a test user inside another machine of OpenSIPS. How can I configure OpenXCAP using the same database as OpenSIPS. I posted my config.ini of OpenXCAP here if you can see the that is correct or now.
 
Regards
 
Jun




CC: [hidden email]
From: [hidden email]
To: [hidden email]
Date: Wed, 7 Jan 2009 16:42:51 +0100
Subject: Re: [OpenSIPS-Users] OpenXCAP Put 401 Unauthorized

What exactly do you mean, can you re-phase the question?

Adrian


On Jan 7, 2009, at 2:17 PM, Jun.Wen wrote:

I've created an user in another opensips server and confirmed that user in the table of subscriber of opensips database. How can I let OpenXCAP to visit the mysql of OpenSIPS ?
 
The following is part of my OpenXCAP config.ini :
-------------------------------------------------------------------------
[Server]
address = 0.0.0.0
port = 80
backend = OpenSER
[Database]
authentication_db_uri = mysql://root:openxcap@localhost/openxcap
storage_db_uri = mysql://root:openxcap@localhost/openxcap
subscriber_table = subscriber
xcap_table = xcap

[OpenSER]

xmlrpc_url = http://osips.mylab.net:8080
-------------------------------------------------------------------------
 


From: Adrian Georgescu [[hidden email]] 
Sent: 2009年1月7日 15:49
To: Jun.Wen
Cc: [hidden email]
Subject: Re: [OpenSIPS-Users] OpenXCAP Put 401 Unauthorized

The database is commonly shared between the two servers. So you can create an user with opensipsctl command on the sip machine as long as OpenXCAP is using the same database as OpenSIPS.
 
Adrian

On Jan 7, 2009, at 8:29 AM, Jun.Wen wrote:

I did not install opensips with openxcap in same server, is it a must or not ?


From: Adrian Georgescu [[hidden email]] 
Sent: 2009年1月7日 14:49
To: Jun.Wen
Cc: [hidden email]
Subject: Re: [OpenSIPS-Users] OpenXCAP Put 401 Unauthorized

Did you try opensipsctl command? 

Adrian

On Jan 7, 2009, at 5:33 AM, Jun.Wen wrote:

Adrian,
 
I guess my problem is I did not successfully created users in xcap server by the scripts of "python add-openxcap-user.py". Inside the table of subscriber of mysql, there is no any user record existed.
 
Any tips to create user inside xcap server ?
 
Regards
 
Jun


From: Adrian Georgescu [[hidden email]] 
Sent: 2009年1月3日 1:08
To: Jun.Wen
Cc: [hidden email]
Subject: Re: [OpenSIPS-Users] OpenXCAP Put 401 Unauthorized

I do not find in your logs what is wrong with your setup, it could be either the client or the server configuration.

Can you try your XCAP client using a SIP account fromhttp://sip2sip.info see if that works?

Regards,
Adrian


On Jan 2, 2009, at 2:39 PM, Jun.Wen wrote:

It looks like this -
 
-------------------------------------------------------------------------
xcap:~/.sipclient# cat config.ini 
# rename this file to 'config.ini' and copy it in ~/.sipclient/ directory
 
# this will be the default account used by xcapclient
[Account]
sip_address = [hidden email]
password = 123
xcap_root = http://192.168.10.10/xcap-root
 
# this will be used when -a bob command-line switch is provided
[Account_bob]
sip_address = [hidden email]
password = 123
xcap_root = http://192.168.10.10/xcap-root


From: Adrian Georgescu [[hidden email]] 
Sent: 2009年1月2日 21:35
To: Jun.Wen
Subject: Re: [OpenSIPS-Users] OpenXCAP Put 401 Unauthorized

What is the content of your xcapclient configuration file .sipclient/config.ini ?

Adrian

On Jan 2, 2009, at 9:33 AM, Jun.Wen wrote:

Hi, All, Happy new year to all the team here.
 
Please help me to figure out what is going wrong with my openxcap. Thanks in advance.
 
I've built up openxcap in debian according to the installation guide and the it works as followings info from error.log.
-------------------------------------------------------------------------------------------------------------------------------
2009-01-02 02:56:26-0500 [-] Starting OpenXCAP 1.0.6
2009-01-02 02:56:37-0500 [-] Supported Root URIs:http://192.168.10.10/xcap-root
2009-01-02 02:56:39-0500 [-] Certificate file 'tls/server.crt' could not be loaded: File 'tls/server.crt' does not exist
2009-01-02 02:56:39-0500 [-] Private key file 'tls/server.key' could not be loaded: File 'tls/server.key' does not exist
2009-01-02 02:56:39-0500 [-] Trusted peers: 192.168.10.0/24, 127.0.0.1
2009-01-02 02:56:39-0500 [-] xcap.server.HTTPFactory starting on 80
--------------------------------------------------------------------------------------------------------------------------------
 
The openxcap server is configured to domain 192.168.10.10 ( local server static IP address ). I also created a test account[hidden email] with pwd 123 by python add-openxcap-user.py in scripts.  While when I tried the python-xcapclient to put a document to the openxcap server, I always encountered "401 Unauthorized" for following details -
-----------------------------------------------------------------------------------------------------------------------------------
xcap:/opt/python-xcaplib/examples# xcapclient -i pres-rules.xml put
put http://192.168.10.10/xcap-root/pres-rules/users/sip:alice@192.168.10.10/index
401 Unauthorized
content-type: text/html
content-length: 141
<html><head><title>Unauthorized</title></head><body><h1>Unauthorized</h1><p>You are not authorized to access this resource.</p></body></html>
-----------------------------------------------------------------------------------------------------------------------------------
 
Please refer the the access.log and it seems something related my domain settings.
 
-----------------------------------------------------------------------------------------------------------------------------------
2009-01-01 08:41:08-0500 [-] 192.168.10.10 'PUT /xcap-root/pres-rules/users/sip:alice@192.168.10.10/index HTTP/1.1' 401 0 141 'python-xcaplib/1.0.8' -
        REQUEST headers:
                Accept-Encoding: identity
                User-Agent: python-xcaplib/1.0.8
                Host: 192.168.10.10
                Content-Type: application/x-www-form-urlencoded
                Authorization: Basic YWxpY2U6MTIz
        RESPONSE headers:
                Date: Thu, 01 Jan 2009 13:41:08 GMT
                Content-Type: text/html
                WWW-Authenticate: basic realm="192.168.10.10"
                Server: OpenXCAP/1.0.6
-----------------------------------------------------------------------------------------------------------------------------------
 
Regards
 
Jun
 
 
 
 
 
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users







MSN保护盾,十八般武艺保障MSN安全! 现在就下载!


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