2008/8/8 Della Betta Filippo <[EMAIL PROTECTED]>:
> I tried nua_subscribe with SIPTAG_EXPIRES_STR("0"), but I had the same
> problem.
> Attached sofia-sip level 9 log
Oh yes, the SUBSCRIBE code checks for Expires header, too. Wonder how
I got nua to return 200 to NOTIFY, though...
You can try to use darcs version, it now delays termination until
NOTIFY is received w/ nua:_unsubscribe or nua_subscribe and Expires 0.
Note that if timeout occurs, the sip_t pointer argument to nua
callback is NULL:
--Pekka
> -----Original Message-----
> From: Pekka Pessi [mailto:[EMAIL PROTECTED]
> Sent: mercoledì 6 agosto 2008 20.08
> To: Della Betta Filippo
> Cc: [email protected]
> Subject: Re: [Sofia-sip-devel] NOTIFY and 481
>
> 2008/8/1 Della Betta Filippo <[EMAIL PROTECTED]>:
>> Hello All,
>> I wrote a simple sofia-sip application that REGISTER itself to a
>> proxy, send a SUBSCRIBE, an (un)SUBSCRIBE and (un)REGISTER (see flow and
>> code below).
>> In response to the last NOTIFY (after the (un)SUBSCRIBE) sofia-sip sends 481
>> Call Does Not Exist.
>> In my opinion it is not correct. The correct answer should be 200 OK since
>> dialog must be destroyed on incoming NOTIFY with Subscription-State:
>> terminated (RFC3265)
>> Do you agree ?
>
> You are correct.
>
>> If so, am I doing something wrong with the code ?
>
> You can avoid the problem by using nua_subscribe() when unsubscribing, too,
> like
>
> nua_subscribe(nsh, SIPTAG_EXPIRES_STR("0"),
> SIPTAG_EVENT_STR("presence.winfo"),
> TAG_END());
>
>
> --
> Pekka.Pessi mail at nokia.com
> --------------------------------------------------------------------
>
> CONFIDENTIALITY NOTICE
>
> This message and its attachments are addressed solely to the persons above
> and may contain confidential information. If you have received the message in
> error, be informed that any use of the content hereof is prohibited. Please
> return it immediately to the sender and delete the message. Should you have
> any questions, please contact us by replying to [EMAIL PROTECTED]
>
> Thank you
>
> www.telecomitalia.it
>
> --------------------------------------------------------------------
>
>
> -------------------------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
>
>
--
Pekka.Pessi mail at nokia.com
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel