majidiust / boghe

Automatically exported from code.google.com/p/boghe
0 stars 0 forks source link

Upon initialization Boghe client doesn't add an XCAP entry #151

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Sign in using the client
2. Check the trace between the client and server

I have Boghe v 2.0.97.687 running. I have presence enabled with the "Enable RLS 
when XCAP is enabled" checkbox checked. 

On the server side I have authentication/presence and RLS with integrated XCAP. 

When I sign in using the client I see the following SIP messages from the 
client to the server per the attached trace:
REGISTER, SUBSCRIBE, PUBLISH.
However, I do not see any xhttp requests for the xml data.
Is this the expected behavior of the client? 

What is the expected output? What do you see instead?
Expect a HTTP Get of the XCAP data. But it doesn't seem to be happening.

What version of the product are you using? On what operating system?
Boghe v 2.0.97.687 on Windows 7

Please provide any additional information below.

Original issue reported on code.google.com by sangeeta...@gmail.com on 27 Sep 2012 at 8:12

Attachments:

GoogleCodeExporter commented 9 years ago
Shouldn't there be a XCAP capability request from the client to the server. Am 
I missing something in my understanding here. 

Original comment by sangeeta...@gmail.com on 27 Sep 2012 at 8:29

GoogleCodeExporter commented 9 years ago
Probably your xcap connection parameters are not correct.
There is no SUBSCRIBE for the presence and it looks like the client fail to 
connect to your xcap server.
You should attach the log file: C:\Users\<user 
id>\AppData\Roaming\Doubango\Boghe IMS Client

Original comment by boss...@yahoo.fr on 27 Sep 2012 at 9:42

GoogleCodeExporter commented 9 years ago
Yes you are right...it looks like the server is sending back 401 Unauthorized 
because of a stale nonce. But the second time around it seems like it's failing 
authorization for another reason. I'll play with the server side a bit more to 
see if I can get it working.

Thanks for your help

Original comment by sangeeta...@gmail.com on 28 Sep 2012 at 4:06

GoogleCodeExporter commented 9 years ago
I got around the authentication issue...however, now I see the following errors 
in the client log file:
2012-09-28 11:17:59,140 DEBUG [7] BogheCore.Xcap.MyXcapStack:0 - 
XCAP-ROOT=http://<myIP>:5060/xcap-root
2012-09-28 11:17:59,356 DEBUG [7] BogheCore.Services.Impl.XcapService:0 - 
Downloading 'org.openmobilealliance.xcap-directory' document...
2012-09-28 11:17:59,370 ERROR [7] BogheCore.Services.Impl.XcapService:0 - 
Failed to handle 'org.openmobilealliance.xcap-directory' document
2012-09-28 11:17:59,370 DEBUG [7] BogheCore.Services.Impl.XcapService:0 - 
Downloading 'resource-lists' document...
2012-09-28 11:17:59,651 DEBUG [7] BogheCore.Services.Impl.XcapService:0 - 
Downloading 'rls-services' document...
2012-09-28 11:17:59,821 ERROR [7] BogheCore.Services.Impl.XcapService:0 - 
Failed to handle 'resource-lists' document
2012-09-28 11:17:59,821 ERROR [7] BogheCore.Services.Impl.XcapService:0 - 
'org.openmobilealliance.pres-content' not supported
2012-09-28 11:18:00,311 INFO  [5] BogheCore.Services.Impl.SipService:0 - 
OnDialogEvent (Dialog connecting)
2012-09-28 11:18:00,324 INFO  [5] BogheCore.Services.Impl.SipService:0 - 
OnDialogEvent (Dialog connected)
2012-09-28 11:18:01,339 DEBUG [9] 
BogheCore.Services.Impl.XmlConfigurationService:0 - Saving configuration...

This is what I am sending:
"<?xml version='1.0' encoding='UTF-8'?>
<xcap-caps xmlns='urn:ietf:params:xml:ns:xcap-caps'>
  <auids>
    <auid>xcap-caps</auid>
    <auid>resource-lists</auid>
    <auid>rls-services</auid>
    <auid>org.openmobilealliance.xcap-directory</auid>
    <auid>pidf-manipulation</auid>
    <auid>pres-rules</auid>
  </auids>
  <extensions>
  </extensions>
  <namespaces>
    <namespace>urn:ietf:params:xml:ns:xcap-caps</namespace>
    <namespace>urn:ietf:params:xml:ns:xcap-error</namespace>
    <namespace>urn:ietf:params:xml:ns:resource-lists</namespace>
    <namespace>urn:ietf:params:xml:ns:rls-services</namespace>
    <namespace>urn:oma:params:ns:resource-list:oma-uriusage</namespace>
    <namespace>urn:ietf:params:xml:ns:pidf</namespace>
    <namespace>urn:ietf:params:xml:ns:pres-rules</namespace>
  </namespaces>
</xcap-caps>";

Not sure what the errors mean looking at the Boghe source code. Let me know if 
what I am sending as a response to the capabilities request is not in 
compliance with the code. Per the server documentation this should work. 

Original comment by sangeeta...@gmail.com on 28 Sep 2012 at 7:23

GoogleCodeExporter commented 9 years ago
Hello All,
   Today with a simple server configuration to use presence services with integrated XCAP, I see the following error on the client side:
2012-10-01 13:01:12,535 DEBUG [1] BogheApp.App:0 - 
====================================================
2012-10-01 13:01:12,549 DEBUG [1] BogheApp.App:0 - ======Starting Boghe - 
IMS/RCS Client v2.0.97.687 ====
2012-10-01 13:01:12,549 DEBUG [1] BogheApp.App:0 - 
====================================================
2012-10-01 13:01:12,553 DEBUG [1] BogheApp.Services.Impl.Win32ServiceManager:0 
- Start Service Manager
2012-10-01 13:01:12,669 DEBUG [1] 
BogheCore.Services.Impl.XmlConfigurationService:0 - Loading XML configuration 
from D:\User-Profiles\sshah7\AppData\Roaming\Doubango\Boghe IMS 
Client\configuration.xml
2012-10-01 13:01:13,004 DEBUG [3] BogheCore.Services.Impl.HistoryService:0 - 
Loading history from D:\User-Profiles\sshah7\AppData\Roaming\Doubango\Boghe IMS 
Client\history.xml
2012-10-01 13:01:15,835 DEBUG [5] 
BogheCore.Services.Impl.XmlConfigurationService:0 - Saving configuration...
2012-10-01 13:01:22,424 INFO  [1] BogheCore.Services.Impl.SipService:0 - 
realm='10.50.251.12', impu='sip:8475551003@10.50.251.12', 
impi='8475551003@10.50.251.12', local_ip='', local_port='0'
2012-10-01 13:01:22,435 DEBUG [1] BogheCore.Services.Impl.SipService:0 - STUN=no
2012-10-01 13:01:22,436 DEBUG [1] BogheCore.Services.Impl.SipService:0 - 
pcscf-host='10.50.251.12', pcscf-port='5060', transport='TCP', ipversion='IPv4'
2012-10-01 13:01:22,602 INFO  [6] BogheCore.Services.Impl.SipService:0 - 
OnDialogEvent (Dialog connecting)
2012-10-01 13:01:22,605 INFO  [6] BogheCore.Services.Impl.SipService:0 - 
OnDialogEvent ((un)REGISTER request successfully sent.)
2012-10-01 13:01:22,605 INFO  [6] BogheCore.Services.Impl.SipService:0 - 
OnDialogEvent (Dialog connected)
2012-10-01 13:01:22,611 DEBUG [8] BogheCore.Xcap.MyXcapStack:0 - 
XCAP-ROOT=http://10.50.251.12:5060/xcap-root
2012-10-01 13:01:22,617 DEBUG [7] BogheCore.Services.Impl.SipService:0 - Post 
Registration Operations
2012-10-01 13:01:22,618 DEBUG [7] BogheCore.Services.Impl.SipService:0 - 
Subscribe to 'reg' event package
2012-10-01 13:01:22,621 DEBUG [7] BogheCore.Services.Impl.SipService:0 - 
Subscribe to 'winfo' event package
2012-10-01 13:01:22,626 INFO  [6] BogheCore.Services.Impl.SipService:0 - 
OnDialogEvent (Dialog connecting)
2012-10-01 13:01:22,630 INFO  [6] BogheCore.Services.Impl.SipService:0 - 
OnDialogEvent (Dialog connecting)
2012-10-01 13:01:22,660 INFO  [6] BogheCore.Services.Impl.SipService:0 - 
OnDialogEvent (Bad Event)
2012-10-01 13:01:22,660 INFO  [6] BogheCore.Services.Impl.SipService:0 - 
OnDialogEvent (Dialog connected)
2012-10-01 13:01:22,874 WARN  [8] BogheCore.Services.Impl.XcapService:0 - 
'org.openmobilealliance.xcap-directory' not supported
2012-10-01 13:01:22,875 DEBUG [8] BogheCore.Services.Impl.XcapService:0 - 
Downloading 'resource-lists' document...
2012-10-01 13:01:23,172 DEBUG [8] BogheCore.Services.Impl.XcapService:0 - 
Downloading 'rls-services' document...
2012-10-01 13:01:23,354 ERROR [8] BogheCore.Services.Impl.XcapService:0 - 
'org.openmobilealliance.pres-content' not supported
2012-10-01 13:01:23,355 INFO  [6] BogheCore.Services.Impl.SipService:0 - 
OnDialogEvent (Dialog connecting)
2012-10-01 13:01:23,357 ERROR [12] BogheCore.Services.Impl.SipService:0 - 
***ERROR: function: "tsip_header_To_parse()" 
file: ".\src\headers\tsip_header_To.c" 
line: "887" 
MSG: Failed to parse 'To' header.

2012-10-01 13:01:23,357 ERROR [12] BogheCore.Services.Impl.SipService:0 - 
***ERROR: function: "tsip_transport_layer_stream_cb()" 
file: ".\src\transports\tsip_transport_layer.c" 
line: "203" 
MSG: Failed to parse SIP message

2012-10-01 13:01:23,827 INFO  [6] BogheCore.Services.Impl.SipService:0 - 
OnDialogEvent (Dialog connecting)
2012-10-01 13:01:23,834 INFO  [6] BogheCore.Services.Impl.SipService:0 - 
OnDialogEvent (Dialog connected)
2012-10-01 13:01:24,928 DEBUG [5] 
BogheCore.Services.Impl.XmlConfigurationService:0 - Saving configuration...

The client does come up and seems to be able to connect to XCAP. Just not sure 
about the two parsing errors.

Any help is appreciated. I can also attach a trace if necessary.

Original comment by sangeeta...@gmail.com on 1 Oct 2012 at 6:04

GoogleCodeExporter commented 9 years ago
For sure the trace is required

Original comment by boss...@yahoo.fr on 2 Oct 2012 at 7:48

GoogleCodeExporter commented 9 years ago
Alright so here's the requested trace. This is when Boghe comes up. It seems 
like it can get all the necessary XCAP information. However, the 
status/presence of the contacts never becomes available on the client. The 
status never changes from pending to active. I know the contact's presentity 
information is on the server.

Here are the attached boghe logs and the corresponding PCAP file. It's odd that 
boghe sends so many subscribe requests with no address in the request line. 
Also in the log file it keeps complaining about failing to parse the "To" 
header. I can't figure out which message it's complaining about. Is there a way 
to print out the header that it's complaining about.

Contents of log file:
2012-10-03 15:15:13,431 DEBUG [1] BogheApp.App:0 - ======Starting Boghe - 
IMS/RCS Client v2.0.97.687 ====
2012-10-03 15:15:13,431 DEBUG [1] BogheApp.App:0 - 
====================================================
2012-10-03 15:15:13,435 DEBUG [1] BogheApp.Services.Impl.Win32ServiceManager:0 
- Start Service Manager
2012-10-03 15:15:13,550 DEBUG [1] 
BogheCore.Services.Impl.XmlConfigurationService:0 - Loading XML configuration 
from D:\User-Profiles\sshah7\AppData\Roaming\Doubango\Boghe IMS 
Client\configuration.xml
2012-10-03 15:15:13,897 DEBUG [3] BogheCore.Services.Impl.HistoryService:0 - 
Loading history from D:\User-Profiles\sshah7\AppData\Roaming\Doubango\Boghe IMS 
Client\history.xml
2012-10-03 15:15:16,406 INFO  [1] BogheCore.Services.Impl.SipService:0 - 
realm='10.50.251.12', impu='sip:8475551001@10.50.251.12', 
impi='8475551001@10.50.251.12', local_ip='', local_port='0'
2012-10-03 15:15:16,425 DEBUG [1] BogheCore.Services.Impl.SipService:0 - STUN=no
2012-10-03 15:15:16,425 DEBUG [1] BogheCore.Services.Impl.SipService:0 - 
pcscf-host='10.50.251.12', pcscf-port='5060', transport='UDP', ipversion='IPv4'
2012-10-03 15:15:16,597 INFO  [5] BogheCore.Services.Impl.SipService:0 - 
OnDialogEvent (Dialog connecting)
2012-10-03 15:15:16,600 INFO  [5] BogheCore.Services.Impl.SipService:0 - 
OnDialogEvent ((un)REGISTER request successfully sent.)
2012-10-03 15:15:16,603 INFO  [5] BogheCore.Services.Impl.SipService:0 - 
OnDialogEvent (Dialog connected)
2012-10-03 15:15:16,603 DEBUG [6] BogheCore.Services.Impl.SipService:0 - Post 
Registration Operations
2012-10-03 15:15:16,604 DEBUG [6] BogheCore.Services.Impl.SipService:0 - 
Subscribe to 'reg' event package
2012-10-03 15:15:16,607 DEBUG [7] BogheCore.Xcap.MyXcapStack:0 - 
XCAP-ROOT=http://10.50.251.12:5060/xcap-root
2012-10-03 15:15:16,612 INFO  [5] BogheCore.Services.Impl.SipService:0 - 
OnDialogEvent (Dialog connecting)
2012-10-03 15:15:16,636 DEBUG [6] BogheCore.Services.Impl.SipService:0 - 
Subscribe to 'winfo' event package
2012-10-03 15:15:16,638 INFO  [5] BogheCore.Services.Impl.SipService:0 - 
OnDialogEvent (Dialog connected)
2012-10-03 15:15:16,638 INFO  [5] BogheCore.Services.Impl.SipService:0 - 
OnDialogEvent (Dialog connecting)
2012-10-03 15:15:16,656 INFO  [5] BogheCore.Services.Impl.SipService:0 - 
OnDialogEvent (Dialog connected)
2012-10-03 15:15:16,882 WARN  [7] BogheCore.Services.Impl.XcapService:0 - 
'org.openmobilealliance.xcap-directory' not supported
2012-10-03 15:15:16,883 DEBUG [7] BogheCore.Services.Impl.XcapService:0 - 
Downloading 'resource-lists' document...
2012-10-03 15:15:17,188 DEBUG [7] BogheCore.Services.Impl.XcapService:0 - 
Downloading 'rls-services' document...
2012-10-03 15:15:17,474 INFO  [5] BogheCore.Services.Impl.SipService:0 - 
OnDialogEvent (Dialog connecting)
2012-10-03 15:15:17,474 DEBUG [7] BogheCore.Services.Impl.XcapService:0 - 
Downloading 'org.openmobilealliance.pres-rules' document...
2012-10-03 15:15:17,477 ERROR [10] BogheCore.Services.Impl.SipService:0 - 
***ERROR: function: "tsip_header_To_parse()" 
file: ".\src\headers\tsip_header_To.c" 
line: "887" 
MSG: Failed to parse 'To' header.

2012-10-03 15:15:17,981 ERROR [10] BogheCore.Services.Impl.SipService:0 - 
***ERROR: function: "tsip_header_To_parse()" 
file: ".\src\headers\tsip_header_To.c" 
line: "887" 
MSG: Failed to parse 'To' header.

2012-10-03 15:15:18,053 INFO  [5] BogheCore.Services.Impl.SipService:0 - 
OnDialogEvent (Dialog connecting)
2012-10-03 15:15:18,060 INFO  [5] BogheCore.Services.Impl.SipService:0 - 
OnDialogEvent (Dialog connected)
2012-10-03 15:15:18,899 DEBUG [11] 
BogheCore.Services.Impl.XmlConfigurationService:0 - Saving configuration...
2012-10-03 15:15:18,978 ERROR [10] BogheCore.Services.Impl.SipService:0 - 
***ERROR: function: "tsip_header_To_parse()" 
file: ".\src\headers\tsip_header_To.c" 
line: "887" 
MSG: Failed to parse 'To' header.

2012-10-03 15:15:20,978 ERROR [10] BogheCore.Services.Impl.SipService:0 - 
***ERROR: function: "tsip_header_To_parse()" 
file: ".\src\headers\tsip_header_To.c" 
line: "887" 
MSG: Failed to parse 'To' header.

2012-10-03 15:15:24,979 ERROR [10] BogheCore.Services.Impl.SipService:0 - 
***ERROR: function: "tsip_header_To_parse()" 
file: ".\src\headers\tsip_header_To.c" 
line: "887" 
MSG: Failed to parse 'To' header.

2012-10-03 15:15:28,981 ERROR [10] BogheCore.Services.Impl.SipService:0 - 
***ERROR: function: "tsip_header_To_parse()" 
file: ".\src\headers\tsip_header_To.c" 
line: "887" 
MSG: Failed to parse 'To' header.

2012-10-03 15:15:32,983 ERROR [10] BogheCore.Services.Impl.SipService:0 - 
***ERROR: function: "tsip_header_To_parse()" 
file: ".\src\headers\tsip_header_To.c" 
line: "887" 
MSG: Failed to parse 'To' header.

2012-10-03 15:15:36,981 ERROR [10] BogheCore.Services.Impl.SipService:0 - 
***ERROR: function: "tsip_header_To_parse()" 
file: ".\src\headers\tsip_header_To.c" 
line: "887" 
MSG: Failed to parse 'To' header.

2012-10-03 15:15:40,982 ERROR [10] BogheCore.Services.Impl.SipService:0 - 
***ERROR: function: "tsip_header_To_parse()" 
file: ".\src\headers\tsip_header_To.c" 
line: "887" 
MSG: Failed to parse 'To' header.

2012-10-03 15:15:44,982 ERROR [10] BogheCore.Services.Impl.SipService:0 - 
***ERROR: function: "tsip_header_To_parse()" 
file: ".\src\headers\tsip_header_To.c" 
line: "887" 
MSG: Failed to parse 'To' header.

Original comment by sangeeta...@gmail.com on 3 Oct 2012 at 8:23

Attachments:

GoogleCodeExporter commented 9 years ago
Anyone have any clue how I can print out the "To" header that Boghe is 
complaining about. Should I post this question on the Doubango user list?

Original comment by sangeeta...@gmail.com on 4 Oct 2012 at 7:57

GoogleCodeExporter commented 9 years ago
Any idea why Boghe is subscribing to event - presence without a to address and 
no address in the request line:

SUBSCRIBE sip: SIP/2.0

Via: SIP/2.0/UDP 10.51.2.181:53560;branch=z9hG4bK22341289;rport

From: <sip:8475551001@10.50.251.12>;tag=22321587

To: <sip:>

Contact: 
<sip:8475551001@10.51.2.181:53560;transport=udp>;+g.oma.sip-im;language="en,fr"

Call-ID: f190503b-9bda-5227-3973-4a9942756ddb

CSeq: 24466 SUBSCRIBE

Expires: 600000

Content-Length: 0

Max-Forwards: 70

Route: <sip:10.50.251.12:5060;lr;transport=udp>

Event: presence

Supported: eventlist

Accept: multipart/related, application/pidf+xml, application/rlmi+xml, 
application/rpid+xml

Allow-Events: refer, presence, presence.winfo, xcap-diff, conference

Allow: INVITE, ACK, CANCEL, BYE, MESSAGE, OPTIONS, NOTIFY, PRACK, UPDATE, REFER

Privacy: none

P-Access-Network-Info: ADSL;utran-cell-id-3gpp=00000000

User-Agent: IM-client/OMA1.0 Boghe/v2.0.97.687

P-Preferred-Identity: <sip:8475551001@10.50.251.12>

It is doing it right for subscribe requests for presence.winfo and reg events. 
The pcap file attached above shows the subscribes. Just baffled why boghe is 
doing this. Is it a bug?

Original comment by sangeeta...@gmail.com on 4 Oct 2012 at 9:44

GoogleCodeExporter commented 9 years ago
Your're using rls-service and the service uri in the document returned from 
your server is invalid.
<service uri="8475551001;pres-list=rcs">
XML uri attribute must be a valid SIP Uri.
Please check 4826 for more information.

Original comment by boss...@yahoo.fr on 5 Oct 2012 at 12:18