[jitsi-dev] Jitsi 1.1 4055 does not send out xcap pres-rules


#1

HI:

I have following case:

Jitsi 1.1 4055 build as sip client: 101/103 , with xcap as storage/SIMPLE mode
proxy: kamailio 3.3

ip network is: 192.168.122.0

the setup is like the following:

101(.224) --- proxy (.32) --- 103 (.1)

After all presence related db are truncated, kamailio was restart. then
bring 101,103 online.

On 101 add 103, 103 prompt up authorization window, click ok.
now on 103, I can see 101 online status.

but on 101, I can not see 103 status

the call flow for 101 adding 103 as contact according to the trace file:

101 proxy 103

/ | |

/user-add-103 | |

/ | |

/|/ xcap put pres/rls | |
/|/--------------------------> | |
/|/ | |
/|/ SUBSCRIBE (presence/103) | |
/|/---------------------------> | |
/|/ 202 ok | |
/|/<----------------------------| |
/|/ NOTIFY( presenc/pending) | |
/|/<----------------------------| |
/|/ | NOTIFY ( winfo/101 pending) |
/|/ |---------------------------------->|
/|/ 200 ok | |
/|/--------------------------> | |
/|/ | 200 OK |
/|/ |<----------------------------------|
/|/ | auth window pop
/|/ | user accept
/|/ | SUBSRIBE(presence/101) |
/|/ |<----------------------------------|
/|/ | 202 OK |
/|/ |---------------------------------->|
/|/ NOTIFY (winfo,103 active) | |
/|/<-------------------------- | |
/|/ 200 ok | |
/|/--------------------------> | |
/|/ | NOTIFY (presence/101) |
/|/ |---------------------------------> |
/|/ | 200 OK |
/|/ |<----------------------------------|
/|/ NOTIFY (presence/103 open) | |
/|/<-------------------------- | | ****** ( missing part)
/|/ 200 ok | |
/|/--------------------------> | |
/

//
The Kamailio expect to see xcap/pres_rules from client 103.

But from the trace, jitsi 103 does not send out the xcap/pres-rules. Is it the issue?

If you need full trace file, let me know.

Just FYI, We have the discussion on the sip-router project as well,
http://lists.sip-router.org/pipermail/sr-users/2012-June/073674.html
http://lists.sip-router.org/pipermail/sr-users/2012-June/073664.html

Thanks.

min

//


#2

Hi,

I was testing this scenario using sip2sip accounts and configured xcap
to both accounts and all statuses are ok. Also pres-rules are put to
the xcap server. As I can see they are put in the beginning of the
subscribe process when the resource list is updated.
Are you sure pres-rules are not sent before the first subscribe?

Regards
Damian

···

On Thu, Jun 21, 2012 at 7:18 PM, Min Wang <ser.basis@gmail.com> wrote:

HI:

I have following case:

Jitsi 1.1 4055 build as sip client: 101/103 , with xcap as storage/SIMPLE
mode
proxy: kamailio 3.3

ip network is: 192.168.122.0

the setup is like the following:

101(.224) --- proxy (.32) --- 103 (.1)

After all presence related db are truncated, kamailio was restart. then
bring 101,103 online.

On 101 add 103, 103 prompt up authorization window, click ok.
now on 103, I can see 101 online status.

but on 101, I can not see 103 status

the call flow for 101 adding 103 as contact according to the trace file:

101 proxy 103
> > >
user-add-103 | |
> > >
> xcap put pres/rls | |
>--------------------------> | |
> > >
> SUBSCRIBE (presence/103) | |
>---------------------------> | |
> 202 ok | |
><----------------------------| |
> NOTIFY( presenc/pending) | |
><----------------------------| |
> > NOTIFY ( winfo/101 pending) |
> >---------------------------------->|
> 200 ok | |
>--------------------------> | |
> > 200 OK |
> ><----------------------------------|
> > auth window
pop
> > user accept
> > SUBSRIBE(presence/101) |
> ><----------------------------------|
> > 202 OK |
> >---------------------------------->|
> NOTIFY (winfo,103 active) | |
><-------------------------- | |
> 200 ok | |
>--------------------------> | |
> > NOTIFY (presence/101) |
> >---------------------------------> |
> > 200 OK |
> ><----------------------------------|
> NOTIFY (presence/103 open) | |
><-------------------------- | | ******
( missing part)
> 200 ok | |
>--------------------------> | |

The Kamailio expect to see xcap/pres_rules from client 103.

But from the trace, jitsi 103 does not send out the xcap/pres-rules. Is it
the issue?

If you need full trace file, let me know.

Just FYI, We have the discussion on the sip-router project as well,
http://lists.sip-router.org/pipermail/sr-users/2012-June/073674.html
http://lists.sip-router.org/pipermail/sr-users/2012-June/073664.html

Thanks.

min


#3

HI Darmian:

        thanks a lot for looking at it.

       I tested again using Windows 4067 build serveral times, it works! it did sent the pre-rules before sending subscribe.

        At my previous test: one was using 4067 window build, another one was using 4055 Linux build.
From the trace, it was the 4055 Linux build did not sent out the pre-rules.

        I will continue to test more using the latest build.

        Thank you guys, great job!

Kind regards.

min

···

On 06/22/2012 05:28 PM, Damian Minkov wrote:

Hi,

I was testing this scenario using sip2sip accounts and configured xcap
to both accounts and all statuses are ok. Also pres-rules are put to
the xcap server. As I can see they are put in the beginning of the
subscribe process when the resource list is updated.
Are you sure pres-rules are not sent before the first subscribe?

Regards
Damian

On Thu, Jun 21, 2012 at 7:18 PM, Min Wang<ser.basis@gmail.com> wrote:
   

HI:

I have following case:

Jitsi 1.1 4055 build as sip client: 101/103 , with xcap as storage/SIMPLE
mode
proxy: kamailio 3.3

ip network is: 192.168.122.0

the setup is like the following:

101(.224) --- proxy (.32) --- 103 (.1)

After all presence related db are truncated, kamailio was restart. then
bring 101,103 online.

On 101 add 103, 103 prompt up authorization window, click ok.
now on 103, I can see 101 online status.

but on 101, I can not see 103 status

the call flow for 101 adding 103 as contact according to the trace file:

101 proxy 103
> > >
user-add-103 | |
> > >
> xcap put pres/rls | |
>--------------------------> | |
> > >
> SUBSCRIBE (presence/103) | |
>---------------------------> | |
> 202 ok | |
><----------------------------| |
> NOTIFY( presenc/pending) | |
><----------------------------| |
> > NOTIFY ( winfo/101 pending) |
> >---------------------------------->|
> 200 ok | |
>--------------------------> | |
> > 200 OK |
> ><----------------------------------|
> > auth window
pop
> > user accept
> > SUBSRIBE(presence/101) |
> ><----------------------------------|
> > 202 OK |
> >---------------------------------->|
> NOTIFY (winfo,103 active) | |
><-------------------------- | |
> 200 ok | |
>--------------------------> | |
> > NOTIFY (presence/101) |
> >---------------------------------> |
> > 200 OK |
> ><----------------------------------|
> NOTIFY (presence/103 open) | |
><-------------------------- | | ******
( missing part)
> 200 ok | |
>--------------------------> | |

The Kamailio expect to see xcap/pres_rules from client 103.

But from the trace, jitsi 103 does not send out the xcap/pres-rules. Is it
the issue?

If you need full trace file, let me know.

Just FYI, We have the discussion on the sip-router project as well,
http://lists.sip-router.org/pipermail/sr-users/2012-June/073674.html
http://lists.sip-router.org/pipermail/sr-users/2012-June/073664.html

Thanks.

min