Hi!

I have a three-part problem/question. I am trying to make a subscription to
an eventlist using
the SUBSCRIBE method. Subscribing works well, but when I try to unsubscribe,
problems
occur.

1)
Namely, for some reason sofia SIP on server side replies 200 OK to the
*unsubcribing*
SUBSCRIBE message (Expires set as 0). For my knowledge this should be 202
Accepted.
Am I right? I am wondering why sofia sip behaves like this?

2)
According to the logs, 200 OK reply to the unsubcribe comes to the client
*before* the NOTIFY
request. The logs show that after receiving the 200 OK response, the
subscription is removed;
and when the NOTIFY comes the process goes into a default leg. Then the
client responses
with 420 Bad Extension. Do you think this is due to the received 200 OK
(instead 202)? In
my opinion, the subscription should not be terminated until the notify
comes... This is interesting
because I am using a darcs version where this problem is corrected. I had a
brief discussion with
Pekka last spring about the issue.. So do you think this behavior may be
because of the 200 OK?

3)
This is the case when Sofia sip is automatically sending responses. How can
I switch the auto reply
off for subscriptions?

<clip>
...
nua: nua_unsubscribe: entering
nua(0x8058ce8): sent signal r_unsubscribe
nua(0x8058ce8): recv signal r_unsubscribe
nua: nua_stack_set_params: entering
nta: selecting scheme sip
nta: sent SUBSCRIBE (103494687) to */10.20.49.169:5060
nta: received 200 OK for SUBSCRIBE (103494687)        <------------------
WHY?
nta: 200 OK is going to a transaction
nta_outgoing: RTT is 0.213 ms
nua(0x8058ce8): event r_unsubscribe 200 OK
nta: outgoing_free(0x8058fd0)
nua(0x8058ce8): removing subscribe usage with event presence
<---------------- WHY?
nta_leg_destroy(0x8059ba0)
nta: received NOTIFY sip:[EMAIL PROTECTED]:5067 SIP/2.0 (CSeq 103494687)
nta: canonizing sip:[EMAIL PROTECTED]:5067 with contact
nta: NOTIFY (103494687) going to a default leg      <-----------------
DEFAULT LEG
nua: nua_stack_process_request: entering
nta: sent 420 Bad Extension for NOTIFY (103494687)   <----- eventlist not
recognised (according to 420 message)
...
</clip>

Sofia sip traces from the client side are attached.

Thank you in advance and cheers!

-- 
Jarkko
nua: nua_create: entering
nua: nua_stack_init: entering
nua: nua_stack_set_params: entering
nta_agent_create: initialized hash tables
nta_agent_create: initialized transports
nta_agent_create: initialized random identifiers
nta_agent_create: initialized timer
nta_agent_create: initialized resolver
nta: master transport created
nta: bound to (0.0.0.0:5067;transport=tcp)
nta: agent_init_via: SIP/2.0/tcp 10.20.49.169:5067 (sip)
nta: agent_init_via: SIP/2.0/tcp 192.168.0.11:5067 (sip)
nta: agent_init_via: SIP/2.0/tcp 127.0.0.1:5067 (sip)
nta: Via fields initialized
nta: Contact header created
nua_register: Adding contact URL '10.20.49.169' to list.
nua_register: Adding contact URL '192.168.0.11' to list.
nua_register: ignoring contact candidate 127.0.0.1:5067.
nua: nua_set_params: entering
nua((nil)): sent signal r_set_params
nua: nh_create_handle: entering
nua((nil)): recv signal r_set_params
nua: nua_stack_set_params: entering
nua((nil)): event r_set_params 200 OK
nua: nua_application_event: entering
nua: nua_subscribe: entering
nua(0x8058ce8): sent signal r_subscribe
nua(0x8058ce8): recv signal r_subscribe
nua: nua_stack_set_params: entering
nta_leg_tcreate(0x8059ba0)
nua(0x8058ce8): adding subscribe usage with event presence
nta: selecting scheme sip
nta: sent SUBSCRIBE (103494686) to */10.20.49.169:5060
nta: timer set to 32000 ms
nta: received 200 OK for SUBSCRIBE (103494686)
nta: 200 OK is going to a transaction
nta_outgoing: RTT is 3.735 ms
nua(): refresh subscribe after 778 seconds (in [450..1350])
nua(): refresh subscribe after 778 seconds
nua(0x8058ce8): event r_subscribe 200 OK
nta: outgoing_free(0x805a840)
nua: nua_application_event: entering
nta: received NOTIFY sip:[EMAIL PROTECTED]:5067 SIP/2.0 (CSeq 103494686)
nta: canonizing sip:[EMAIL PROTECTED]:5067 with contact
nta: NOTIFY (103494686) going to existing leg
nua: nua_stack_process_request: entering
nua(0x8058ce8): nua_notify_server_preprocess: active ()
nta: sent 200 OK for NOTIFY (103494686)
nua(0x8058ce8): event i_notify 200 OK
nua(): refresh subscribe after 868 seconds (in [450..1350])
nua(): refresh subscribe after 868 seconds
nta: incoming_free(0x805acc8)
nua: nua_application_event: entering
nua: nua_unsubscribe: entering
nua(0x8058ce8): sent signal r_unsubscribe
nua(0x8058ce8): recv signal r_unsubscribe
nua: nua_stack_set_params: entering
nta: selecting scheme sip
nta: sent SUBSCRIBE (103494687) to */10.20.49.169:5060
nta: received 200 OK for SUBSCRIBE (103494687)
nta: 200 OK is going to a transaction
nta_outgoing: RTT is 0.213 ms
nua(0x8058ce8): event r_unsubscribe 200 OK
nta: outgoing_free(0x8058fd0)
nua(0x8058ce8): removing subscribe usage with event presence
nta_leg_destroy(0x8059ba0)
nta: received NOTIFY sip:[EMAIL PROTECTED]:5067 SIP/2.0 (CSeq 103494687)
nta: canonizing sip:[EMAIL PROTECTED]:5067 with contact
nta: NOTIFY (103494687) going to a default leg
nua: nua_stack_process_request: entering
nta: sent 420 Bad Extension for NOTIFY (103494687)
nta: incoming_free(0x805b310)
nua: nua_application_event: entering
nta: received NOTIFY sip:[EMAIL PROTECTED]:5067 SIP/2.0 (CSeq 103494689)
nta: canonizing sip:[EMAIL PROTECTED]:5067 with contact
nta: NOTIFY (103494689) going to a default leg
nua: nua_stack_process_request: entering
nta: sent 420 Bad Extension for NOTIFY (103494689)
nta: incoming_free(0x8059018)
nta: timer not set

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to