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

-------------------------------------------------------------------------
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